/*
Theme Name: Darul Islam
Author: Shahzaib Rehman khattak
Description: A custom Quran site theme
Version: 1.0
*/

/* ============================================================
   FINAL SEARCH / BLOG DESIGN - Aya Wise
   Dark-green banner (#0f5f3c, the Blog page banner green)
   with a subtle Islamic geometric pattern, very light grey
   page background (#f8f9fa), white cards with a thin green
   top line, orange badges / pills / buttons. Enqueued from
   search.php, blog.php and single.php only.
   ============================================================ */

/* ---------- Green banner (search, blog, single post) ---------- */
.aya-banner { position: relative; overflow: hidden; background: #0f5f3c; color: #fff; text-align: center; padding: 64px 20px 60px; }
.aya-banner::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07'%3E%3Cpath d='M40 4 49 31 76 40 49 49 40 76 31 49 4 40 31 31Z'/%3E%3Cpath d='M40 4 49 31 76 40 49 49 40 76 31 49 4 40 31 31Z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E"); background-size: 80px 80px; pointer-events: none; }
.aya-banner .container { position: relative; z-index: 1; }
.aya-banner .breadcrumb { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.aya-banner .breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.aya-banner .breadcrumb a:hover { color: #ff6900; }
.aya-banner .breadcrumb span { color: rgba(255, 255, 255, 0.6); }
.aya-banner-title { font-family: 'Amiri', serif; font-size: 48px; font-weight: 700; line-height: 1.2; color: #fff; margin: 0 0 16px; }
.aya-banner-sub { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); max-width: 640px; margin: 0 auto; }
.aya-banner-cat { display: inline-block; background: #ff6900; color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }

/* White search box in the banner, orange button */
.aya-banner-search { display: flex; max-width: 640px; margin: 32px auto 0; background: #fff; border-radius: 50px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.aya-banner-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.18); }
.aya-banner-search input { flex: 1; min-width: 0; padding: 16px 24px; border: 0; outline: none; font-size: 16px; color: #1a1a1a; background: transparent; }
.aya-banner-search button { background: #ff6900; border: 0; padding: 0 28px; color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.aya-banner-search button:hover { background: #e65c00; }

/* ---------- Page background ---------- */
.aya-page { background: #f8f9fa; }
.aya-results { padding: 60px 0 70px; }
.aya-blog.blog-filter-section, .aya-blog.blog-grid-section { background: #f8f9fa; }

/* ---------- Results grid: 2 columns ---------- */
.aya-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-bottom: 40px; }

/* ---------- Result card ---------- */
.aya-grid .blog-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); border: 0; cursor: default; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.aya-grid .blog-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #0f5f3c; z-index: 3; }
.aya-grid .blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.13); }
.aya-grid .blog-image { position: relative; aspect-ratio: 16 / 9; height: auto; overflow: hidden; background: #e9f5ee; }
.aya-grid .blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.aya-grid .blog-card:hover .blog-image img { transform: scale(1.05); }
.aya-grid .aya-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: #ff6900; color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.aya-grid .blog-date { position: absolute; top: 14px; right: 14px; left: auto; z-index: 2; background: #0f5f3c; color: #fff; padding: 10px 12px; border-radius: 10px; text-align: center; min-width: 56px; box-shadow: 0 4px 15px rgba(15, 95, 60, 0.35); }
.aya-grid .blog-date .date { display: block; font-size: 20px; font-weight: 700; line-height: 1; }
.aya-grid .blog-date .month { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-top: 3px; opacity: 0.9; }
.aya-grid .blog-content { padding: 26px 28px 30px; }
.aya-grid .blog-category { display: inline-block; background: #ff6900; color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.aya-grid .blog-meta { font-size: 13px; color: #777; margin-bottom: 12px; }
.aya-grid .blog-title { font-family: 'Amiri', serif; font-size: 24px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aya-grid .blog-title a { color: inherit; text-decoration: none; }
.aya-grid .blog-title a:hover { color: #0f5f3c; }
.aya-grid .blog-reference { font-size: 13px; line-height: 1.5; color: #555; margin: 0 0 10px; }
.aya-grid .blog-reference strong { color: #333; font-weight: 600; }
.aya-grid .blog-excerpt { font-size: 15px; line-height: 1.65; color: #666; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aya-grid .blog-link { display: inline-flex; align-items: center; gap: 8px; background: #ff6900; color: #fff; padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background 0.3s ease, gap 0.3s ease; }
.aya-grid .blog-link:hover { background: #e65c00; color: #fff; gap: 12px; }
.aya-grid .blog-link i { font-size: 12px; }

/* ---------- Pagination (left) + filter pills (right) ---------- */
.aya-results-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid #e5e5e5; }
.aya-pagination ul.page-numbers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.aya-pagination a.page-numbers, .aya-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #1a1a1a; border: 2px solid #e0e0e0; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; min-width: 44px; transition: all 0.3s ease; }
.aya-pagination a.page-numbers:hover { background: #0f5f3c; color: #fff; border-color: #0f5f3c; }
.aya-pagination span.page-numbers.current { background: #0f5f3c; color: #fff; border-color: #0f5f3c; }
.aya-pagination span.page-numbers.dots { border-color: transparent; background: transparent; min-width: 0; padding: 10px 4px; color: #777; }
.aya-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.aya-filter-pill { display: inline-block; background: #fff; color: #1a1a1a; border: 2px solid #cbd5d1; padding: 10px 20px; border-radius: 25px; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; transition: all 0.3s ease; }
.aya-filter-pill:hover { border-color: #0f5f3c; color: #0f5f3c; }
.aya-filter-pill.active { background: #dcfce7; border-color: #86efac; color: #0f5f3c; }

/* ---------- No results ---------- */
.aya-no-results { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); padding: 60px 30px; text-align: center; max-width: 720px; margin: 0 auto 40px; }
.aya-no-results h2 { font-family: 'Amiri', serif; font-size: 32px; color: #1a1a1a; margin: 0 0 12px; }
.aya-no-results p { color: #666; font-size: 16px; margin: 0 0 28px; }
.aya-inline-search { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border: 2px solid #e0e0e0; border-radius: 50px; overflow: hidden; }
.aya-inline-search input { flex: 1; min-width: 0; padding: 14px 22px; border: 0; outline: none; font-size: 15px; color: #1a1a1a; background: transparent; }
.aya-inline-search button { background: #ff6900; border: 0; padding: 0 26px; color: #fff; font-size: 15px; cursor: pointer; }
.aya-inline-search button:hover { background: #e65c00; }

/* ---------- Blog listing: same design language ---------- */
.aya-blog .search-btn { background: #ff6900; }
.aya-blog .search-btn:hover { background: #e65c00; }
.aya-blog .filter-btn { background: #fff; border: 2px solid #cbd5d1; border-radius: 25px; }
.aya-blog .filter-btn:hover, .aya-blog .filter-btn.active { background: #dcfce7; color: #0f5f3c; border-color: #86efac; box-shadow: none; transform: none; }

/* ---------- Single post: same design language ---------- */
.aya-single.blog-content-section { background: #f8f9fa; }
.aya-single.related-articles-section { background: #f8f9fa; }
.aya-single .blog-article { background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); padding: 44px; }
.aya-single .article-title-main { font-family: 'Amiri', serif; }
.aya-single .author-section, .aya-single .share-section { background: #f8f9fa; border-radius: 12px; }
.aya-single .newsletter-section { border-radius: 16px; }
.aya-single .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.aya-single .related-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.aya-single .related-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #0f5f3c; z-index: 3; }
.aya-single .related-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.13); }
.aya-single .related-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9f5ee; }
.aya-single .related-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aya-single .related-card-date { position: absolute; top: 14px; right: 14px; z-index: 2; background: #0f5f3c; color: #fff; padding: 10px 12px; border-radius: 10px; text-align: center; min-width: 56px; box-shadow: 0 4px 15px rgba(15, 95, 60, 0.35); }
.aya-single .related-card-date .date { display: block; font-size: 20px; font-weight: 700; line-height: 1; }
.aya-single .related-card-date .month { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-top: 3px; opacity: 0.9; }
.aya-single .related-card-content { padding: 24px 26px 28px; }
.aya-single .related-card-category { display: inline-block; background: #ff6900; color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.aya-single .related-card-meta { font-size: 13px; color: #777; margin-bottom: 12px; }
.aya-single .related-card-title { font-family: 'Amiri', serif; font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin: 0 0 10px; }
.aya-single .related-card-title a { color: inherit; text-decoration: none; }
.aya-single .related-card-title a:hover { color: #0f5f3c; }
.aya-single .related-card-reference { font-size: 13px; line-height: 1.5; color: #555; margin: 0 0 10px; }
.aya-single .related-card-reference strong { color: #333; font-weight: 600; }
.aya-single .related-card-excerpt { font-size: 15px; line-height: 1.65; color: #666; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aya-single .related-card-link { display: inline-flex; align-items: center; gap: 8px; background: #ff6900; color: #fff; padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background 0.3s ease, gap 0.3s ease; }
.aya-single .related-card-link:hover { background: #e65c00; color: #fff; gap: 12px; }
.aya-single .related-card-link i { font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .aya-banner-title { font-size: 38px; }
  .aya-single .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .aya-grid { grid-template-columns: 1fr; }
  .aya-banner { padding: 48px 16px 44px; }
  .aya-banner-title { font-size: 32px; }
  .aya-banner-sub { font-size: 16px; }
  .aya-results { padding: 40px 0 50px; }
  .aya-results-footer { flex-direction: column; align-items: stretch; }
  .aya-filters { margin-left: 0; }
  .aya-pagination ul.page-numbers { justify-content: center; }
  .aya-single .blog-article { padding: 26px 22px; }
  .aya-single .related-grid { grid-template-columns: 1fr; }
  .aya-no-results { padding: 40px 20px; }
}

/* AYA FIX 2026-11-26: full poster, no crop; whole card opens the post. */
.aya-grid .blog-image { aspect-ratio: auto !important; height: auto !important; }
.aya-grid .blog-image img { width: 100% !important; height: auto !important; object-fit: contain !important; }
.aya-grid .blog-card:hover .blog-image img { transform: none !important; }
.aya-single .related-card-image { aspect-ratio: auto !important; height: auto !important; }
.aya-single .related-card-image img { width: 100% !important; height: auto !important; object-fit: contain !important; }
.aya-grid .blog-card, .aya-single .related-card { cursor: pointer; }
.aya-grid .blog-card-link { position: absolute; inset: 0; z-index: 1; display: block; }
.aya-grid .blog-image, .aya-grid .blog-content { position: relative; z-index: 2; pointer-events: none; }
.aya-grid .blog-image a, .aya-grid .blog-content a { position: relative; z-index: 2; pointer-events: auto; }
.aya-grid .blog-image a.blog-image-link { display: block; }
.aya-grid .aya-badge, .aya-grid .blog-date { pointer-events: none; }
.aya-grid .blog-card::before { pointer-events: none; }
.aya-single .related-card-link-overlay { position: absolute; inset: 0; z-index: 1; display: block; }
.aya-single .related-card-image, .aya-single .related-card-content { position: relative; z-index: 2; pointer-events: none; }
.aya-single .related-card-image a, .aya-single .related-card-content a { position: relative; z-index: 2; pointer-events: auto; }
.aya-single .related-card-image a.related-card-image-link { display: block; }
.aya-single .related-card-date { pointer-events: none; }
.aya-single .related-card::before { pointer-events: none; }
