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

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

  :root {
    --primary: #1a3a6b;
    --primary-dark: #0f2449;
    --primary-light: #2a5298;
    --gold: #c9a84c;
    --gold-light: #f0c040;
    --white: #ffffff;
    --light-bg: #f8f9fc;
    --dark-text: #1a1a2e;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(26,58,107,0.12);
    --radius: 12px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
  }

  /* ====== NAVBAR ====== */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26,58,107,0.08);
    box-shadow: 0 2px 20px rgba(26,58,107,0.08);
    transition: all 0.3s ease;
  }

  .navbar.scrolled {
    background: rgba(26,58,107,0.97);
  }

  .navbar.scrolled .nav-link,
  .navbar.scrolled .brand-name { color: var(--white); }
  .navbar.scrolled .brand-tag { color: var(--gold-light); }
  .navbar.scrolled .hamburger span { background: var(--white); }
  .navbar.scrolled .nav-search-link { color: var(--white) !important; }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
    font-family: 'Amiri', serif;
    box-shadow: 0 4px 14px rgba(26,58,107,0.3);
    flex-shrink: 0;
  }

  .brand-name,
  .brand-text-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    font-family: 'Cairo', sans-serif !important;
  }

  .brand-tag,
  .brand-text-sub {
    font-size: 10px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Cairo', sans-serif !important;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }

  .nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: var(--white);
  }

  .nav-search-link {
    background: rgba(201,168,76,0.12);
    color: var(--primary) !important;
    border: 1px solid rgba(201,168,76,0.3);
  }

  .nav-search-link:hover {
    background: var(--gold) !important;
    color: var(--primary-dark) !important;
    border-color: var(--gold);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .hamburger:hover { background: rgba(26,58,107,0.08); }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* ====== HERO ====== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 100px 24px 60px;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.15) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    width: 100%;
    z-index: 1;
  }

  .hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 1px;
  }

  .hero-title {
    font-family: 'Amiri', serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero-title span { color: var(--gold-light); }

  .hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
  }

  .hero-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    color: rgba(255,255,255,0.75);
    line-height: 2;
    margin-bottom: 36px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ====== HERO SEARCH ====== */
  .hero-search-box {
    margin-bottom: 36px;
  }

  .hero-search-form {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 16px;
  }

  .hero-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    border: 2px solid rgba(201,168,76,0.3);
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .hero-search-inner:focus-within {
    border-color: var(--gold);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 4px rgba(201,168,76,0.15);
  }

  .hero-search-icon {
    padding: 0 16px 0 8px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    color: var(--dark-text);
    padding: 16px 0;
    direction: rtl;
    min-width: 0;
  }

  .hero-search-input::placeholder { color: var(--gray); }

  .hero-search-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    border: none;
    padding: 16px 28px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-search-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    padding-right: 34px;
  }

  .hero-search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
  }

  .hero-tag {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }

  .hero-tag:hover {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
  }

  .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  }

  .btn-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s;
  }

  .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
  }

  .hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
  }

  /* ====== SECTIONS ====== */
  .section { padding: 80px 24px; }
  .section-light { background: var(--light-bg); }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-label {
    display: inline-block;
    background: rgba(201,168,76,0.12);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border: 1px solid rgba(201,168,76,0.25);
  }

  .section-title {
    font-family: 'Amiri', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .section-desc {
    color: var(--gray);
    font-size: 16px;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
  }

  /* ====== ABOUT ====== */
  .about-single {
    max-width: 900px;
    margin: 0 auto;
  }

  .about-body {
    padding: 0;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
    max-width: 400px;
  }

  .stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--white);
  }

  .stat-number {
    font-family: 'Amiri', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
  }

  /* ====== PILLARS ====== */
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .pillar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .pillar-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .pillar-card:hover::before { transform: scaleX(1); }

  .pillar-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
  }

  .pillar-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .pillar-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.9;
  }

  /* ====== ARTICLES ====== */
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .article-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
  }

  .article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .article-img {
    height: 180px;
    background: linear-gradient(135deg, rgba(26,58,107,0.08), rgba(26,58,107,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
  }

  .article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
  }

  .article-body {
    padding: 24px;
    flex: 1;
  }

  .article-body h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .article-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.9;
  }

  .article-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
  }

  .read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
  }

  .read-more:hover { color: var(--gold); }

  /* ====== CONTACT ====== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
  }

  .contact-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
  }

  .contact-info > p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
  }

  .contact-item:hover { border-color: var(--primary); }

  .contact-item-icon {
    font-size: 22px;
    width: 48px;
    height: 48px;
    background: rgba(26,58,107,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .contact-item-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
  }

  .contact-item-text span {
    font-size: 14px;
    color: var(--gray);
  }

  .contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-group { margin-bottom: 20px; }
  .form-group:last-child { margin-bottom: 0; }

  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
  }

  .form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--dark-text);
    direction: rtl;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: var(--light-bg);
  }

  .form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
    background: var(--white);
  }

  .form-textarea {
    min-height: 130px;
    resize: vertical;
  }

  /* ====== FOOTER ====== */
  .footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: rgba(255,255,255,0.8);
    padding: 60px 24px 24px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.9;
    margin-top: 16px;
  }

  .footer-col h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 20px;
  }

  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-col ul li a:hover { color: var(--gold-light); }

  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ====== ALERTS ====== */
  .alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
  }

  .alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
  .alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

  /* ====== RESPONSIVE ====== */
  @media (max-width: 1024px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { gap: 32px; }
  }

  @media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links {
      display: none;
      flex-direction: column;
      align-items: stretch;
      position: absolute;
      top: 70px;
      right: 0;
      left: 0;
      background: var(--white);
      padding: 16px 20px 20px;
      border-top: 1px solid var(--border);
      box-shadow: 0 8px 30px rgba(26,58,107,0.12);
      gap: 4px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .brand-name { font-size: 15px; }
    .brand-tag { display: none; }
    .brand-logo { width: 40px; height: 40px; font-size: 17px; }

    /* Hero mobile */
    .hero { padding: 90px 20px 50px; min-height: auto; }
    .hero-search-inner { border-radius: 14px; }
    .hero-search-btn { padding: 14px 20px; font-size: 14px; }
    .hero-search-input { font-size: 14px; padding: 14px 0; }
    .hero-search-icon { padding: 0 12px 0 6px; font-size: 18px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .hero-buttons a { width: 100%; max-width: 300px; text-align: center; }

    /* Sections */
    .section { padding: 60px 20px; }
    .section-header { margin-bottom: 40px; }

    /* About */
    .about-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }

    /* Pillars */
    .pillars-grid { grid-template-columns: 1fr; }

    /* Articles */
    .articles-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
  }

  @media (max-width: 480px) {
    .nav-container { padding: 0 16px; }
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 14px; }
    .hero-search-tags { gap: 6px; }
    .hero-tag { padding: 4px 12px; font-size: 11px; }
    .section-title { font-size: 24px; }
    .pillars-grid, .articles-grid { gap: 16px; }
    .contact-form { padding: 20px 16px; }
    .btn-primary, .btn-outline { padding: 12px 24px; font-size: 14px; }
    .stat-card { padding: 18px 14px; }
    .stat-number { font-size: 28px; }
  }

  @media (min-width: 1024px) and (max-width: 1200px) {
    .nav-container { padding: 0 20px; }
    .brand-name { font-size: 16px; }
    .nav-link { font-size: 13px; padding: 7px 10px; }
  }
  

  /* ====================================================
     SEARCH PAGE
     ==================================================== */

  /* --- Search Header (replaces hero on search page) --- */
  .search-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    padding: 110px 24px 60px;
    overflow: hidden;
  }

  .search-header-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.15) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
  }

  .search-header-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
  }

  .search-label {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 2px;
  }

  .search-title {
    font-family: 'Amiri', serif;
    font-size: clamp(24px, 4vw, 40px);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .search-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 15px;
    margin-bottom: 36px;
    line-height: 1.9;
  }

  /* --- Search Box --- */
  .search-form-wrap {
    max-width: 640px;
    margin: 0 auto 20px;
  }

  .search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.97);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .search-inner:focus-within {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 4px rgba(201,168,76,0.2);
  }

  .search-ico {
    padding: 0 14px 0 8px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .search-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    color: var(--dark-text);
    padding: 16px 4px;
    direction: rtl;
    min-width: 0;
  }

  .search-field::placeholder { color: var(--gray); }

  .search-go {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    border: none;
    padding: 16px 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .search-go:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
  }

  /* --- Quick Tags --- */
  .search-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
  }

  .sq-label { font-weight: 600; margin-left: 4px; }

  .sq-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }

  .sq-tag:hover,
  .sq-tag-active {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
  }

  /* --- Results Wrapper --- */
  .search-results-wrap {
    background: var(--light-bg);
    min-height: 60vh;
    padding: 48px 24px 80px;
  }

  .search-results-inner {
    max-width: 860px;
    margin: 0 auto;
  }

  /* --- Results Meta Bar --- */
  .results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--gray);
    flex-wrap: wrap;
    gap: 10px;
  }

  .results-count { font-size: 15px; color: var(--gray); }
  .rc-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-left: 6px;
  }
  .results-count strong { color: var(--primary-dark); }

  .results-clear {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
  }
  .results-clear:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

  /* --- Result Cards --- */
  .result-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

  .result-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
  }

  .result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }

  .rc-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(26,58,107,0.07), rgba(26,58,107,0.14));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
  }

  .rc-body { flex: 1; min-width: 0; }

  .rc-category {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
  }

  .rc-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .rc-summary {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 14px;
  }

  .rc-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gray);
    align-items: center;
  }

  .rc-read {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    margin-right: auto;
  }

  /* Highlight matched text */
  mark.hl {
    background: rgba(201,168,76,0.25);
    color: var(--primary-dark);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
    font-style: normal;
  }

  /* --- No Results --- */
  .no-results-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 40px;
  }

  .nr-icon { font-size: 64px; display: block; margin-bottom: 20px; }

  .no-results-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
  }

  .no-results-box p { color: var(--gray); font-size: 15px; line-height: 2; }

  /* --- Landing (no query) --- */
  .search-landing {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    margin-bottom: 40px;
  }

  .nl-icon { font-size: 64px; display: block; margin-bottom: 20px; }

  .search-landing h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
  }

  .search-landing p { color: var(--gray); font-size: 15px; line-height: 2; }

  /* --- Topics Grid --- */
  .topics-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin-bottom: 32px;
  }

  .topics-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
  }

  .topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .topic-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--light-bg);
  }

  .topic-card:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  .topic-card:hover .tc-icon { filter: grayscale(0); }

  .tc-icon { font-size: 20px; flex-shrink: 0; }
  .tc-name { line-height: 1.3; }

  /* --- Back Home --- */
  .back-home {
    text-align: center;
    padding: 8px;
  }

  .back-home a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
  }

  .back-home a:hover { color: var(--gold); }

  /* --- Search Responsive --- */
  @media (max-width: 768px) {
    .search-header { padding: 90px 20px 48px; }
    .search-inner { border-radius: 14px; }
    .search-go { padding: 14px 20px; font-size: 14px; }
    .search-field { font-size: 14px; padding: 14px 0; }
    .search-ico { padding: 0 12px 0 6px; }
    .search-results-wrap { padding: 32px 16px 60px; }
    .results-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rc-read { margin-right: 0; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .result-card { flex-direction: column; gap: 14px; }
    .rc-icon { width: 44px; height: 44px; font-size: 20px; }
  }

  @media (max-width: 480px) {
    .topics-grid { grid-template-columns: 1fr; }
    .search-quick-tags { gap: 6px; }
    .sq-tag { font-size: 11px; padding: 4px 12px; }
    .rc-meta { gap: 10px; }
    .topics-section { padding: 20px 16px; }
  }
  