/*
Theme Name: Ayanoor v103 Direct Mobile Hero Clean
Theme URI: https://ayanoor.life
Author: Ayanoor
Description: Ayanoor v51 theme based on v50 with Ayanoor branded WP ULike beneficial button styling, better spacing before comments, and mobile-friendly reaction display.
Version: 103.0
Requires at least: 5.8
Tested up to: 6.9
Text Domain: ayanoor-v51-branded
*/
:root{--green:#052f26;--green2:#073b31;--deep:#021d18;--gold:#d9a84e;--soft:#fbf4e6;--ink:#1b2925;--muted:#66736d}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fbf7ef}a{color:inherit;text-decoration:none}.wrap{max-width:1180px;margin:0 auto;padding:0 22px}.topbar{background:var(--green) url('assets/header-blank-green.jpg') center/cover no-repeat;color:white;position:sticky;top:0;z-index:1000;box-shadow:0 8px 24px #0004;border-bottom:1px solid #d9a84e33}.nav{min-height:82px;display:grid;grid-template-columns:minmax(250px,1fr) auto minmax(150px,1fr);align-items:center;gap:18px}.brand{display:block}.brand strong{font-family:Georgia,serif;font-size:22px;letter-spacing:3px;color:#fff}.brand span{display:block;font-size:10px;letter-spacing:1.8px;color:#f6dfb3;margin-top:3px;text-transform:uppercase}.links{display:flex;align-items:center;justify-content:center;gap:24px;font-weight:750;font-size:14px;white-space:nowrap}.links a{padding:30px 0}.nav-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}.email-btn{background:var(--gold);color:#132b25!important;padding:12px 18px!important;border-radius:999px;font-weight:900}.mobile-btn{display:none;background:transparent;border:1px solid #d9a84e;color:#fff;border-radius:8px;padding:8px 10px;font-size:22px}.dropdown{position:relative}.dropdown:after{content:"";position:absolute;left:-20px;right:-20px;top:100%;height:22px}.dropmenu{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);background:#fff;color:#12332c;border:1px solid #ead6a8;border-radius:14px;min-width:260px;box-shadow:0 16px 38px #0003;padding:8px;z-index:2000}.dropdown:hover .dropmenu,.dropdown:focus-within .dropmenu,.dropmenu:hover{display:block}.dropmenu a{display:block;padding:12px 14px;border-radius:10px}.dropmenu a:hover{background:#fbf1db}.header-search{position:absolute;right:26px;top:96px;z-index:25;width:min(380px,calc(100% - 52px))}.header-search form{display:flex;background:#fff;border:1px solid #ead6a8;border-radius:999px;box-shadow:0 12px 32px #0002;overflow:hidden}.header-search input{flex:1;border:0;padding:13px 16px;font-size:15px;outline:0}.header-search button{border:0;background:var(--gold);padding:0 18px;font-weight:900;color:#132b25}.intro-visual{background:#052f26;padding:28px 0 38px}.intro-shell{position:relative;max-width:1220px;margin:0 auto;padding:0 16px}.intro-img{display:block;width:100%;max-width:1200px;height:auto;object-fit:contain;border-radius:0 0 24px 24px;margin:0 auto;box-shadow:0 18px 50px #0005}.image-page-hero{position:relative;background:#052f26;border-bottom:1px solid #d9a84e44;line-height:0;overflow:hidden}.image-page-hero img{display:block;width:100%;height:auto;object-fit:contain;object-position:center top;margin:0 auto}.page-hero{position:relative;background:#052f26 url('assets/header-blank-green.jpg') center/cover no-repeat;color:#fff;border-bottom:1px solid #d9a84e44}.page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,29,24,.94),rgba(2,29,24,.65),rgba(2,29,24,.88))}.page-hero-inner{position:relative;min-height:300px;display:flex;align-items:center;justify-content:center;text-align:center;padding:60px 22px}.hero-kicker{letter-spacing:.25em;text-transform:uppercase;color:#e5b759;font-size:13px;font-weight:800;margin-bottom:12px}.page-hero h1{font-family:Georgia,serif;font-size:clamp(40px,6vw,76px);line-height:1.05;margin:0}.hero-blurb{max-width:680px;margin:14px auto 0;color:#f8ecd2;line-height:1.7;font-size:18px}.section{padding:58px 0}.section.dark{background:#052f26;color:#fff}.section h2{text-align:center;font-family:Georgia,serif;font-size:clamp(32px,4vw,52px);color:#073b31;margin:0 0 28px}.section.dark h2{color:#f8ecd2}.section-intro{max-width:840px;margin:0 auto 28px;text-align:center;color:#66736d;line-height:1.75}.section.dark .section-intro{color:#f7ead0cc}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{display:flex;flex-direction:column;background:#fffaf1;border:1px solid #f0dec0;border-radius:18px;padding:14px;color:inherit;text-decoration:none;transition:.18s ease;overflow:hidden}.post-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px #0000001f;border-color:#d9a84e}.post-card img,.fallback-thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;background:#052f26;margin-bottom:13px}.fallback-thumb{display:flex;align-items:center;justify-content:center;color:#e6c783;font-weight:800;text-align:center;padding:18px}.post-card h3{margin:5px 0 8px;color:#073b31;font-size:21px;line-height:1.25}.post-card p{margin:0;color:#66736d;line-height:1.55;flex:1}.meta{color:#d9a84e;font-weight:900;letter-spacing:.8px;font-size:12px;text-transform:uppercase}.read-more{margin-top:12px;color:#073b31;font-weight:900}.notice-box{padding:22px;border:1px solid rgba(212,166,74,.45);border-radius:18px;background:#fff8eb;color:#173f2a;text-align:center}.content{max-width:980px;margin:46px auto;padding:40px;background:#fffaf1;border:1px solid #f0dec0;border-radius:22px;line-height:1.75}.content h2,.content h3{color:#073b31}.single-article{max-width:980px;margin:54px auto;padding:0 22px}.single-featured{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px;margin-bottom:28px;border:1px solid #e6c783}.single-title{font-family:Georgia,serif;color:#073b31;font-size:clamp(36px,5vw,64px);line-height:1.05;margin:0 0 10px}.single-meta{color:#8a6f2a;margin-bottom:28px;font-size:14px}.article-body{font-size:18px;line-height:1.85;color:#25352d}.article-body img{max-width:100%;height:auto;border-radius:14px}.article-body p{margin:0 0 1.2em}.article-body ul,.article-body ol{margin:0 0 1.3em 1.2em}.article-body h1,.article-body h2,.article-body h3,.article-body h4{line-height:1.25;margin:1.4em 0 .55em;color:#073b31}.footer{background:#052f26 url('assets/header-blank-green.jpg') center/cover no-repeat;color:white;padding:42px 0 20px;border-top:1px solid #d9a84e44}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:26px}.footer h4{color:#d9a84e;margin:0 0 14px}.footer a{display:block;color:#f7ead0;margin:8px 0}.footer p{color:#f7ead0cc;line-height:1.65}.foot-bottom{border-top:1px solid #d9a84e33;margin-top:24px;padding-top:16px;display:flex;justify-content:space-between;gap:12px;color:#f7ead0aa}.search-results .post-grid{margin-top:30px}@media(max-width:1080px){.nav{grid-template-columns:1fr auto}.links{grid-column:1/3;order:3;padding-bottom:12px}.nav-actions{grid-column:2;grid-row:1}.brand{grid-column:1;grid-row:1}.links a{padding:6px 0}.header-search{top:118px}}@media(max-width:820px){.wrap{padding:0 16px}.nav{display:flex;min-height:72px}.mobile-btn{display:block}.links{display:none;position:absolute;left:0;right:0;top:72px;background:#052f26;padding:16px 22px;flex-direction:column;align-items:flex-start;gap:8px;border-top:1px solid #d9a84e33}.links.open{display:flex}.links a{padding:9px 0}.dropdown:after{display:none}.dropmenu{position:static;display:block;transform:none;background:#073b31;color:white;box-shadow:none;border-color:#d9a84e44;margin-top:4px}.nav-actions{margin-left:auto}.email-btn{padding:10px 13px!important;font-size:13px}.brand strong{font-size:20px;letter-spacing:2px}.brand span{font-size:8.5px;letter-spacing:1.1px}.header-search{position:static;width:auto;margin:14px 16px;background:transparent}.header-search form{border-radius:16px}.header-search input,.header-search button{padding:13px 14px}.intro-visual{padding:10px 0 24px}.intro-shell{padding:0}.intro-img{border-radius:0;box-shadow:none}.post-grid,.footer-grid{grid-template-columns:1fr}.section{padding:42px 0}.content{padding:26px;margin:28px 16px}.foot-bottom{flex-direction:column}.email-btn{display:none}}@media(max-width:520px){.section h2{font-size:30px}.post-card h3{font-size:19px}}


/* v45 fixes: force all cards/thumbnails to horizontal 16:9 */
.post-grid{align-items:stretch}
.post-card img,
.post-card .fallback-thumb{
  width:100% !important;
  aspect-ratio:16/9 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}
.post-card{min-height:100%;}
.interfaith-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:28px}
.interfaith-card{background:#fffaf1;border:1px solid #f0dec0;border-radius:20px;overflow:hidden;box-shadow:0 12px 30px #0001;transition:.18s ease;display:block}
.interfaith-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px #0002;border-color:#d9a84e}
.interfaith-card img{width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;display:block}
.interfaith-card .pad{padding:18px 20px 22px}.interfaith-card h3{margin:0 0 8px;color:#073b31;font-size:24px}.interfaith-card p{margin:0;color:#66736d;line-height:1.6}
@media(max-width:820px){.interfaith-cards{grid-template-columns:1fr}.post-card img,.post-card .fallback-thumb{aspect-ratio:16/9 !important;height:auto !important}}


/* v46 search + section stability fixes */
.header-search{
  right:24px !important;
  top:108px !important;
  width:min(310px,calc(100% - 48px)) !important;
}
.header-search input{padding:11px 14px !important;font-size:14px !important;}
.header-search button{padding:0 15px !important;}
@media(max-width:1080px){.header-search{top:128px !important;width:min(300px,calc(100% - 48px)) !important;}}
@media(max-width:820px){.header-search{position:static !important;width:auto !important;margin:14px 16px 8px !important;}.header-search form{max-width:340px;margin-left:auto;margin-right:auto;}}


/* v47: keep thumbnails horizontal 1200x600 and prevent inline emoji/images inside excerpts from becoming huge */
.post-card > img,
.post-card img.card-thumb,
.post-card .wp-post-image,
.post-card .fallback-thumb{
  width:100% !important;
  aspect-ratio:2 / 1 !important;
  height:auto !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:14px !important;
  margin-bottom:13px !important;
}
.post-card p img,
.post-card p .emoji,
.post-card p img.wp-smiley{
  width:1em !important;
  height:1em !important;
  max-width:1em !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  display:inline !important;
  margin:0 .05em !important;
  border-radius:0 !important;
  vertical-align:-0.1em !important;
}
.post-card p{overflow:hidden;}


/* v48 final: four-card grid and full single featured image */
@media (min-width: 1025px){
  .post-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
.post-grid{gap:22px !important;}
.single-featured,
.single-featured-image img,
.single-post-wrap .wp-post-image,
.single-article > img.wp-post-image{
  width:100% !important;
  height:auto !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
}

/* =========================
   v49 NEW HOMEPAGE STYLING
   Preserves v48 header, footer, pages, and post cards
========================= */

main.ayanoor-home-v49 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 20px;
}

main.ayanoor-home-v49 section {
  background: #ffffff;
  margin: 25px 0;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

main.ayanoor-home-v49 .container {
  max-width: 1000px;
  margin: 0 auto;
}

main.ayanoor-home-v49 .hero {
  text-align: center;
  background: transparent;
  box-shadow: none;
  padding-top: 18px;
}

main.ayanoor-home-v49 .hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  color: #073b31;
  margin: 0 0 12px;
}

main.ayanoor-home-v49 .hero p {
  font-size: 20px;
  color: #5b6b65;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.65;
}

main.ayanoor-home-v49 .search-box {
  margin: 22px auto 0;
  max-width: 520px;
}

main.ayanoor-home-v49 .search-box form {
  display: flex;
  background: #fff;
  border: 1px solid #ead6a8;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  overflow: hidden;
}

main.ayanoor-home-v49 .search-box input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  outline: none;
  font-size: 15px;
}

main.ayanoor-home-v49 .search-box button {
  border: 0;
  background: #d9a84e;
  color: #132b25;
  padding: 0 20px;
  font-weight: 900;
}

main.ayanoor-home-v49 h2 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 3.6vw, 42px);
  color: #073b31;
  margin: 0 0 18px;
  text-align: center;
}

main.ayanoor-home-v49 p,
main.ayanoor-home-v49 li {
  font-size: 17px;
  line-height: 1.7;
  color: #263832;
}

main.ayanoor-home-v49 .moment {
  background: linear-gradient(135deg, #073d2f, #145c42);
  color: #ffffff;
  text-align: center;
}

main.ayanoor-home-v49 .moment h2,
main.ayanoor-home-v49 .moment p {
  color: #ffffff;
}

main.ayanoor-home-v49 .arabic {
  font-size: 32px;
  margin: 18px 0;
  direction: rtl;
  color: #f6dfb3 !important;
}

main.ayanoor-home-v49 .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

main.ayanoor-home-v49 .card {
  background: #f7f2e8;
  padding: 24px 20px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  color: #10251f;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(217,168,78,0.25);
}

main.ayanoor-home-v49 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  border-color: #d9a84e;
}

main.ayanoor-home-v49 .explore .cards {
  grid-template-columns: repeat(4, 1fr);
}

main.ayanoor-home-v49 .weekly ul {
  max-width: 720px;
  margin: 0 auto 18px;
  padding-left: 24px;
}

main.ayanoor-home-v49 .weekly .reflection {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-weight: 700;
  color: #073b31;
}

main.ayanoor-home-v49 .join {
  text-align: center;
}

main.ayanoor-home-v49 .btn {
  display: inline-block;
  background: #d9a84e;
  color: #10251f;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  margin-top: 10px;
}

main.ayanoor-home-v49 .btn:hover {
  background: #c79632;
}

@media (max-width: 820px) {
  main.ayanoor-home-v49 {
    padding: 28px 15px;
  }
  main.ayanoor-home-v49 section {
    padding: 26px 20px;
    margin: 22px 0;
  }
  main.ayanoor-home-v49 .cards,
  main.ayanoor-home-v49 .explore .cards {
    grid-template-columns: 1fr;
  }
  main.ayanoor-home-v49 .arabic {
    font-size: 26px;
  }
}


/* =========================
   v50 AYANOOR BRANDED HOMEPAGE
   Stronger visual identity, scoped only to new homepage
========================= */
body:has(main.ayanoor-home-v50){
  background:
    radial-gradient(circle at 14% 10%, rgba(217,168,78,.16), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(7,59,49,.10), transparent 30%),
    linear-gradient(180deg,#fbf4e6 0%,#f7efe1 48%,#fbf7ef 100%) !important;
}

main.ayanoor-home-v50{
  max-width:1180px;
  margin:0 auto;
  padding:38px 22px 60px;
}

main.ayanoor-home-v50 .home-hero-v50{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(217,168,78,.28);
  border-radius:30px;
  padding:54px 38px;
  background:
    linear-gradient(90deg, rgba(251,244,230,.96), rgba(251,244,230,.88)),
    url('assets/header-blank-green.jpg') center/cover no-repeat;
  box-shadow:0 22px 55px rgba(5,47,38,.10);
  text-align:center;
}

main.ayanoor-home-v50 .home-hero-v50:before{
  content:"AYANOOR";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  font-family:Georgia,serif;
  font-size:clamp(90px,14vw,190px);
  font-weight:900;
  letter-spacing:.12em;
  color:rgba(7,59,49,.045);
  pointer-events:none;
  white-space:nowrap;
}

main.ayanoor-home-v50 .hero-content{position:relative;z-index:2;max-width:850px;margin:0 auto;}
main.ayanoor-home-v50 .eyebrow{display:inline-block;margin-bottom:16px;padding:8px 16px;border-radius:999px;background:#fff7e7;border:1px solid rgba(217,168,78,.40);color:#8a6420;font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;}
main.ayanoor-home-v50 h1{font-family:Georgia,serif;font-size:clamp(42px,6vw,72px);line-height:1.02;color:#073b31;margin:0 0 18px;}
main.ayanoor-home-v50 .hero-content > p{font-size:21px;line-height:1.7;color:#556a62;max-width:730px;margin:0 auto 26px;}

main.ayanoor-home-v50 .search-box{max-width:520px;margin:0 auto;}
main.ayanoor-home-v50 .search-box form{display:flex;background:#fff;border:1px solid #ead6a8;border-radius:999px;box-shadow:0 14px 34px rgba(0,0,0,.10);overflow:hidden;}
main.ayanoor-home-v50 .search-box input{flex:1;border:0;padding:15px 20px;outline:0;font-size:15px;background:#fff;}
main.ayanoor-home-v50 .search-box button{border:0;background:#d9a84e;color:#132b25;padding:0 24px;font-weight:900;}

main.ayanoor-home-v50 .brand-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px auto 0;max-width:900px;position:relative;z-index:2;}
main.ayanoor-home-v50 .brand-mini{background:rgba(255,255,255,.72);border:1px solid rgba(217,168,78,.28);border-radius:18px;padding:18px 16px;text-align:center;box-shadow:0 12px 26px rgba(5,47,38,.06);}
main.ayanoor-home-v50 .brand-mini strong{display:block;color:#073b31;font-size:18px;margin-bottom:5px;}
main.ayanoor-home-v50 .brand-mini span{font-size:13px;color:#6b786f;line-height:1.45;}

main.ayanoor-home-v50 section.home-card{background:#fff;border:1px solid rgba(217,168,78,.24);border-radius:24px;margin:28px auto 0;padding:38px;box-shadow:0 16px 38px rgba(0,0,0,.055);max-width:960px;}
main.ayanoor-home-v50 h2{font-family:Georgia,serif;font-size:clamp(32px,4vw,48px);line-height:1.1;color:#073b31;text-align:center;margin:0 0 22px;}
main.ayanoor-home-v50 h2:after{content:"";display:block;width:76px;height:3px;border-radius:99px;background:#d9a84e;margin:16px auto 0;}

main.ayanoor-home-v50 .moment{position:relative;overflow:hidden;background:linear-gradient(135deg,#042d25,#0b5b47);color:#fff;text-align:center;border-color:rgba(217,168,78,.42) !important;}
main.ayanoor-home-v50 .moment:before{content:"Light from the Qur’an";position:absolute;right:30px;bottom:20px;font-family:Georgia,serif;font-size:54px;font-weight:900;color:rgba(255,255,255,.055);white-space:nowrap;}
main.ayanoor-home-v50 .moment h2,main.ayanoor-home-v50 .moment p{color:#fff;position:relative;z-index:1;}
main.ayanoor-home-v50 .moment h2:after{background:#f0c96a;}
main.ayanoor-home-v50 .arabic{direction:rtl;font-size:38px;color:#f6dfb3 !important;margin:18px 0 10px;position:relative;z-index:1;}
main.ayanoor-home-v50 .translation{font-size:18px;font-weight:700;margin-bottom:8px;}
main.ayanoor-home-v50 .reflection{font-size:17px;opacity:.92;}

main.ayanoor-home-v50 .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px;}
main.ayanoor-home-v50 .explore .cards{grid-template-columns:repeat(4,1fr);}
main.ayanoor-home-v50 .card{position:relative;display:block;text-align:center;text-decoration:none;color:#10251f;background:linear-gradient(180deg,#fffaf0,#f3ead9);border:1px solid rgba(217,168,78,.36);border-radius:18px;padding:24px 16px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);transition:.22s ease;}
main.ayanoor-home-v50 .card:before{content:attr(data-icon);display:block;font-size:28px;line-height:1;margin-bottom:10px;}
main.ayanoor-home-v50 .card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(5,47,38,.13);border-color:#d9a84e;background:#fff6df;}

main.ayanoor-home-v50 .weekly-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none;padding:0;margin:22px 0 20px;}
main.ayanoor-home-v50 .weekly-list li{background:#fbf4e6;border:1px solid rgba(217,168,78,.25);border-radius:16px;padding:16px;text-align:center;font-weight:800;color:#073b31;}
main.ayanoor-home-v50 .weekly .reflection{text-align:center;color:#073b31;font-weight:800;margin:0;}
main.ayanoor-home-v50 .join{text-align:center;background:linear-gradient(135deg,#fff,#fff7e7) !important;}
main.ayanoor-home-v50 .btn{display:inline-block;background:#d9a84e;color:#10251f;padding:14px 28px;border-radius:999px;text-decoration:none;font-weight:900;box-shadow:0 10px 22px rgba(217,168,78,.26);}
main.ayanoor-home-v50 .btn:hover{background:#c99635;}

@media(max-width:820px){
  main.ayanoor-home-v50{padding:24px 16px 44px;}
  main.ayanoor-home-v50 .home-hero-v50{padding:38px 20px;border-radius:22px;}
  main.ayanoor-home-v50 .brand-strip,main.ayanoor-home-v50 .cards,main.ayanoor-home-v50 .explore .cards,main.ayanoor-home-v50 .weekly-list{grid-template-columns:1fr;}
  main.ayanoor-home-v50 section.home-card{padding:28px 20px;border-radius:20px;}
  main.ayanoor-home-v50 .search-box form{border-radius:18px;}
  main.ayanoor-home-v50 .moment:before{font-size:38px;right:18px;}
}

/* v51: Ayanoor branded WP ULike / Beneficial reaction button
   This styles the plugin output directly, so no uploaded PNG button is needed. */
.wpulike,
.wpulike-default,
.wpulike-heart,
.wpulike-robeen,
.wpulike-animated-heart{
  margin:34px 0 40px !important;
  clear:both !important;
  text-align:left !important;
}

.single-article .wpulike,
.article-body .wpulike,
.entry-content .wpulike{
  padding-top:8px !important;
}

.wpulike .wp_ulike_general_class,
.wpulike .wp_ulike_btn,
.wpulike button,
.wpulike-default .wp_ulike_btn,
.wpulike-default button,
.wpulike-heart .wp_ulike_btn,
.wpulike-robeen .wp_ulike_btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  min-height:48px !important;
  padding:13px 26px !important;
  border-radius:999px !important;
  border:2px solid #d9a84e !important;
  background:linear-gradient(135deg,#052f26 0%,#0b4b3a 100%) !important;
  color:#f8e6b8 !important;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif !important;
  font-size:16px !important;
  font-weight:850 !important;
  letter-spacing:.01em !important;
  line-height:1.2 !important;
  text-indent:0 !important;
  box-shadow:0 10px 24px rgba(5,47,38,.18), inset 0 1px 0 rgba(255,255,255,.16) !important;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease !important;
  overflow:visible !important;
}

.wpulike .wp_ulike_general_class:hover,
.wpulike .wp_ulike_btn:hover,
.wpulike button:hover{
  transform:translateY(-2px) !important;
  background:linear-gradient(135deg,#0b4b3a 0%,#126148 100%) !important;
  box-shadow:0 14px 30px rgba(5,47,38,.24), 0 0 0 4px rgba(217,168,78,.13) !important;
}

.wpulike .wp_ulike_btn:before,
.wpulike button:before,
.wpulike .wp_ulike_general_class:before{
  content:"🌿" !important;
  display:inline-block !important;
  margin-right:8px !important;
  font-size:18px !important;
  line-height:1 !important;
  opacity:1 !important;
  background:none !important;
  position:static !important;
  width:auto !important;
  height:auto !important;
  transform:none !important;
}

.wpulike .wp_ulike_btn.wp_ulike_put_image:after,
.wpulike button.wp_ulike_put_image:after,
.wpulike .wp_ulike_is_liked .wp_ulike_btn:after{
  display:none !important;
}

.wpulike .count-box,
.wpulike .wp_ulike_counter,
.wpulike .wp_ulike_likers_wrapper,
.wpulike-default .count-box,
.wpulike-default .wp_ulike_counter{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:38px !important;
  min-height:34px !important;
  margin-left:10px !important;
  padding:6px 13px !important;
  border-radius:999px !important;
  border:1px solid #d9a84e !important;
  background:#fff7e3 !important;
  color:#052f26 !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1 !important;
  box-shadow:0 5px 13px rgba(5,47,38,.09) !important;
}

/* Extra space before the comment area, so the button does not feel cramped. */
#comments,
.comments-area,
.comment-respond{
  margin-top:38px !important;
}

/* Cleaner WP ULike confirmation messages. */
.wp-ulike-notification,
.wpulike-notification,
.wp_ulike_toast,
.swal2-container .swal2-popup{
  border-radius:14px !important;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif !important;
}

@media(max-width:820px){
  .wpulike,
  .wpulike-default,
  .wpulike-heart,
  .wpulike-robeen{
    text-align:center !important;
    margin:30px 0 36px !important;
  }
  .wpulike .wp_ulike_general_class,
  .wpulike .wp_ulike_btn,
  .wpulike button,
  .wpulike-default .wp_ulike_btn,
  .wpulike-default button{
    min-height:46px !important;
    padding:12px 22px !important;
    font-size:15px !important;
  }
  .wpulike .count-box,
  .wpulike .wp_ulike_counter,
  .wpulike-default .count-box,
  .wpulike-default .wp_ulike_counter{
    min-height:32px !important;
    padding:6px 11px !important;
    font-size:14px !important;
  }
}



/* ===== AYANOOR V52 LIBRARY UPGRADE ===== */
.library-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;align-items:start}
.library-sidebar{position:sticky;top:110px}
.sidebar-card{background:#fffaf1;border:1px solid #eddcb8;border-radius:22px;padding:24px;margin-bottom:22px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.sidebar-card h3{margin:0 0 18px;color:#073b31;font-size:22px;font-family:Georgia,serif}
.sidebar-links{list-style:none;padding:0;margin:0}
.sidebar-links li{margin:10px 0}
.sidebar-links a{display:block;padding:12px 14px;border-radius:12px;background:#f8f1e3;font-weight:700;color:#073b31;transition:.18s ease}
.sidebar-links a:hover{background:#d9a84e;color:#052f26;transform:translateX(3px)}
.library-main{min-width:0}
.library-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}
.library-toolbar h2{margin:0;color:#073b31;font-size:42px;font-family:Georgia,serif}
.library-toolbar p{margin:0;color:#7c7c6b;font-weight:700}
.upgraded-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.upgraded-card{padding:0;overflow:hidden;border-radius:24px;background:#fffdf8;box-shadow:0 10px 28px rgba(0,0,0,.05)}
.upgraded-card img,.upgraded-card .fallback-thumb{border-radius:0;margin:0}
.card-content{padding:22px}
.upgraded-card h3{font-size:24px;margin:10px 0 12px;line-height:1.3}
.upgraded-card p{font-size:15px;line-height:1.7}
.card-footer{padding-top:18px;margin-top:18px;border-top:1px solid #eee1c7}
.pagination-wrap{margin-top:34px}
.pagination-wrap .nav-links{display:flex;gap:10px;flex-wrap:wrap}
.pagination-wrap .page-numbers{padding:10px 16px;border-radius:12px;background:#fff;border:1px solid #ead8b1;font-weight:700}
.search-form{display:flex;gap:10px;flex-direction:column}
.search-field{width:100%;padding:14px 16px;border-radius:14px;border:1px solid #e2d4b7;background:#fff}
.search-submit{background:#d9a84e;border:0;padding:14px 16px;border-radius:14px;font-weight:800;color:#052f26;cursor:pointer}
@media(max-width:1100px){.upgraded-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-layout{grid-template-columns:1fr}.library-sidebar{position:static}}
@media(max-width:700px){.upgraded-grid{grid-template-columns:1fr}.library-toolbar{flex-direction:column;align-items:flex-start}.library-toolbar h2{font-size:34px}}



/* =========================================
   FAMILY & HUMAN CONNECTION SECTION
========================================= */

.family-human {
  background: linear-gradient(180deg, #0d1f1a 0%, #132a24 100%);
  color: #f3efe3;
}

.family-human .section-intro {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: center;
  opacity: 0.92;
  line-height: 1.8;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.family-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.25s ease;
  backdrop-filter: blur(3px);
}

.family-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.4);
}

.family-card h3 {
  color: #d9b56d;
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.family-card p {
  color: #f5f0e6;
  line-height: 1.7;
  font-size: 0.96rem;
}

@media (max-width: 768px) {
  .family-card {
    padding: 22px;
  }
}

/* =========================================
   v54 ACCESSIBLE LEFT DISCOVERY EXPERIENCE
========================================= */
:root{
  --ay-sidebar-width: 292px;
}
@media (min-width: 1180px){
  body{
    padding-left: var(--ay-sidebar-width);
  }
  .topbar{
    left: var(--ay-sidebar-width);
    width: calc(100% - var(--ay-sidebar-width));
  }
}
.ay-discovery-sidebar{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--ay-sidebar-width);
  background: linear-gradient(180deg,#041f1a 0%,#073b31 100%);
  color: #f8ecd2;
  z-index: 999;
  border-right: 1px solid rgba(217,168,78,.34);
  box-shadow: 12px 0 30px rgba(0,0,0,.18);
  overflow-y: auto;
}
.ay-discovery-inner{
  padding: 26px 20px 34px;
}
.ay-discovery-title{
  color:#d9a84e;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height:1.1;
  margin: 6px 0 10px;
}
.ay-discovery-sidebar p{
  color:rgba(248,236,210,.86);
  line-height:1.65;
  font-size:14px;
  margin:0 0 18px;
}
.ay-discovery-search form{
  display:flex;
  background:#fffaf1;
  border:1px solid rgba(217,168,78,.45);
  border-radius:16px;
  overflow:hidden;
  margin: 0 0 18px;
}
.ay-discovery-search input{
  flex:1;
  min-width:0;
  border:0;
  padding:13px 12px;
  font-size:14px;
  outline:none;
  background:#fffaf1;
  color:#073b31;
}
.ay-discovery-search button{
  border:0;
  background:#d9a84e;
  color:#052f26;
  font-weight:900;
  padding:0 13px;
  cursor:pointer;
}
.ay-discovery-links{
  display:grid;
  gap:9px;
  margin:20px 0 22px;
}
.ay-discovery-links a{
  color:#fffaf1;
  text-decoration:none;
  padding:12px 13px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(217,168,78,.18);
  font-weight:800;
}
.ay-discovery-links a:hover,
.ay-discovery-links a:focus-visible,
.ay-discovery-pills a:hover,
.ay-discovery-pills a:focus-visible{
  outline:2px solid rgba(217,168,78,.78);
  outline-offset:2px;
  background:rgba(217,168,78,.13);
}
.ay-discovery-pills{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.ay-discovery-pills a{
  color:#f8ecd2;
  text-decoration:none;
  font-size:12px;
  line-height:1.3;
  padding:9px 10px;
  border-radius:999px;
  border:1px solid rgba(217,168,78,.26);
  background:rgba(0,0,0,.14);
}
.pillar-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  margin-top:30px;
}
.pillar-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fffaf1;
  border:1px solid #f0dec0;
  border-radius:20px;
  padding:24px;
  min-height:190px;
  transition:.2s ease;
}
.pillar-card:hover,
.pillar-card:focus-visible{
  transform:translateY(-4px);
  border-color:#d9a84e;
  box-shadow:0 18px 36px rgba(0,0,0,.12);
  outline:none;
}
.pillar-card h3{
  color:#073b31;
  margin:0 0 12px;
  font-size:22px;
  line-height:1.2;
}
.pillar-card p{
  color:#66736d;
  line-height:1.65;
  margin:0;
}
.family-card{
  display:block;
  text-decoration:none;
}
.family-card:focus-visible{
  outline:3px solid rgba(217,168,78,.85);
  outline-offset:4px;
}
@media (max-width:1179px){
  body{padding-left:0;}
  .ay-discovery-sidebar{
    position:static;
    width:auto;
    border-right:0;
    border-bottom:1px solid rgba(217,168,78,.34);
    box-shadow:none;
  }
  .ay-discovery-inner{
    max-width:1100px;
    margin:0 auto;
    padding:18px 18px 20px;
  }
  .ay-discovery-title{font-size:24px;}
  .ay-discovery-links{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:900px){
  .ay-discovery-links,
  .pillar-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:560px){
  .ay-discovery-inner{padding:16px;}
  .ay-discovery-links,
  .pillar-grid{grid-template-columns:1fr;}
  .ay-discovery-search form{border-radius:14px;}
  .pillar-card{min-height:auto;}
}

/* =========================================
   v55: Qur'an Library Interface + Compact Cards
   Inspired by the approved Ayanoor desktop/mobile visual
========================================= */
:root{--ay55-border:#eadcc5;--ay55-cream:#fffaf2;--ay55-panel:#fffdf8;--ay55-shadow:0 18px 46px rgba(31,24,10,.08)}
body{background:#fbf6ed;}
.topbar.ay55-topbar{position:sticky;top:0;background:#052f26 url('assets/header-blank-green.jpg') center/cover no-repeat;border-bottom:1px solid rgba(217,168,78,.38)}
.ay55-nav{max-width:1360px;min-height:92px;grid-template-columns:260px 1fr auto;gap:20px}
.ay55-brand{display:flex;align-items:center;gap:12px}.ay55-brand img{width:74px;height:auto;display:block}.ay55-brand span{display:block}.ay55-brand strong{font-family:Georgia,serif;color:#e8b957;font-size:26px;letter-spacing:2px;line-height:1}.ay55-brand em{display:block;color:#fff7e6;font-style:normal;text-transform:uppercase;font-size:9px;letter-spacing:1.15px;margin-top:5px;max-width:175px}.ay55-nav .links{gap:22px;font-size:14px}.ay55-nav .links a:hover{color:#e8b957}.ay55-nav-actions{gap:12px}.ay55-nav-search{width:230px}.ay55-nav-search form{display:flex;align-items:center;height:44px;background:rgba(1,26,21,.46);border:1px solid rgba(217,168,78,.72);border-radius:10px;overflow:hidden}.ay55-nav-search input{min-width:0;flex:1;background:transparent;color:white;border:0;padding:0 12px;outline:0}.ay55-nav-search input::placeholder{color:#f4e8d1}.ay55-nav-search button{height:100%;border:0;background:transparent;color:#e8b957;padding:0 12px;font-weight:800}.whatsapp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid rgba(217,168,78,.8);border-radius:10px;background:#063d31;color:#fff!important;font-weight:800;white-space:nowrap}.whatsapp-btn:before{content:'☘';display:inline-block;margin-right:8px;color:#5ee08e}.header-search,.ay-discovery-sidebar{display:none!important}

.ay55-library-shell{max-width:1380px;margin:0 auto;padding:24px 16px 28px;display:grid;grid-template-columns:270px minmax(0,1fr) 250px;gap:18px;align-items:start}.ay55-left-panel,.ay55-right-panel{display:flex;flex-direction:column;gap:16px;position:sticky;top:112px}.ay55-center-panel{min-width:0}.ay55-panel-card,.ay55-stats,.ay55-juz-band,.ay55-section-head{background:var(--ay55-panel);border:1px solid var(--ay55-border);border-radius:12px;box-shadow:var(--ay55-shadow)}.ay55-panel-card{padding:18px}.ay55-panel-card h3{font-family:Georgia,serif;font-size:20px;color:#152f29;margin:0 0 12px}.ay55-panel-card p{font-size:13px;line-height:1.65;color:#4e5d56;margin:0 0 14px}.ay55-panel-card form{display:flex;height:42px;border:1px solid #e4d5be;border-radius:9px;overflow:hidden;background:#fff}.ay55-panel-card input{flex:1;min-width:0;border:0;padding:0 10px;background:transparent;outline:0;font-size:13px}.ay55-panel-card button{border:0;background:#fff;color:#8c6a25;padding:0 11px}.ay55-tab-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.ay55-tab-row a,.ay55-filter,.ay55-topic{display:flex;align-items:center;justify-content:space-between;min-height:40px;border:1px solid #eadcc5;border-radius:8px;padding:0 12px;font-size:13px;color:#1c302b;background:#fff}.ay55-tab-row a.active,.ay55-filter.active{background:#05362c;color:#f6d47e;border-color:#05362c}.ay55-filter,.ay55-topic{margin-top:8px}.ay55-topic:after{content:'›';opacity:.7}.ay55-juz-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ay55-juz-grid a{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:1px solid #eadcc5;border-radius:8px;background:#fff;font-size:13px;font-weight:700}.ay55-quran-hero{min-height:350px;border-radius:14px;overflow:hidden;background:linear-gradient(90deg,rgba(2,29,24,.96),rgba(2,29,24,.72),rgba(2,29,24,.1)),url('assets/quran-hero.jpg') center right/cover no-repeat;color:white;padding:54px 36px;display:flex;align-items:center;box-shadow:var(--ay55-shadow)}.ay55-quran-hero h1{font-family:Georgia,serif;font-size:clamp(42px,5vw,64px);line-height:1;margin:0 0 16px}.ay55-quran-hero p{max-width:540px;font-size:17px;line-height:1.8;color:#fff7e8;margin:0}.ay55-hero-actions{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}.ay55-hero-actions a,.ay55-study-card a,.ay55-verse a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border-radius:8px;border:1px solid #d9a84e;color:#fff;background:rgba(2,29,24,.5);font-weight:800;font-size:13px}.ay55-hero-actions a:first-child,.ay55-study-card a{background:#073b31;color:#ffe0a4}.ay55-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:18px;padding:20px 10px}.ay55-stats div{text-align:center;border-right:1px solid #eadcc5}.ay55-stats div:last-child{border-right:0}.ay55-stats strong{display:block;font-family:Georgia,serif;font-size:28px;color:#152f29}.ay55-stats span{display:block;font-size:12px;color:#45564f;margin-top:4px}.ay55-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;margin-top:18px}.ay55-section-head h2{font-family:Georgia,serif;font-size:24px;color:#152f29;margin:0}.ay55-section-head div{display:flex;gap:8px}.ay55-section-head a{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid #eadcc5;font-size:12px}.ay55-section-head a.active{background:#05362c;color:#ffe0a4}

.ay55-compact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}.ay55-compact-card{background:#fffdf8;border:1px solid #eadcc5;border-radius:12px;overflow:hidden;box-shadow:0 10px 28px rgba(31,24,10,.055);transition:.16s ease;display:block}.ay55-compact-card:hover{transform:translateY(-3px);border-color:#d9a84e;box-shadow:0 18px 38px rgba(31,24,10,.1)}.ay55-thumb-wrap{height:94px;overflow:hidden;background:#052f26}.ay55-card-thumb,.ay55-fallback-thumb{width:100%!important;height:94px!important;aspect-ratio:auto!important;object-fit:cover!important;display:block!important;margin:0!important;border-radius:0!important}.ay55-fallback-thumb{display:flex!important;align-items:center;justify-content:center;color:#e6bd64;text-align:center;font-size:12px;font-weight:800;padding:8px}.ay55-card-body{padding:12px 12px 14px}.ay55-meta{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#a57928;font-weight:900}.ay55-compact-card h3{font-size:16px;line-height:1.25;color:#152f29;margin:5px 0 5px}.ay55-compact-card p{font-size:12px;line-height:1.55;color:#5d6a64;margin:0}.post-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}.post-card{border-radius:12px!important;padding:10px!important}.post-card > img,.post-card img.card-thumb,.post-card .wp-post-image,.post-card .fallback-thumb{height:105px!important;aspect-ratio:auto!important;border-radius:9px!important;margin-bottom:9px!important}.post-card h3{font-size:16px!important;line-height:1.28!important;margin:4px 0 5px!important}.post-card p{font-size:12px!important;line-height:1.5!important}.post-card .meta,.meta{font-size:10px!important}.read-more{font-size:12px!important;margin-top:8px!important}

.ay55-juz-band{padding:22px;margin-top:22px}.ay55-juz-band h2{font-family:Georgia,serif;color:#152f29;font-size:24px;margin:0 0 8px}.ay55-juz-band p{font-size:13px;color:#52635c;margin:0 0 18px}.ay55-juz-feature{display:grid;grid-template-columns:repeat(5,1fr) auto;gap:12px;align-items:center}.ay55-juz-feature span{border-right:1px solid #eadcc5;text-align:center;color:#152f29;font-weight:800}.ay55-juz-feature small{font-weight:500;color:#5c6b65}.ay55-juz-feature a{border:1px solid #d9a84e;border-radius:8px;padding:12px 16px;font-weight:800;color:#15382f;background:#fff}.ay55-verse{text-align:center}.ay55-verse .arabic{direction:rtl;font-size:26px;line-height:1.8;color:#183d34;margin:18px 0}.ay55-verse a{color:#15382f;background:#fff;border-color:#d9a84e}.ay55-study-card{background:#05362c url('assets/header-blank-green.jpg') center/cover no-repeat;border-radius:12px;padding:22px;color:white;box-shadow:var(--ay55-shadow);border:1px solid rgba(217,168,78,.35)}.ay55-study-card h3{font-family:Georgia,serif;font-size:22px;line-height:1.25;margin:0 0 10px;color:#fff}.ay55-study-card p{font-size:13px;line-height:1.6;color:#f7ead0;margin:0 0 16px}.footer{margin-top:0}

/* Family section inherits compact premium look */
.family-human{background:#073b31!important;border-radius:0!important}.family-card{min-height:190px}.pillar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.pillar-card{background:#fffdf8;border:1px solid #eadcc5;border-radius:14px;padding:20px;box-shadow:var(--ay55-shadow)}.pillar-card h3{font-family:Georgia,serif;color:#15382f;margin:0 0 10px}.pillar-card p{color:#5d6a64;line-height:1.6;margin:0}

@media(max-width:1180px){.ay55-library-shell{grid-template-columns:230px minmax(0,1fr)}.ay55-right-panel{display:none}.ay55-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ay55-nav{grid-template-columns:230px 1fr}.ay55-nav-actions{grid-column:1/-1;justify-content:center}.ay55-nav-search{width:min(420px,100%)}}
@media(max-width:860px){.ay55-nav{display:flex}.ay55-brand img{width:58px}.ay55-brand strong{font-size:22px}.ay55-nav-actions{display:none}.ay55-library-shell{display:block;padding:0 12px 24px}.ay55-left-panel{position:static;margin:14px 0}.ay55-left-panel .ay55-panel-card:nth-child(n+3){display:none}.ay55-quran-hero{min-height:260px;padding:34px 24px;border-radius:12px;background-position:center}.ay55-stats{grid-template-columns:repeat(4,1fr);padding:12px 4px}.ay55-stats strong{font-size:20px}.ay55-stats span{font-size:10px}.ay55-section-head{align-items:flex-start;flex-direction:column}.ay55-compact-grid,.post-grid{grid-template-columns:1fr!important}.ay55-compact-card{display:grid;grid-template-columns:96px 1fr}.ay55-thumb-wrap,.ay55-card-thumb,.ay55-fallback-thumb{height:100%!important;min-height:104px!important}.ay55-compact-card h3{font-size:15px}.post-card{display:grid!important;grid-template-columns:105px 1fr;gap:12px}.post-card > img,.post-card img.card-thumb,.post-card .wp-post-image,.post-card .fallback-thumb{height:100px!important;width:105px!important;margin:0!important}.post-card h3{font-size:15px!important}.post-card p{display:none}.pillar-grid{grid-template-columns:1fr}.ay55-juz-feature{grid-template-columns:repeat(2,1fr)}.ay55-juz-feature span{border-right:0;border-bottom:1px solid #eadcc5;padding-bottom:8px}.mobile-btn{margin-left:auto}}
@media(max-width:520px){.ay55-quran-hero h1{font-size:38px}.ay55-hero-actions a{width:100%}.ay55-juz-grid{grid-template-columns:repeat(5,1fr)}}



/* =========================================================
   AYANOOR v56 - LIBRARY SEARCH BACKBONE
   Purpose: clean library look, strong search, compact cards
========================================================= */

:root {
  --ay56-green: #062f28;
  --ay56-green-2: #0b453b;
  --ay56-gold: #d8a740;
  --ay56-gold-soft: #f1dfb8;
  --ay56-cream: #fbf6ea;
  --ay56-card: #fffdf8;
  --ay56-border: rgba(120, 92, 36, 0.18);
  --ay56-text: #10251f;
  --ay56-muted: #617068;
  --ay56-shadow: 0 18px 45px rgba(20, 35, 29, 0.08);
}

body {
  background: var(--ay56-cream) !important;
}

.ay56-library-page {
  background: var(--ay56-cream);
  color: var(--ay56-text);
}

.ay56-wrap {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
}

.ay56-library-hero {
  padding: 34px 0 22px;
}

.ay56-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}

.ay56-hero-copy {
  border-radius: 26px;
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(6,47,40,0.96), rgba(6,47,40,0.77)),
    radial-gradient(circle at 78% 35%, rgba(216,167,64,0.20), transparent 38%);
  box-shadow: var(--ay56-shadow);
  color: #fffdf3;
  min-height: 310px;
}

.ay56-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ay56-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
}

.ay56-hero-copy h1 {
  color: #fffdf3;
  font-size: clamp(36px, 5.2vw, 74px);
  line-height: .96;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  max-width: 980px;
}

.ay56-hero-copy p {
  color: rgba(255,253,243,0.88);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  max-width: 850px;
  margin: 0 0 24px;
}

.ay56-hero-search,
.ay56-rail-search {
  display: flex;
  align-items: center;
}

.ay56-hero-search {
  width: min(760px, 100%);
  background: #fff;
  border: 1px solid rgba(216,167,64,.45);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.ay56-hero-search input,
.ay56-rail-search input {
  appearance: none;
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  background: #fff;
  color: var(--ay56-text);
}

.ay56-hero-search input {
  padding: 18px 22px;
  font-size: 16px;
}

.ay56-hero-search button {
  border: 0;
  background: var(--ay56-gold);
  color: #10251f;
  padding: 18px 30px;
  font-weight: 800;
  cursor: pointer;
}

.ay56-search-hints {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ay56-search-hints a,
.ay56-chip-cloud a {
  display: inline-flex;
  text-decoration: none;
  border: 1px solid rgba(216,167,64,.35);
  border-radius: 999px;
  padding: 8px 12px;
  color: inherit;
  background: rgba(255,255,255,.08);
  font-size: 13px;
}

.ay56-hero-panel {
  display: grid;
  gap: 14px;
}

.ay56-hero-panel > div,
.ay56-rail-card,
.ay56-post-card,
.ay56-empty-state {
  background: var(--ay56-card);
  border: 1px solid var(--ay56-border);
  border-radius: 20px;
  box-shadow: var(--ay56-shadow);
}

.ay56-hero-panel > div {
  padding: 22px;
}

.ay56-hero-panel strong {
  display: block;
  color: var(--ay56-green);
  font-size: 18px;
  margin-bottom: 7px;
}

.ay56-hero-panel span {
  color: var(--ay56-muted);
  line-height: 1.55;
}

.ay56-library-shell {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
  padding: 14px 0 54px;
}

.ay56-left-rail,
.ay56-right-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.ay56-rail-card {
  padding: 18px;
}

.ay56-rail-card h2,
.ay56-rail-card h3 {
  color: var(--ay56-green);
  margin: 0 0 14px;
  font-size: 18px;
}

.ay56-rail-search {
  border: 1px solid var(--ay56-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 14px;
}

.ay56-rail-search input {
  padding: 12px 12px;
  font-size: 14px;
}

.ay56-rail-search button {
  width: 44px;
  border: 0;
  background: #fff;
  color: var(--ay56-green);
  cursor: pointer;
  font-size: 20px;
}

.ay56-rail-nav,
.ay56-topic-list {
  display: grid;
  gap: 8px;
}

.ay56-rail-nav a,
.ay56-topic-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ay56-text);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(6,47,40,0.035);
  border: 1px solid rgba(120, 92, 36, 0.10);
  font-size: 14px;
  line-height: 1.3;
}

.ay56-rail-nav a:hover,
.ay56-topic-list a:hover {
  background: var(--ay56-green);
  color: #fffdf3;
}

.ay56-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ay56-chip-cloud a {
  color: var(--ay56-green);
  background: #fff;
  font-size: 12.5px;
}

.ay56-library-main {
  min-width: 0;
}

.ay56-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 0 0 16px;
}

.ay56-section-head h2 {
  margin: 0;
  color: var(--ay56-green);
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.025em;
}

.ay56-view-all {
  display: inline-flex;
  text-decoration: none;
  color: var(--ay56-green);
  border: 1px solid var(--ay56-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  font-weight: 700;
}

.ay56-post-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 16px !important;
}

.ay56-post-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ay56-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(20, 35, 29, 0.12);
}

.ay56-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgba(6,47,40,.08);
  overflow: hidden;
}

.ay56-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.ay56-thumb-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(6,47,40,.28);
  font-weight: 900;
  letter-spacing: .18em;
}

.ay56-post-body {
  padding: 13px 14px 15px;
}

.ay56-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ay56-muted);
  font-size: 11.5px;
  margin-bottom: 8px;
}

.ay56-meta span {
  color: var(--ay56-green);
  font-weight: 700;
}

.ay56-post-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ay56-green);
}

.ay56-post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ay56-post-card p {
  color: var(--ay56-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.ay56-featured {
  background: linear-gradient(150deg, var(--ay56-green), var(--ay56-green-2));
  color: #fffdf3;
}

.ay56-featured h3,
.ay56-featured p {
  color: #fffdf3;
}

.ay56-featured a {
  display: inline-flex;
  margin-top: 8px;
  color: #fffdf3;
  border: 1px solid rgba(216,167,64,.55);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
}

.ay56-verse-card p,
.ay56-rail-card p {
  color: var(--ay56-muted);
  line-height: 1.65;
  margin: 0;
}

.ay56-empty-state {
  padding: 34px;
  text-align: center;
}

/* Reduce older theme oversized cards/thumbnails if they appear elsewhere */
.post-thumbnail img,
.card img,
.wp-post-image {
  max-height: 220px;
  object-fit: cover;
}

@media (max-width: 1180px) {
  .ay56-hero-grid {
    grid-template-columns: 1fr;
  }

  .ay56-hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .ay56-library-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .ay56-right-rail {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .ay56-wrap {
    width: min(100% - 24px, 720px);
  }

  .ay56-library-hero {
    padding-top: 18px;
  }

  .ay56-hero-copy {
    border-radius: 20px;
    min-height: unset;
  }

  .ay56-hero-search {
    border-radius: 18px;
    display: grid;
  }

  .ay56-hero-search button {
    width: 100%;
  }

  .ay56-hero-panel {
    grid-template-columns: 1fr;
  }

  .ay56-library-shell {
    grid-template-columns: 1fr;
  }

  .ay56-left-rail,
  .ay56-right-rail {
    position: static;
  }

  .ay56-right-rail {
    grid-template-columns: 1fr;
  }

  .ay56-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .ay56-post-body {
    padding: 11px;
  }

  .ay56-post-card h3 {
    font-size: 14px;
  }

  .ay56-post-card p {
    display: none;
  }
}

@media (max-width: 480px) {
  .ay56-post-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Accessibility */
.ay56-hero-search input:focus,
.ay56-rail-search input:focus,
.ay56-view-all:focus,
.ay56-rail-nav a:focus,
.ay56-topic-list a:focus,
.ay56-chip-cloud a:focus {
  outline: 3px solid rgba(216,167,64,.55);
  outline-offset: 2px;
}




/* =========================================================
   AYANOOR v57 - LOGO, HEADER, iPAD & PLACEMENT FIXES
========================================================= */

/* Prevent accidental visible PHP fragments from older theme spacing effects */
body::before {
  content: none !important;
}

body {
  margin: 0 !important;
}

/* Header rebuilt for stable placement */
.ay57-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background:
    linear-gradient(90deg, rgba(2,39,32,.98), rgba(4,58,49,.98)),
    radial-gradient(circle at 85% 10%, rgba(216,167,64,.18), transparent 35%);
  border-bottom: 1px solid rgba(216,167,64,.24);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.admin-bar .ay57-site-header {
  top: 32px;
}

.ay57-header-inner {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 86px;
  display: grid;
  grid-template-columns: 255px minmax(360px, 1fr) minmax(190px, 260px) auto;
  gap: 18px;
  align-items: center;
}

.ay57-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ay57-logo-link img {
  width: 235px !important;
  height: auto !important;
  max-height: 74px !important;
  object-fit: contain !important;
  display: block;
}

.ay57-main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  align-items: center;
  flex-wrap: nowrap;
}

.ay57-main-nav a {
  color: #fffdf3;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
  white-space: nowrap;
}

.ay57-main-nav a:hover,
.ay57-main-nav a:focus {
  color: #d8a740;
}

.ay57-header-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(216,167,64,.45);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  min-width: 0;
}

.ay57-header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fffdf3;
  padding: 12px 12px;
  font-size: 14px;
}

.ay57-header-search input::placeholder {
  color: rgba(255,253,243,.72);
}

.ay57-header-search button {
  border: 0;
  background: #d8a740;
  color: #10251f;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.ay57-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffdf3;
  border: 1px solid rgba(216,167,64,.55);
  border-radius: 14px;
  padding: 12px 15px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

/* Correct old top spacing now that header is rebuilt */
.ay56-library-hero {
  padding-top: 28px !important;
}

/* Reduce hero height and improve placement */
.ay56-hero-copy {
  min-height: 250px !important;
}

.ay56-hero-copy h1 {
  font-size: clamp(34px, 4.25vw, 64px) !important;
  line-height: 1.02 !important;
}

.ay56-hero-copy p {
  max-width: 900px !important;
}

/* Improve desktop balance */
.ay56-hero-grid {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.ay56-hero-panel > div {
  min-height: 0 !important;
}

/* iPad landscape and smaller desktop */
@media (min-width: 821px) and (max-width: 1180px) {
  .admin-bar .ay57-site-header {
    top: 32px;
  }

  .ay57-header-inner {
    width: min(100% - 28px, 1120px);
    min-height: 118px;
    grid-template-columns: 235px 1fr;
    grid-template-areas:
      "logo actions"
      "nav nav";
    row-gap: 10px;
    column-gap: 16px;
    padding: 10px 0 12px;
  }

  .ay57-logo-link {
    grid-area: logo;
  }

  .ay57-logo-link img {
    width: 220px !important;
    max-height: 72px !important;
  }

  .ay57-main-nav {
    grid-area: nav;
    justify-content: center;
    gap: 24px;
    padding-top: 2px;
  }

  .ay57-main-nav a {
    font-size: 15px;
  }

  .ay57-header-search {
    justify-self: end;
    width: min(100%, 360px);
  }

  .ay57-whatsapp {
    display: none;
  }

  .ay56-wrap {
    width: min(100% - 52px, 1120px) !important;
  }

  .ay56-library-hero {
    padding-top: 28px !important;
  }

  .ay56-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ay56-hero-panel {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .ay56-hero-panel > div {
    padding: 24px !important;
  }

  .ay56-hero-copy {
    padding: 42px !important;
    border-radius: 28px !important;
  }

  .ay56-hero-copy h1 {
    max-width: 920px !important;
  }

  .ay56-library-shell {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .ay56-left-rail {
    position: sticky !important;
    top: 150px !important;
  }

  .ay56-right-rail {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .ay56-post-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

/* iPad portrait and tablets */
@media (min-width: 700px) and (max-width: 820px) {
  .admin-bar .ay57-site-header {
    top: 46px;
  }

  .ay57-header-inner {
    width: min(100% - 24px, 760px);
    min-height: 110px;
    grid-template-columns: 210px 1fr;
    grid-template-areas:
      "logo search"
      "nav nav";
    gap: 10px;
    padding: 10px 0;
  }

  .ay57-logo-link {
    grid-area: logo;
  }

  .ay57-logo-link img {
    width: 195px !important;
    max-height: 66px !important;
  }

  .ay57-header-search {
    grid-area: search;
    justify-self: end;
    width: min(100%, 330px);
  }

  .ay57-whatsapp {
    display: none;
  }

  .ay57-main-nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 0 4px;
    gap: 20px;
    scrollbar-width: none;
  }

  .ay57-main-nav::-webkit-scrollbar {
    display: none;
  }

  .ay57-main-nav a {
    font-size: 14px;
  }

  .ay56-wrap {
    width: min(100% - 28px, 760px) !important;
  }

  .ay56-library-hero {
    padding-top: 22px !important;
  }

  .ay56-hero-copy {
    padding: 34px !important;
    border-radius: 26px !important;
  }

  .ay56-hero-copy h1 {
    font-size: clamp(38px, 8vw, 58px) !important;
  }

  .ay56-hero-grid,
  .ay56-library-shell {
    grid-template-columns: 1fr !important;
  }

  .ay56-hero-panel {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .ay56-left-rail,
  .ay56-right-rail {
    position: static !important;
  }

  .ay56-left-rail {
    grid-template-columns: 1fr 1fr !important;
    display: grid !important;
    align-items: start;
  }

  .ay56-left-rail .ay56-rail-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .ay56-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ay56-right-rail {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Phones */
@media (max-width: 699px) {
  .admin-bar .ay57-site-header {
    top: 46px;
  }

  .ay57-header-inner {
    width: min(100% - 20px, 440px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .ay57-logo-link {
    justify-content: center;
  }

  .ay57-logo-link img {
    width: 190px !important;
    max-height: 64px !important;
  }

  .ay57-main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding: 4px 0;
    scrollbar-width: none;
  }

  .ay57-main-nav::-webkit-scrollbar {
    display: none;
  }

  .ay57-main-nav a {
    font-size: 14px;
  }

  .ay57-whatsapp {
    display: none;
  }

  .ay57-header-search {
    width: 100%;
  }

  .ay57-header-search input {
    padding: 11px 12px;
  }

  .ay56-library-hero {
    padding-top: 18px !important;
  }

  .ay56-hero-copy {
    padding: 26px 22px !important;
    border-radius: 22px !important;
  }

  .ay56-hero-copy h1 {
    font-size: 38px !important;
  }

  .ay56-search-hints {
    gap: 8px !important;
  }

  .ay56-hero-panel,
  .ay56-left-rail,
  .ay56-right-rail {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .ay57-site-header {
    top: 46px;
  }
}




/* =========================================================
   AYANOOR v58 - POLISHED HEADER & HARMONY
========================================================= */

:root{
 --ay58-deep:#052a24;
 --ay58-deep2:#0a3a32;
 --ay58-gold:#d6aa4d;
}

/* Floating premium header */
.ay57-site-header{
  background: rgba(5,42,36,.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214,170,77,.18) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}

.ay57-header-inner{
  min-height:72px !important;
  gap:14px !important;
}

/* Better logo sizing */
.ay57-logo-link img{
  width:205px !important;
  max-height:58px !important;
}

/* calmer nav */
.ay57-main-nav{
  gap:18px !important;
}

.ay57-main-nav a{
  font-size:14px !important;
  opacity:.92;
  transition:all .2s ease;
}

.ay57-main-nav a:hover{
  opacity:1;
  color:var(--ay58-gold) !important;
}

/* smaller cleaner search */
.ay57-header-search{
  background: rgba(255,255,255,.06) !important;
  border:1px solid rgba(214,170,77,.18) !important;
  border-radius:12px !important;
}

.ay57-header-search input{
  padding:10px 11px !important;
  font-size:13px !important;
}

.ay57-header-search button{
  padding:10px 12px !important;
  font-size:12px !important;
  background: rgba(214,170,77,.92) !important;
}

/* softer whatsapp button */
.ay57-whatsapp{
  padding:10px 13px !important;
  border-radius:12px !important;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(214,170,77,.25) !important;
  font-size:13px !important;
}

/* Reduce hero dominance */
.ay56-library-hero{
  padding-top:14px !important;
  padding-bottom:10px !important;
}

.ay56-hero-copy{
  min-height:200px !important;
  padding:34px !important;
  background:
    linear-gradient(90deg, rgba(5,42,36,.95), rgba(10,58,50,.78)) !important;
}

.ay56-hero-copy h1{
  font-size: clamp(30px,4vw,54px) !important;
  margin-bottom:10px !important;
}

.ay56-hero-copy p{
  font-size:15px !important;
  line-height:1.6 !important;
  margin-bottom:16px !important;
}

.ay56-hero-search{
  max-width:620px !important;
}

.ay56-hero-search input{
  padding:14px 16px !important;
  font-size:14px !important;
}

.ay56-hero-search button{
  padding:14px 18px !important;
  font-size:13px !important;
}

/* tighter content spacing */
.ay56-library-shell{
  padding-top:6px !important;
  gap:16px !important;
}

.ay56-rail-card{
  border-radius:16px !important;
}

.ay56-post-grid{
  gap:14px !important;
}

.ay56-post-card{
  border-radius:16px !important;
}

.ay56-post-body{
  padding:11px 12px 13px !important;
}

.ay56-post-card h3{
  font-size:15px !important;
}

/* iPad harmony */
@media (min-width:700px) and (max-width:1180px){

 .ay57-header-inner{
   min-height:84px !important;
 }

 .ay57-logo-link img{
   width:190px !important;
   max-height:54px !important;
 }

 .ay56-hero-copy{
   padding:28px !important;
 }

 .ay56-hero-copy h1{
   font-size: clamp(32px,5vw,48px) !important;
 }

 .ay56-library-shell{
   gap:14px !important;
 }

 .ay56-left-rail{
   top:104px !important;
 }
}

/* Mobile calmness */
@media (max-width:699px){

 .ay57-site-header{
   background: rgba(5,42,36,.95) !important;
 }

 .ay57-logo-link img{
   width:170px !important;
   max-height:50px !important;
 }

 .ay56-hero-copy{
   padding:24px 20px !important;
 }

 .ay56-hero-copy h1{
   font-size:34px !important;
 }

 .ay56-hero-search{
   border-radius:14px !important;
 }

 .ay56-post-grid{
   gap:12px !important;
 }
}




/* =========================================================
   AYANOOR v59 - UNIFIED LIBRARY SYSTEM
   One structure for Home, search, archive, categories, and main pages.
========================================================= */

:root{
  --ay59-deep:#052a24;
  --ay59-deep2:#0a3a32;
  --ay59-gold:#d6aa4d;
  --ay59-cream:#fbf6ea;
  --ay59-card:#fffdf8;
  --ay59-text:#10251f;
  --ay59-muted:#66736c;
  --ay59-border:rgba(120,92,36,.17);
  --ay59-shadow:0 16px 40px rgba(20,35,29,.075);
}

body{
  background:var(--ay59-cream) !important;
}

.ay59-library-page{
  background:var(--ay59-cream);
  color:var(--ay59-text);
}

.ay59-wrap{
  width:min(1440px, calc(100% - 44px));
  margin:0 auto;
}

.ay59-hero{
  padding:18px 0 10px;
}

.ay59-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
}

.ay59-hero-copy{
  background:linear-gradient(90deg, rgba(5,42,36,.96), rgba(10,58,50,.80));
  color:#fffdf3;
  border-radius:24px;
  padding:32px;
  min-height:200px;
  box-shadow:var(--ay59-shadow);
}

.ay59-kicker{
  display:inline-flex;
  color:var(--ay59-gold);
  text-transform:uppercase;
  letter-spacing:.15em;
  font-weight:800;
  font-size:11.5px;
  margin-bottom:10px;
}

.ay59-hero-copy h1{
  color:#fffdf3;
  margin:0 0 10px;
  font-size:clamp(34px,4vw,58px);
  line-height:1.02;
  letter-spacing:-.04em;
}

.ay59-hero-copy p{
  color:rgba(255,253,243,.88);
  font-size:15.5px;
  line-height:1.62;
  margin:0 0 17px;
  max-width:900px;
}

.ay59-main-search{
  display:flex;
  width:min(660px,100%);
  background:#fff;
  border:1px solid rgba(214,170,77,.45);
  border-radius:999px;
  overflow:hidden;
}

.ay59-main-search input{
  flex:1;
  border:0;
  outline:0;
  padding:14px 17px;
  min-width:0;
  color:var(--ay59-text);
  font-size:14px;
}

.ay59-main-search button{
  border:0;
  background:var(--ay59-gold);
  color:var(--ay59-text);
  padding:14px 20px;
  font-weight:800;
  cursor:pointer;
}

.ay59-hints{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.ay59-hints a,
.ay59-chip-cloud a{
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(214,170,77,.32);
  border-radius:999px;
  padding:7px 11px;
  background:rgba(255,255,255,.08);
  font-size:12.5px;
}

.ay59-hero-panel{
  display:grid;
  gap:14px;
}

.ay59-hero-panel > div,
.ay59-card,
.ay59-post-card,
.ay59-empty{
  background:var(--ay59-card);
  border:1px solid var(--ay59-border);
  border-radius:18px;
  box-shadow:var(--ay59-shadow);
}

.ay59-hero-panel > div{
  padding:20px;
}

.ay59-hero-panel strong{
  display:block;
  color:var(--ay59-deep);
  font-size:17px;
  margin-bottom:6px;
}

.ay59-hero-panel span{
  color:var(--ay59-muted);
  line-height:1.5;
}

.ay59-shell{
  display:grid;
  grid-template-columns:270px minmax(0,1fr) 250px;
  gap:16px;
  align-items:start;
  padding:8px 0 56px;
}

.ay59-left,
.ay59-right{
  position:sticky;
  top:96px;
  display:grid;
  gap:15px;
}

.ay59-card{
  padding:18px;
}

.ay59-card h2,
.ay59-card h3{
  color:var(--ay59-deep);
  margin:0 0 13px;
  font-size:18px;
}

.ay59-rail-search{
  display:flex;
  border:1px solid var(--ay59-border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  margin-bottom:13px;
}

.ay59-rail-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:11px 12px;
  font-size:14px;
}

.ay59-rail-search button{
  border:0;
  width:42px;
  background:#fff;
  cursor:pointer;
  color:var(--ay59-deep);
  font-size:18px;
}

.ay59-nav-list{
  display:grid;
  gap:8px;
}

.ay59-nav-list a{
  display:flex;
  color:var(--ay59-text);
  text-decoration:none;
  padding:10px 11px;
  border-radius:11px;
  background:rgba(5,42,36,.035);
  border:1px solid rgba(120,92,36,.10);
  font-size:14px;
  line-height:1.3;
}

.ay59-nav-list a:hover{
  background:var(--ay59-deep);
  color:#fffdf3;
}

.ay59-chip-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ay59-chip-cloud a{
  color:var(--ay59-deep);
  background:#fff;
}

.ay59-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:0 0 14px;
}

.ay59-section-head h2{
  margin:0;
  color:var(--ay59-deep);
  font-size:clamp(24px,2.4vw,34px);
  letter-spacing:-.025em;
}

.ay59-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(215px,1fr)) !important;
  gap:14px !important;
}

.ay59-post-card{
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}

.ay59-post-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 42px rgba(20,35,29,.12);
}

.ay59-thumb{
  display:block;
  aspect-ratio:16/9;
  background:rgba(5,42,36,.08);
  overflow:hidden;
}

.ay59-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
}

.ay59-thumb-placeholder{
  display:grid;
  place-items:center;
  height:100%;
  color:rgba(5,42,36,.28);
  font-weight:900;
  letter-spacing:.18em;
}

.ay59-post-body{
  padding:11px 12px 13px;
}

.ay59-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--ay59-muted);
  font-size:11.5px;
  margin-bottom:7px;
}

.ay59-meta span{
  color:var(--ay59-deep);
  font-weight:800;
}

.ay59-post-card h3{
  margin:0 0 7px;
  font-size:15.5px;
  line-height:1.25;
  color:var(--ay59-deep);
}

.ay59-post-card h3 a{
  color:inherit;
  text-decoration:none;
}

.ay59-post-card p{
  color:var(--ay59-muted);
  font-size:13.5px;
  line-height:1.52;
  margin:0;
}

.ay59-featured{
  background:linear-gradient(150deg,var(--ay59-deep),var(--ay59-deep2));
  color:#fffdf3;
}

.ay59-featured h3,
.ay59-featured p{
  color:#fffdf3;
}

.ay59-featured a{
  display:inline-flex;
  margin-top:10px;
  color:#fffdf3;
  border:1px solid rgba(214,170,77,.55);
  border-radius:999px;
  padding:9px 13px;
  text-decoration:none;
}

.ay59-card p{
  color:var(--ay59-muted);
  line-height:1.6;
  margin:0;
}

.ay59-pagination{
  margin-top:24px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ay59-pagination .page-numbers{
  display:inline-flex;
  padding:9px 12px;
  border-radius:10px;
  border:1px solid var(--ay59-border);
  text-decoration:none;
  color:var(--ay59-deep);
  background:#fff;
}

.ay59-pagination .current{
  background:var(--ay59-deep);
  color:#fffdf3;
}

.ay59-empty{
  padding:28px;
  text-align:center;
}

.ay59-standard-page{
  padding:42px 0 70px;
}

.ay59-standard-page h1{
  color:var(--ay59-deep);
  font-size:clamp(34px,5vw,64px);
}

/* Hide older page banners inside unified section pages if any inherited content appears */
.ay59-library-page .dialogue-hero,
.ay59-library-page .quran-hero,
.ay59-library-page .family-hero,
.ay59-library-page .resource-hero,
.ay59-library-page .interfaith-hero{
  display:none !important;
}

/* iPad landscape */
@media (min-width:821px) and (max-width:1180px){
  .ay59-wrap{
    width:min(100% - 52px,1120px);
  }
  .ay59-hero-grid{
    grid-template-columns:1fr;
  }
  .ay59-hero-panel{
    grid-template-columns:repeat(3,1fr);
  }
  .ay59-shell{
    grid-template-columns:270px minmax(0,1fr);
  }
  .ay59-left{
    top:120px;
  }
  .ay59-right{
    position:static;
    grid-column:1/-1;
    grid-template-columns:repeat(3,1fr);
  }
  .ay59-grid{
    grid-template-columns:repeat(2,minmax(220px,1fr)) !important;
  }
}

/* iPad portrait */
@media (min-width:700px) and (max-width:820px){
  .ay59-wrap{
    width:min(100% - 28px,760px);
  }
  .ay59-hero-grid,
  .ay59-shell{
    grid-template-columns:1fr;
  }
  .ay59-hero-panel{
    grid-template-columns:repeat(3,1fr);
  }
  .ay59-left,
  .ay59-right{
    position:static;
  }
  .ay59-left{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .ay59-left .ay59-card:nth-child(3){
    grid-column:1/-1;
  }
  .ay59-right{
    grid-template-columns:repeat(3,1fr);
  }
  .ay59-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* phones */
@media (max-width:699px){
  .ay59-wrap{
    width:min(100% - 24px,440px);
  }
  .ay59-hero{
    padding-top:14px;
  }
  .ay59-hero-grid,
  .ay59-shell,
  .ay59-hero-panel,
  .ay59-left,
  .ay59-right{
    grid-template-columns:1fr;
    position:static;
  }
  .ay59-hero-copy{
    padding:24px 20px;
    border-radius:20px;
  }
  .ay59-hero-copy h1{
    font-size:34px;
  }
  .ay59-main-search{
    border-radius:16px;
  }
  .ay59-grid{
    grid-template-columns:1fr !important;
  }
}

/* Accessibility focus */
.ay59-main-search input:focus,
.ay59-rail-search input:focus,
.ay59-nav-list a:focus,
.ay59-chip-cloud a:focus,
.ay59-post-card a:focus{
  outline:3px solid rgba(214,170,77,.55);
  outline-offset:2px;
}




/* =========================================================
   AYANOOR v60 - ALIGNMENT & GREEN HEADER FIX
========================================================= */

:root{
 --ay60-green:#042c26;
 --ay60-green2:#0b4339;
 --ay60-gold:#d7ab4c;
}

/* exact dark green header tone */
.ay57-site-header{
  background:
    linear-gradient(90deg,
      rgba(4,44,38,.97) 0%,
      rgba(6,54,46,.96) 45%,
      rgba(11,67,57,.95) 100%) !important;
  border-bottom:1px solid rgba(215,171,76,.16) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.08) !important;
}

/* better alignment */
.ay57-header-inner{
  width:min(1420px, calc(100% - 40px)) !important;
  min-height:66px !important;
  align-items:center !important;
  grid-template-columns:220px 1fr 210px auto !important;
  gap:18px !important;
}

/* logo cleaner */
.ay57-logo-link{
  align-items:center !important;
}

.ay57-logo-link img{
  width:182px !important;
  max-height:50px !important;
  object-fit:contain !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}

/* nav centered properly */
.ay57-main-nav{
  justify-content:center !important;
  align-items:center !important;
  gap:20px !important;
}

.ay57-main-nav a{
  font-size:14px !important;
  letter-spacing:.01em;
}

/* compact search */
.ay57-header-search{
  height:44px !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.05) !important;
}

.ay57-header-search input{
  padding:10px 12px !important;
  font-size:13px !important;
}

.ay57-header-search button{
  padding:10px 14px !important;
  font-size:12px !important;
  border-radius:0 !important;
}

/* softer whatsapp */
.ay57-whatsapp{
  height:44px !important;
  padding:0 14px !important;
  background:rgba(255,255,255,.03) !important;
  font-size:13px !important;
}

/* reduce top whitespace */
.ay59-hero{
  padding-top:6px !important;
}

.ay59-wrap{
  width:min(1360px, calc(100% - 34px)) !important;
}

/* align hero and side cards */
.ay59-hero-grid{
  align-items:stretch !important;
  grid-template-columns:minmax(0,1fr) 355px !important;
  gap:18px !important;
}

.ay59-hero-copy{
  border-radius:26px !important;
  min-height:170px !important;
  padding:34px 36px !important;
  background:
    linear-gradient(90deg,
      rgba(4,44,38,.98),
      rgba(8,61,52,.86)) !important;
}

.ay59-hero-copy h1{
  font-size:clamp(38px,4.5vw,62px) !important;
  margin-bottom:8px !important;
}

.ay59-hero-copy p{
  max-width:760px !important;
  margin-bottom:14px !important;
}

/* cleaner right cards */
.ay59-hero-panel{
  gap:16px !important;
}

.ay59-hero-panel > div{
  border-radius:22px !important;
  padding:24px !important;
}

/* main shell alignment */
.ay59-shell{
  align-items:start !important;
  grid-template-columns:280px minmax(0,1fr) 300px !important;
  gap:18px !important;
}

/* consistent cards */
.ay59-card,
.ay59-post-card{
  border-radius:20px !important;
}

/* content cards alignment */
.ay59-grid{
  align-items:start !important;
}

/* fix Browse heading alignment */
.ay59-section-head{
  margin-top:2px !important;
  margin-bottom:10px !important;
}

/* reduce oversized empty spaces */
.ay59-card{
  padding:20px !important;
}

/* iPad landscape */
@media (min-width:821px) and (max-width:1180px){

 .ay57-header-inner{
   width:min(100% - 28px,1120px) !important;
   grid-template-columns:190px 1fr 180px !important;
 }

 .ay57-logo-link img{
   width:165px !important;
   max-height:46px !important;
 }

 .ay57-whatsapp{
   display:none !important;
 }

 .ay59-wrap{
   width:min(100% - 40px,1120px) !important;
 }

 .ay59-hero-grid{
   grid-template-columns:1fr 300px !important;
 }

 .ay59-shell{
   grid-template-columns:250px minmax(0,1fr) 250px !important;
 }
}

/* iPad portrait */
@media (min-width:700px) and (max-width:820px){

 .ay57-header-inner{
   grid-template-columns:170px 1fr !important;
   grid-template-areas:
   "logo search"
   "nav nav" !important;
   gap:10px !important;
 }

 .ay57-main-nav{
   overflow-x:auto !important;
   justify-content:flex-start !important;
 }

 .ay59-wrap{
   width:min(100% - 24px,760px) !important;
 }

 .ay59-hero-grid,
 .ay59-shell{
   grid-template-columns:1fr !important;
 }

 .ay59-left,
 .ay59-right{
   position:static !important;
 }

 .ay59-hero-panel{
   grid-template-columns:repeat(3,1fr) !important;
 }

 .ay59-grid{
   grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 }
}

/* phones */
@media (max-width:699px){

 .ay57-header-inner{
   width:min(100% - 18px,440px) !important;
   grid-template-columns:1fr !important;
 }

 .ay57-logo-link{
   justify-content:center !important;
 }

 .ay57-logo-link img{
   width:160px !important;
 }

 .ay57-main-nav{
   justify-content:flex-start !important;
   overflow-x:auto !important;
 }

 .ay59-wrap{
   width:min(100% - 18px,440px) !important;
 }

 .ay59-hero-copy{
   padding:24px 22px !important;
 }

 .ay59-hero-copy h1{
   font-size:34px !important;
 }

 .ay59-grid{
   grid-template-columns:1fr !important;
 }
}


/* =========================================================
   AYANOOR v63 - RESPONSIVE FIXES
========================================================= */

html,body{
  overflow-x:hidden;
}

.ay59-library-page,
.ay59-wrap,
.ay59-shell,
.ay59-hero-grid{
  overflow-x:hidden;
}

/* Better tablet behavior */
@media (max-width:1100px){

  .ay57-header-inner{
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
  }

  .ay57-main-nav{
    overflow-x:auto;
    white-space:nowrap;
    width:100%;
    justify-content:flex-start;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }

  .ay57-main-nav::-webkit-scrollbar{
    display:none;
  }

  .ay57-header-search{
    width:min(100%,520px);
    margin:0 auto;
  }

  .ay59-wrap{
    width:min(100%, calc(100% - 28px));
  }

  .ay59-hero-grid{
    grid-template-columns:minmax(0,1fr) 260px;
    gap:14px;
  }
}

/* Full mobile collapse fix */
@media (max-width:768px){

  .ay59-wrap{
    width:min(100%, calc(100% - 18px));
  }

  .ay59-hero{
    padding-top:10px;
  }

  .ay59-hero-grid{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .ay59-hero-copy{
    min-height:auto;
    padding:24px 18px;
    border-radius:20px;
  }

  .ay59-hero-copy h1{
    font-size:clamp(32px,9vw,44px);
    line-height:1.05;
  }

  .ay59-hero-copy p{
    font-size:15px;
    line-height:1.6;
  }

  .ay59-main-search{
    border-radius:16px;
    overflow:hidden;
  }

  .ay59-main-search input{
    padding:14px 14px;
    font-size:14px;
    min-width:0;
  }

  .ay59-main-search button{
    padding:0 16px;
    font-size:13px;
  }

  .ay59-hints{
    gap:8px;
  }

  .ay59-hints a{
    font-size:12px;
    padding:8px 12px;
  }

  .ay59-hero-panel{
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .ay59-hero-panel > div{
    min-height:auto;
    padding:22px 20px;
  }

  .ay59-shell{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

  .ay59-left,
  .ay59-right,
  .ay59-main{
    width:100%;
    min-width:0;
  }

  .ay59-left,
  .ay59-right{
    position:static !important;
    top:auto !important;
  }

  .ay59-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .ay59-post-card{
    border-radius:18px;
    overflow:hidden;
  }

  .ay57-main-nav a{
    font-size:13px !important;
  }

  .ay57-logo-link img{
    width:160px !important;
    max-height:46px !important;
  }
}

/* =========================================================
   AYANOOR v64 - LOGO GREEN + CATEGORY FETCH FIXES
========================================================= */
:root{
  --ayanoor-logo-green:#003c32;
  --ayanoor-logo-green-2:#005044;
}

/* Match header background to approved Ayanoor logo green */
.ay57-site-header{
  background:var(--ayanoor-logo-green) !important;
  background-image:linear-gradient(90deg,var(--ayanoor-logo-green),var(--ayanoor-logo-green-2)) !important;
  border-bottom:1px solid rgba(214,170,77,.28) !important;
}

/* Match the main Ayanoor Library hero box to the same logo green */
.ay59-hero-copy,
.ay56-hero-copy{
  background:linear-gradient(90deg,var(--ayanoor-logo-green),var(--ayanoor-logo-green-2)) !important;
}

.ay59-featured,
.ay56-featured{
  background:linear-gradient(150deg,var(--ayanoor-logo-green),var(--ayanoor-logo-green-2)) !important;
}

/* Make the hard-coded header links use category archives cleanly on all screens */
.ay57-main-nav a{
  flex:0 0 auto;
}

/* Mobile polish: keep hero search usable */
@media (max-width:768px){
  .ay59-main-search input{
    flex:1 1 auto;
    width:100%;
  }
  .ay59-main-search button{
    flex:0 0 112px;
  }
  .ay57-site-header{
    background:var(--ayanoor-logo-green) !important;
  }
}

/* =========================================================
   AYANOOR v65 - PREMIUM RESPONSIVE HEADER PNG SYSTEM
   Uses high-resolution header background PNGs with the
   approved Ayanoor logo layered as live HTML for crisp links.
========================================================= */
:root{
  --ay65-green:#003c32;
  --ay65-green-dark:#002b24;
  --ay65-green-soft:#075447;
  --ay65-gold:#d7ab4c;
  --ay65-cream:#fff8e8;
}

.ay57-site-header{
  position:sticky !important;
  top:0 !important;
  z-index:9999 !important;
  background-color:var(--ay65-green) !important;
  background-image:url('assets/ayanoor-v65-header-desktop.png') !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  border-bottom:1px solid rgba(215,171,76,.55) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.18) !important;
}
.admin-bar .ay57-site-header{top:32px !important;}

.ay57-header-inner{
  width:min(1680px, calc(100% - 56px)) !important;
  min-height:96px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:300px minmax(560px,1fr) 330px 178px !important;
  align-items:center !important;
  gap:28px !important;
}

.ay57-logo-link{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  min-width:0 !important;
  border-right:1px solid rgba(255,248,232,.24) !important;
  padding-right:26px !important;
}
.ay57-logo-link img{
  width:260px !important;
  max-width:100% !important;
  max-height:72px !important;
  object-fit:contain !important;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.28)) !important;
}

.ay57-main-nav{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:clamp(18px,1.65vw,34px) !important;
  min-width:0 !important;
  overflow:visible !important;
}
.ay57-main-nav a{
  color:#fff8e8 !important;
  font-size:15px !important;
  font-weight:850 !important;
  letter-spacing:.01em !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  text-shadow:0 2px 5px rgba(0,0,0,.25) !important;
  padding:8px 0 !important;
  position:relative !important;
}
.ay57-main-nav a:hover,
.ay57-main-nav a:focus{color:var(--ay65-gold) !important;}
.ay57-main-nav a:first-child{color:var(--ay65-gold) !important;}
.ay57-main-nav a:first-child:after{
  content:"";
  position:absolute;
  left:2px;
  right:2px;
  bottom:-10px;
  height:3px;
  background:var(--ay65-gold);
  border-radius:999px;
}

.ay57-header-search{
  height:48px !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
  border:1px solid rgba(255,248,232,.35) !important;
  border-radius:999px !important;
  background:rgba(0,24,20,.30) !important;
  box-shadow:inset 0 0 0 1px rgba(215,171,76,.15) !important;
}
.ay57-header-search input{
  min-width:0 !important;
  flex:1 1 auto !important;
  height:100% !important;
  background:transparent !important;
  color:#fff8e8 !important;
  border:0 !important;
  outline:0 !important;
  padding:0 18px !important;
  font-size:14px !important;
}
.ay57-header-search input::placeholder{color:rgba(255,248,232,.72) !important;}
.ay57-header-search button{
  flex:0 0 58px !important;
  height:42px !important;
  margin-right:3px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:0 !important;
  background:var(--ay65-gold) !important;
  color:#052a23 !important;
  font-size:0 !important;
  cursor:pointer !important;
  position:relative !important;
}
.ay57-header-search button:before{
  content:"⌕";
  font-size:28px;
  line-height:1;
  font-weight:900;
}

.ay57-whatsapp{
  height:48px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(215,171,76,.85) !important;
  border-radius:999px !important;
  background:rgba(0,32,27,.35) !important;
  color:var(--ay65-gold) !important;
  padding:0 18px !important;
  font-size:14px !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  box-shadow:0 8px 18px rgba(0,0,0,.14) !important;
}
.ay57-whatsapp:before{
  content:"☘";
  color:#4be48b;
  margin-right:8px;
  font-size:15px;
}

/* Tablet header inspired by the second visual row */
@media (min-width:821px) and (max-width:1280px){
  .ay57-site-header{
    background-image:url('assets/ayanoor-v65-header-tablet.png') !important;
  }
  .ay57-header-inner{
    width:min(1180px, calc(100% - 34px)) !important;
    min-height:88px !important;
    grid-template-columns:210px minmax(520px,1fr) 230px !important;
    gap:20px !important;
  }
  .ay57-logo-link{
    padding-right:18px !important;
  }
  .ay57-logo-link img{
    width:190px !important;
    max-height:58px !important;
  }
  .ay57-main-nav{
    gap:18px !important;
    overflow-x:auto !important;
    justify-content:flex-start !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:5px !important;
  }
  .ay57-main-nav::-webkit-scrollbar{display:none !important;}
  .ay57-main-nav a{font-size:13.5px !important;}
  .ay57-header-search{height:44px !important;}
  .ay57-whatsapp{display:none !important;}
}

/* iPad portrait */
@media (min-width:700px) and (max-width:820px){
  .ay57-site-header{
    background-image:url('assets/ayanoor-v65-header-tablet.png') !important;
  }
  .ay57-header-inner{
    width:min(760px, calc(100% - 24px)) !important;
    min-height:128px !important;
    grid-template-columns:180px 1fr !important;
    grid-template-areas:"logo search" "nav nav" !important;
    gap:12px 18px !important;
    padding:12px 0 !important;
  }
  .ay57-logo-link{grid-area:logo !important;border-right:0 !important;padding-right:0 !important;}
  .ay57-logo-link img{width:174px !important;max-height:54px !important;}
  .ay57-header-search{grid-area:search !important;height:44px !important;width:100% !important;}
  .ay57-main-nav{
    grid-area:nav !important;
    width:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    gap:22px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
    padding:4px 0 7px !important;
  }
  .ay57-main-nav::-webkit-scrollbar{display:none !important;}
  .ay57-main-nav a{font-size:14px !important;}
  .ay57-whatsapp{display:none !important;}
}

/* Mobile compact header inspired by the third visual row */
@media (max-width:699px){
  .ay57-site-header{
    background-image:url('assets/ayanoor-v65-header-mobile.png') !important;
    border-bottom:1px solid rgba(215,171,76,.35) !important;
  }
  .admin-bar .ay57-site-header{top:0 !important;}
  .ay57-header-inner{
    width:100% !important;
    min-height:186px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:13px !important;
    padding:14px 16px 16px !important;
  }
  .ay57-logo-link{
    justify-content:center !important;
    border-right:0 !important;
    padding-right:0 !important;
    order:1 !important;
  }
  .ay57-logo-link img{
    width:236px !important;
    max-height:76px !important;
  }
  .ay57-main-nav{
    order:2 !important;
    width:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    white-space:nowrap !important;
    gap:26px !important;
    padding:6px 0 8px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .ay57-main-nav::-webkit-scrollbar{display:none !important;}
  .ay57-main-nav a{
    font-size:16px !important;
    font-weight:850 !important;
    flex:0 0 auto !important;
  }
  .ay57-main-nav a:first-child:after{display:none !important;}
  .ay57-header-search{
    order:3 !important;
    width:100% !important;
    height:54px !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.06) !important;
  }
  .ay57-header-search input{
    font-size:15px !important;
    padding:0 16px !important;
  }
  .ay57-header-search button{
    flex-basis:112px !important;
    height:54px !important;
    margin:0 !important;
    border-radius:0 15px 15px 0 !important;
    font-size:16px !important;
  }
  .ay57-header-search button:before{content:"" !important;display:none !important;}
  .ay57-whatsapp{display:none !important;}
}

/* =========================================================
   AYANOOR v67 - FINAL PREMIUM PNG HEADER + OVERFLOW FIX
   The visual header is now the actual high-resolution PNG.
========================================================= */
html, body{
  max-width:100% !important;
  overflow-x:hidden !important;
}
body *{box-sizing:border-box;}
.ay67-site-header{
  position:sticky;
  top:0;
  z-index:9999;
  width:100%;
  max-width:100vw;
  overflow:hidden;
  background:#fff8e8;
  padding:14px 0 0;
}
.admin-bar .ay67-site-header{top:32px;}
.ay67-header-frame{
  position:relative;
  width:min(1640px, calc(100vw - 32px));
  height:clamp(104px, 9.8vw, 166px);
  margin:0 auto;
  overflow:hidden;
  border-radius:0;
  box-shadow:0 12px 30px rgba(0,0,0,.13);
}
.ay67-header-picture,
.ay67-header-picture img{
  display:block;
  width:100%;
  height:100%;
}
.ay67-header-picture img{
  object-fit:cover;
  object-position:center center;
}
.ay67-link{
  position:absolute;
  display:block;
  z-index:5;
  text-indent:-9999px;
  overflow:hidden;
  background:transparent;
  border:0;
  cursor:pointer;
}
.ay67-logo-zone{left:3.5%; top:20%; width:19.5%; height:58%;}
.ay67-click-nav a{height:36%; top:32%;}
.ay67-nav-home{left:24.1%; width:4.8%;}
.ay67-nav-quran{left:29.4%; width:5.0%;}
.ay67-nav-scriptures{left:34.6%; width:12.2%;}
.ay67-nav-children{left:47.4%; width:11.2%;}
.ay67-nav-dialogue{left:58.9%; width:6.6%;}
.ay67-nav-family{left:66.0%; width:5.2%;}
.ay67-header-search{
  position:absolute;
  z-index:6;
  left:69.5%;
  top:34.5%;
  width:16.8%;
  height:31%;
  display:flex;
  border:0;
  background:transparent;
  border-radius:999px;
  overflow:hidden;
  margin:0;
}
.ay67-header-search input{
  flex:1 1 auto;
  min-width:0;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:transparent !important;
  caret-color:#d7ab4c;
  padding:0 10px !important;
}
.ay67-header-search input::placeholder{color:transparent !important;}
.ay67-header-search button{
  flex:0 0 20%;
  min-width:42px;
  height:100%;
  border:0 !important;
  background:transparent !important;
  color:transparent !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer;
}
.ay67-whatsapp-zone{left:86.2%; top:34.5%; width:10.9%; height:31%;}
.ay67-mobile-menu-toggle{display:none;}
.ay67-mobile-drawer{display:none;}

/* Remove any old header rules/effects if cached CSS still exists */
.ay57-site-header{display:none !important;}

@media (min-width:700px) and (max-width:1280px){
  .ay67-site-header{padding-top:10px;}
  .ay67-header-frame{
    width:min(1180px, calc(100vw - 24px));
    height:clamp(82px, 9.4vw, 122px);
    border-radius:6px;
  }
  .ay67-logo-zone{left:3.7%; top:14%; width:20%; height:70%;}
  .ay67-click-nav a{top:18%; height:64%;}
  .ay67-nav-home{left:26.0%; width:5.0%;}
  .ay67-nav-quran{left:31.5%; width:6.0%;}
  .ay67-nav-scriptures{left:38.2%; width:9.5%;}
  .ay67-nav-children{left:48.6%; width:9.2%;}
  .ay67-nav-dialogue{left:58.6%; width:7.0%;}
  .ay67-nav-family{left:66.1%; width:6.0%;}
  .ay67-header-search{left:68.6%; top:36%; width:16.7%; height:28%;}
  .ay67-whatsapp-zone{left:86.3%; top:34%; width:10.7%; height:31%;}
}

@media (max-width:699px){
  .ay67-site-header{padding:10px 0 0;}
  .admin-bar .ay67-site-header{top:0;}
  .ay67-header-frame{
    width:calc(100vw - 20px);
    height:74px;
    border-radius:8px;
  }
  .ay67-header-picture img{object-fit:cover; object-position:center center;}
  .ay67-logo-zone{left:38.8%; top:10%; width:24%; height:80%;}
  .ay67-click-nav a{display:none;}
  .ay67-mobile-menu-toggle{
    display:block;
    left:2.6%; top:20%; width:12%; height:60%;
    appearance:none;
    -webkit-appearance:none;
  }
  .ay67-header-search{
    left:73.2%; top:15%; width:8.8%; height:70%;
  }
  .ay67-header-search input{display:none;}
  .ay67-header-search button{flex:1 1 100%; min-width:0; width:100%;}
  .ay67-whatsapp-zone{left:83.6%; top:15%; width:13.4%; height:70%;}
  .ay67-mobile-drawer{
    display:none;
    width:calc(100vw - 20px);
    margin:0 auto;
    padding:12px;
    background:#003c32;
    border:1px solid rgba(215,171,76,.35);
    border-top:0;
    border-radius:0 0 12px 12px;
    box-shadow:0 12px 24px rgba(0,0,0,.15);
  }
  body.ay67-menu-open .ay67-mobile-drawer{display:grid; grid-template-columns:1fr 1fr; gap:8px;}
  .ay67-mobile-drawer a{
    color:#fff8e8;
    text-decoration:none;
    font-weight:800;
    font-size:14px;
    padding:10px 12px;
    border:1px solid rgba(215,171,76,.24);
    border-radius:10px;
    background:rgba(255,255,255,.04);
  }
}

/* =========================================================
   AYANOOR v68 SAFETY NET - remove orphan old header/menu/search
========================================================= */
html,body{max-width:100%!important;overflow-x:hidden!important;}
.topbar,.ay55-topbar,.ay57-site-header,.ay67-site-header,.site-header:not(.ay68-site-header){display:none!important;}
.nav,.links,.nav-actions,.brand,.header-search:not(.ay68-search){display:none!important;}
.ay68-site-header,.ay68-site-header *{box-sizing:border-box!important;}

/* =========================================================
   AYANOOR v69 FINAL HEADER SAFETY PATCH
   Shows full PNG header on desktop/tablet/mobile without cropping,
   prevents right-side dragging, and keeps mobile drawer hidden until tap.
========================================================= */
html, body{
  max-width:100% !important;
  overflow-x:hidden !important;
}
body{background:#fbf7ef !important;}
.ay68-site-header{
  width:100% !important;
  max-width:100vw !important;
  overflow:hidden !important;
  background:#fbf7ef !important;
}
.ay68-frame{
  width:min(1500px, calc(100vw - 32px)) !important;
  max-width:calc(100vw - 32px) !important;
  height:auto !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:hidden !important;
}
.ay68-picture,
.ay68-picture img{
  width:100% !important;
  height:auto !important;
  display:block !important;
}
.ay68-picture img{
  object-fit:contain !important;
  object-position:center center !important;
}
.ay68-drawer{
  display:none !important;
  visibility:hidden !important;
}
body.ay68-menu-open .ay68-drawer{
  display:grid !important;
  visibility:visible !important;
}
.ay68-site-header ~ .search-form:not(.ay68-search),
.ay68-site-header ~ nav:not(.ay68-drawer),
.ay68-site-header ~ .main-navigation,
.ay68-site-header ~ .site-navigation{
  display:none !important;
}
@media (max-width:699px){
  .ay68-site-header{padding:10px 0 8px !important;}
  .ay68-frame{
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
    height:auto !important;
    border-radius:10px !important;
  }
  .ay68-picture img{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .ay68-drawer{
    width:calc(100vw - 20px) !important;
    margin:0 auto !important;
  }
}


/* =========================================================
   AYANOOR v71 FINAL FRAMEWORK PATCH
   - middle PNG for desktop/tablet via assets
   - larger mobile header asset
   - thumbnail full-visibility fix
========================================================= */
html,body{max-width:100%!important;overflow-x:hidden!important;}
.ay68-site-header,.ay68-frame,.ay68-picture,.ay68-picture img{box-sizing:border-box!important;}
.ay68-site-header{max-width:100vw!important;overflow:hidden!important;}
.ay68-frame{overflow:hidden!important;}
.ay68-picture img{max-width:100%!important;height:auto!important;object-fit:contain!important;}

/* Prevent Ayanoor thumbnails from losing text/edges */
.post-card img,
.ay55-card-thumb,
.ay55-thumb-wrap img,
.library-card img,
.library-entry img,
.wp-post-image,
.attachment-post-thumbnail,
.attachment-medium,
.attachment-large{
  object-fit:contain!important;
  object-position:center center!important;
  background:#f7f2e8!important;
}
.post-card img,
.wp-post-image,
.attachment-post-thumbnail{
  aspect-ratio:2/1!important;
  height:auto!important;
  max-height:none!important;
}
.ay55-thumb-wrap,
.card-thumbnail,
.post-thumbnail,
.library-card-image{
  aspect-ratio:2/1!important;
  overflow:hidden!important;
  background:#f7f2e8!important;
  border-radius:14px!important;
}
.ay55-thumb-wrap img,
.card-thumbnail img,
.post-thumbnail img,
.library-card-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
@media(max-width:699px){
  .post-card img,.wp-post-image,.attachment-post-thumbnail{object-fit:contain!important;}
}

/* =========================================================
   AYANOOR v78 - Save Me buttons + image fit polish
========================================================= */
.ay59-thumb-wrap,
.post-card,
.ay55-thumb-wrap,
.card-thumbnail,
.post-thumbnail,
.library-card-image{
  position:relative!important;
}
.ay59-thumb-wrap .ay59-thumb,
.ay59-thumb-wrap .ay59-thumb img{
  display:block!important;
}
.ay-save-image{
  position:absolute!important;
  z-index:20!important;
  right:10px!important;
  bottom:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(225,183,90,.8)!important;
  background:rgba(3,27,21,.88)!important;
  color:#f0cf85!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 7px 18px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}
.ay-save-image:hover,
.ay-save-image:focus{
  background:#d6ad55!important;
  color:#08271f!important;
}
.ay73-card-art{
  height:235px!important;
  overflow:hidden!important;
  background:#06251e!important;
}
.ay73-card-art img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  background:#06251e!important;
}
.ay73-card-body h4{
  font-size:13px!important;
  line-height:1.18!important;
  font-weight:750!important;
}
.ay73-card-body p{font-size:11.5px!important;}
.ay73-card-body span{font-size:12.5px!important;padding:7px 16px!important;}
.ay59-thumb-wrap .ay-save-image,
.post-card .ay-save-image{
  right:8px!important;
  bottom:8px!important;
  font-size:10.5px!important;
  padding:6px 10px!important;
}
@media(max-width:768px){
  .ay73-card-art{height:245px!important;}
  .ay-save-image{font-size:10px!important;padding:6px 10px!important;}
}


/* AYANOOR v79 final: single sign page + clean save behavior */
body.single-ay_sign .single-featured{display:none!important;}
body.single-ay_sign .article-body img{max-width:100%!important;height:auto!important;border-radius:18px!important;display:block!important;margin:28px auto!important;}
.ay79-save-wrap{text-align:center!important;margin:28px auto 40px!important;}
.ay79-save-reflection{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:13px 26px!important;border-radius:999px!important;border:1px solid rgba(217,168,78,.85)!important;background:#063428!important;color:#f0cf85!important;text-decoration:none!important;font-weight:800!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important;}
.ay79-save-reflection:hover{background:#d6ad55!important;color:#08271f!important;}
.ay73-card-art .ay-save-image,.ay59-thumb-wrap .ay-save-image,.post-card .ay-save-image{display:none!important;}


/* AYANOOR v80 layout refinements */
.site,.site-content,.site-main,.ay59-wrap{margin-left:auto!important;margin-right:auto!important;}
.ay59-wrap{max-width:1240px!important;padding-left:20px!important;padding-right:20px!important;box-sizing:border-box!important;}
.ay59-hero-grid{grid-template-columns:1fr!important;}
.ay59-hero-copy{max-width:100%!important;text-align:center!important;}
.ay59-main-search{max-width:900px!important;margin:22px auto!important;}
.ay59-hints{justify-content:center!important;}
@media(max-width:768px){.site-header,.ay-header,.main-header{padding-top:18px!important;padding-bottom:18px!important;min-height:92px!important;}.custom-logo,.site-logo img,.custom-logo-link img{max-height:72px!important;width:auto!important;}.mobile-menu-toggle{font-size:28px!important;padding:12px!important;}}

/* AYANOOR v81 - true viewport centering fix for desktop/tablet */
@media (min-width:700px){
  .ay68-frame,
  .ay73-signs-shell,
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-library-sections,
  .ay59-grid,
  .footer .wrap{
    position:relative!important;
    left:50vw!important;
    transform:translateX(-50%)!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  .ay68-frame{width:min(1180px,calc(100vw - 56px))!important;max-width:calc(100vw - 56px)!important;}
  .ay73-signs-shell{width:min(1180px,calc(100vw - 56px))!important;max-width:calc(100vw - 56px)!important;}
  .ay59-wrap,.ay59-hero-grid,.ay59-library-sections,.ay59-grid{width:min(1180px,calc(100vw - 56px))!important;max-width:calc(100vw - 56px)!important;}
  .ay59-hero{overflow:visible!important;}
  .ay59-library-page{width:100vw!important;max-width:100vw!important;margin:0!important;overflow:hidden!important;}
  body{overflow-x:hidden!important;}
}
@media (min-width:700px) and (max-width:1180px){
  .ay68-frame,.ay73-signs-shell,.ay59-wrap,.ay59-hero-grid,.ay59-library-sections,.ay59-grid{width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;}
}
@media (max-width:699px){
  .ay68-frame{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;margin-left:auto!important;margin-right:auto!important;}
  .ay73-signs-shell,.ay59-wrap{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;margin-left:auto!important;margin-right:auto!important;}
}

/* v82: Remove unused right-side library info boxes on all section/archive pages */
.ay59-hero-panel,
.ay59-hero-panel > div {
  display: none !important;
}
.ay59-hero-grid {
  display: block !important;
  grid-template-columns: 1fr !important;
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ay59-hero-copy {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.ay59-main-search {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.ay59-hints {
  justify-content: center !important;
}

/* v82: stronger mobile header — enlarge the actual image/frame, not just background padding */
@media (max-width:699px){
  .ay68-site-header{
    padding: 18px 0 18px !important;
  }
  .ay68-frame{
    width: calc(100vw - 16px) !important;
    min-height: 96px !important;
    height: 96px !important;
    border-radius: 14px !important;
  }
  .ay68-picture,
  .ay68-picture img{
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .ay68-logo{left:35.5%!important;top:8%!important;width:31%!important;height:84%!important;}
  .ay68-menu-toggle{left:2.2%!important;top:16%!important;width:15%!important;height:68%!important;}
  .ay68-search{left:71.2%!important;top:14%!important;width:11.8%!important;height:72%!important;}
  .ay68-whatsapp{left:83.3%!important;top:14%!important;width:14.6%!important;height:72%!important;}
  .ay68-drawer{width:calc(100vw - 16px)!important;}
}

/* v82: hard center visible site canvas on desktop/tablet */
@media (min-width:700px){
  body{margin:0!important;padding:0!important;overflow-x:hidden!important;}
  .ay68-frame,
  .ay73-signs-shell,
  .ay73-library-shell,
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-shell,
  .ay59-library-sections,
  .ay59-grid{
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
    left:auto!important;
    right:auto!important;
  }
}

/* AYANOOR v83 responsive polish: mobile header, mobile Signs Around Us, and library sidebars */

/* Remove the unused guided-learning right rail everywhere (tablet + desktop + mobile) */
.ay59-right,
.ay59-hero-panel {
  display: none !important;
}
.ay59-shell {
  grid-template-columns: 270px minmax(0, 1fr) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (min-width:700px) and (max-width:1180px){
  .ay59-shell {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}
@media (max-width:699px){
  .ay59-shell {
    display: block !important;
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    padding-bottom: 34px !important;
  }
  .ay59-left {
    position: static !important;
    display: block !important;
    margin-bottom: 22px !important;
  }
  .ay59-left .ay59-card:nth-child(n+2){
    display:none !important;
  }
  .ay59-card { padding: 18px !important; }
  .ay59-nav-list a { min-height: 50px !important; padding: 13px 16px !important; }
}

/* Mobile header: crop the extra green bands so the actual nav row feels larger */
@media (max-width:699px){
  .ay68-site-header{
    padding: 16px 0 12px !important;
  }
  .ay68-frame{
    width: calc(100vw - 20px) !important;
    height: 78px !important;
    min-height: 78px !important;
    border-radius: 14px !important;
    overflow:hidden !important;
  }
  .ay68-picture,
  .ay68-picture img{
    width:100% !important;
    height:78px !important;
    min-height:78px !important;
    object-fit: cover !important;
    object-position:center center !important;
  }
  .ay68-logo{left:35.5%!important;top:0%!important;width:31.5%!important;height:100%!important;}
  .ay68-menu-toggle{left:2.4%!important;top:0%!important;width:15%!important;height:100%!important;}
  .ay68-search{left:71.4%!important;top:0%!important;width:11.5%!important;height:100%!important;}
  .ay68-whatsapp{left:83.4%!important;top:0%!important;width:14.5%!important;height:100%!important;}
  .ay68-drawer{width:calc(100vw - 20px)!important;}
}

/* Tablet header: slightly shorter and cleaner */
@media (min-width:700px) and (max-width:1180px){
  .ay68-site-header{padding:12px 0 10px!important;}
  .ay68-frame{height:auto!important;border-radius:8px!important;}
}

/* Force Signs Around Us to display and fit properly on mobile home page */
@media (max-width:699px){
  .home .ay73-signs-section,
  .front-page .ay73-signs-section,
  .ay73-signs-section{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    padding: 18px 0 28px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .ay73-signs-shell{
    display:block !important;
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    margin: 0 auto !important;
    padding: 22px 16px !important;
    border-radius: 24px !important;
    overflow:hidden !important;
  }
  .ay73-signs-header{display:block!important;text-align:center!important;margin-bottom:18px!important;}
  .ay73-signs-mark{max-width:210px!important;margin:0 auto 16px!important;padding-bottom:14px!important;}
  .ay73-signs-copy h2{font-size:34px!important;line-height:1.05!important;margin-bottom:8px!important;}
  .ay73-signs-copy h3{font-size:18px!important;line-height:1.2!important;margin-bottom:12px!important;}
  .ay73-signs-copy p{font-size:15.5px!important;line-height:1.55!important;}
  .ay73-signs-explore{margin-top:16px!important;padding:11px 18px!important;border-radius:14px!important;}
  .ay73-signs-cards{
    display:flex!important;
    overflow-x:auto!important;
    gap:14px!important;
    padding: 4px 2px 10px !important;
    margin-top:20px!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .ay73-sign-card{min-width:210px!important;max-width:210px!important;min-height:330px!important;scroll-snap-align:start!important;}
  .ay73-card-art{height:190px!important;}
  .ay73-card-title{font-size:13px!important;line-height:1.15!important;}
  .ay73-card-btn{padding:9px 17px!important;font-size:13px!important;}
  .ay73-signs-footer{display:none!important;}
}

/* AYANOOR v84: repair homepage order, mobile Signs section, and true mobile header crop */
@media (max-width:699px){
  .ay68-site-header{padding:14px 0 12px!important;background:#fbf7ef!important;}
  .ay68-frame{width:calc(100vw - 24px)!important;height:76px!important;min-height:76px!important;border-radius:13px!important;overflow:hidden!important;background:#003c32!important;}
  .ay68-picture{height:76px!important;overflow:hidden!important;display:block!important;}
  .ay68-picture img{height:76px!important;min-height:76px!important;width:100%!important;object-fit:cover!important;object-position:center center!important;transform:scale(1.42)!important;transform-origin:center center!important;}
  .ay68-logo{left:34%!important;top:0!important;width:34%!important;height:100%!important;}
  .ay68-menu-toggle{left:1.7%!important;top:0!important;width:17%!important;height:100%!important;}
  .ay68-search{left:70.5%!important;top:0!important;width:12.7%!important;height:100%!important;}
  .ay68-whatsapp{left:83.6%!important;top:0!important;width:15.1%!important;height:100%!important;}

  .ay73-signs-section{display:block!important;visibility:visible!important;opacity:1!important;padding:18px 0 26px!important;margin:0!important;}
  .ay73-signs-shell{display:block!important;width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;margin:0 auto!important;padding:24px 16px!important;border-radius:26px!important;}
  .ay73-signs-header{display:block!important;text-align:center!important;margin-bottom:18px!important;}
  .ay73-signs-mark{border-right:0!important;border-bottom:1px solid rgba(180,137,53,.22)!important;padding:0 0 14px!important;margin:0 auto 16px!important;max-width:220px!important;}
  .ay73-signs-copy h2{font-size:34px!important;line-height:1.05!important;margin:0 0 8px!important;}
  .ay73-signs-copy h3{font-size:18px!important;line-height:1.2!important;margin:0 0 12px!important;}
  .ay73-signs-copy p{font-size:15.5px!important;line-height:1.5!important;margin:0!important;}
  .ay73-signs-explore{display:inline-flex!important;margin-top:16px!important;padding:10px 18px!important;}
  .ay73-signs-cards{display:flex!important;overflow-x:auto!important;gap:14px!important;padding:4px 2px 12px!important;margin-top:20px!important;scroll-snap-type:x mandatory!important;-webkit-overflow-scrolling:touch!important;}
  .ay73-sign-card{min-width:210px!important;max-width:210px!important;min-height:330px!important;scroll-snap-align:start!important;}
  .ay73-card-art{height:190px!important;}
  .ay73-card-body{padding:13px 11px 15px!important;}
  .ay73-card-body h4{font-size:12px!important;line-height:1.18!important;}
  .ay73-signs-footer{display:none!important;}

  .ay59-home-library-hero{padding-top:10px!important;}
  .ay59-home-library-hero .ay59-hero-grid{display:block!important;width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;margin:0 auto!important;}
  .ay59-home-library-hero .ay59-hero-copy{border-radius:26px!important;padding:28px 18px!important;}
  .ay59-home-library-hero h1{font-size:42px!important;}
  .ay59-main-search{max-width:100%!important;}
  .ay59-main-search input{min-width:0!important;font-size:16px!important;}
  .ay59-main-search button{padding:0 22px!important;}
}

@media (min-width:700px){
  .ay59-home-library-hero{padding:26px 0 32px!important;}
  .ay59-home-library-hero .ay59-hero-grid{display:block!important;max-width:1180px!important;margin:0 auto!important;}
  .ay59-home-library-hero .ay59-hero-copy{max-width:100%!important;}
}

/* =========================================================
   AYANOOR v85 - mobile header menu + mobile Signs visibility
   Fixes: visible hamburger, tappable drawer, balanced mobile header.
========================================================= */
@media (max-width:699px){
  .ay68-site-header{
    padding:14px 0 18px!important;
    background:#fbf7ef!important;
    overflow:visible!important;
  }
  .ay68-frame{
    width:calc(100vw - 24px)!important;
    height:92px!important;
    min-height:92px!important;
    border-radius:16px!important;
    overflow:hidden!important;
    background:#003c32!important;
  }
  .ay68-picture{height:92px!important;display:block!important;overflow:hidden!important;}
  .ay68-picture img{
    height:92px!important;
    min-height:92px!important;
    width:100%!important;
    object-fit:cover!important;
    object-position:center center!important;
    transform:scale(1.22)!important;
    transform-origin:center center!important;
  }

  /* Do not rely on the PNG for the hamburger. Draw it in CSS so it always appears. */
  .ay68-menu-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    left:2.2%!important;
    top:0!important;
    width:17%!important;
    height:100%!important;
    text-indent:0!important;
    color:transparent!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    z-index:20!important;
  }
  .ay68-menu-toggle:before{
    content:"☰"!important;
    color:#fff8e8!important;
    font-size:34px!important;
    line-height:1!important;
    font-weight:400!important;
    text-indent:0!important;
    text-shadow:0 2px 8px rgba(0,0,0,.35)!important;
  }
  body.ay68-menu-open .ay68-menu-toggle:before{content:"×"!important;font-size:38px!important;}

  .ay68-logo{left:34%!important;top:0!important;width:34%!important;height:100%!important;z-index:12!important;}
  .ay68-search{left:70.6%!important;top:0!important;width:12.7%!important;height:100%!important;z-index:13!important;}
  .ay68-whatsapp{left:83.6%!important;top:0!important;width:15.1%!important;height:100%!important;z-index:13!important;}

  .ay68-drawer{
    display:none!important;
    visibility:hidden!important;
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    margin:-18px auto 14px!important;
    padding:16px!important;
    background:#003c32!important;
    border:1px solid rgba(217,168,78,.35)!important;
    border-top:0!important;
    border-radius:0 0 16px 16px!important;
    box-shadow:0 16px 30px rgba(0,0,0,.22)!important;
    position:relative!important;
    z-index:99998!important;
  }
  body.ay68-menu-open .ay68-drawer{
    display:grid!important;
    visibility:visible!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .ay68-drawer a{
    display:block!important;
    color:#fff8e8!important;
    text-decoration:none!important;
    font-weight:800!important;
    font-size:15px!important;
    line-height:1.25!important;
    padding:13px 12px!important;
    border:1px solid rgba(217,168,78,.28)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.05)!important;
  }

  /* Ensure the Signs Around Us block cannot be hidden on mobile homepage. */
  body.home .ay73-signs-section,
  body.front-page .ay73-signs-section,
  .home .ay73-signs-section,
  .front-page .ay73-signs-section{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    overflow:visible!important;
    clear:both!important;
  }
  body.home .ay73-signs-section *,
  body.front-page .ay73-signs-section *{
    visibility:visible!important;
  }
}


/* AYANOOR v86 final mobile header repair: inline header CSS is primary; this is a cache safety layer. */
@media (max-width:699px){
  .ay68-site-header{padding:14px 0 12px!important;overflow:visible!important;}
  .ay68-frame{width:calc(100vw - 24px)!important;height:96px!important;min-height:96px!important;border-radius:15px!important;}
  .ay68-picture,.ay68-picture img{height:96px!important;min-height:96px!important;}
  .ay68-picture img{object-fit:cover!important;object-position:center center!important;transform:scale(1.10)!important;}
  .ay68-menu-toggle{display:flex!important;align-items:center!important;justify-content:center!important;left:0!important;top:0!important;width:18%!important;height:100%!important;text-indent:0!important;color:transparent!important;z-index:30!important;overflow:visible!important;}
  .ay68-menu-toggle:before{content:"☰"!important;display:block!important;color:#fff8e8!important;font-size:36px!important;line-height:1!important;text-indent:0!important;text-shadow:0 2px 8px rgba(0,0,0,.35)!important;}
  body.ay68-menu-open .ay68-menu-toggle:before{content:"×"!important;font-size:42px!important;}
  .ay68-drawer{display:none!important;visibility:hidden!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;margin:-12px auto 14px!important;}
  body.ay68-menu-open .ay68-drawer{display:grid!important;visibility:visible!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
}

/* AYANOOR v87: keep the full mobile header visible, including menu/search/WhatsApp. */
@media (max-width:699px){
  .ay68-site-header{padding:12px 0 12px!important;overflow:visible!important;}
  .ay68-frame{width:calc(100vw - 40px)!important;max-width:calc(100vw - 40px)!important;height:112px!important;min-height:112px!important;border-radius:16px!important;margin-left:auto!important;margin-right:auto!important;overflow:hidden!important;}
  .ay68-picture,.ay68-picture img{height:112px!important;min-height:112px!important;width:100%!important;}
  .ay68-picture img{object-fit:fill!important;object-position:center center!important;transform:none!important;}
  .ay68-menu-toggle{display:flex!important;align-items:center!important;justify-content:center!important;left:0!important;top:0!important;width:18%!important;height:100%!important;text-indent:0!important;color:transparent!important;z-index:30!important;overflow:visible!important;}
  .ay68-menu-toggle:before{content:"☰"!important;display:block!important;color:#fff8e8!important;font-size:38px!important;line-height:1!important;text-indent:0!important;text-shadow:0 2px 8px rgba(0,0,0,.35)!important;}
  body.ay68-menu-open .ay68-menu-toggle:before{content:"×"!important;font-size:44px!important;}
  .ay68-search{left:74.5%!important;width:9%!important;top:0!important;height:100%!important;}
  .ay68-whatsapp{left:83.8%!important;width:15.2%!important;top:0!important;height:100%!important;}
  .ay68-drawer{width:calc(100vw - 40px)!important;max-width:calc(100vw - 40px)!important;margin:-8px auto 14px!important;}
}


/* AYANOOR v88 marker: mobile header rebuilt in header.php; avoids stretched mobile PNG. */

/* AYANOOR v89 generated from v88: mobile header full background cover + transparent logo. */

/* =========================================================
   AYANOOR v91 - Category/library card visibility fix
   Keeps posts inside the visible viewport on tablet/desktop.
========================================================= */
@media (min-width:700px){
  .ay59-library-page{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  .ay59-wrap,
  .ay59-shell,
  .ay59-grid{
    box-sizing:border-box !important;
  }
  .ay59-shell{
    width:min(1120px, calc(100vw - 72px)) !important;
    max-width:calc(100vw - 72px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    display:grid !important;
    grid-template-columns:260px minmax(0,1fr) !important;
    gap:18px !important;
    position:relative !important;
    left:50% !important;
    transform:translateX(-50%) !important;
  }
  .ay59-left{min-width:0 !important;}
  .ay59-grid{
    width:100% !important;
    max-width:100% !important;
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:16px !important;
    overflow:visible !important;
  }
  .ay59-post-card{
    min-width:0 !important;
  }
}

@media (min-width:1200px){
  .ay59-shell{
    width:min(1180px, calc(100vw - 96px)) !important;
    max-width:calc(100vw - 96px) !important;
    grid-template-columns:270px minmax(0,1fr) !important;
  }
  .ay59-grid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }
}

@media (min-width:1500px){
  .ay59-shell{
    width:min(1320px, calc(100vw - 120px)) !important;
    max-width:calc(100vw - 120px) !important;
  }
  .ay59-grid{
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  }
}

@media (min-width:700px) and (max-width:980px){
  .ay59-shell{
    width:calc(100vw - 40px) !important;
    max-width:calc(100vw - 40px) !important;
    grid-template-columns:1fr !important;
  }
  .ay59-left{
    position:static !important;
  }
  .ay59-left .ay59-card:nth-child(n+2){
    display:none !important;
  }
  .ay59-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}

/* =========================================================
   AYANOOR v92 - Category section alignment fix
   Aligns the green section hero, Library Entries area, and header canvas.
========================================================= */
@media (min-width:700px){
  body{overflow-x:hidden!important;}

  .ay59-library-page{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  /* Use one clean centered canvas for category/search/archive pages. */
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-shell{
    width:min(1180px, calc(100vw - 96px))!important;
    max-width:calc(100vw - 96px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  /* Category green hero should share the same left/right canvas as the content below. */
  .ay59-hero-copy{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  .ay59-shell{
    display:grid!important;
    grid-template-columns:270px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important;
  }

  .ay59-main,
  .ay59-grid{
    min-width:0!important;
    max-width:100%!important;
  }

  .ay59-grid{
    display:grid!important;
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
    overflow:visible!important;
  }
}

@media (min-width:1500px){
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-shell{
    width:min(1280px, calc(100vw - 120px))!important;
    max-width:calc(100vw - 120px)!important;
  }
  .ay59-grid{grid-template-columns:repeat(4, minmax(0,1fr))!important;}
}

@media (min-width:700px) and (max-width:980px){
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-shell{
    width:calc(100vw - 40px)!important;
    max-width:calc(100vw - 40px)!important;
  }
  .ay59-shell{grid-template-columns:1fr!important;}
  .ay59-left{position:static!important;}
  .ay59-left .ay59-card:nth-child(n+2){display:none!important;}
  .ay59-grid{grid-template-columns:repeat(2, minmax(0,1fr))!important;}
}

@media (max-width:699px){
  .ay59-wrap,
  .ay59-hero-grid,
  .ay59-shell{
    width:calc(100vw - 36px)!important;
    max-width:calc(100vw - 36px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    left:auto!important;
    transform:none!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}


/* =========================================================
   AYANOOR v94 - Signs archive alignment and mobile header safety net
========================================================= */
.ay93-signs-archive{width:min(1180px,calc(100vw - 56px))!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important;}
@media(max-width:768px){.ay93-signs-archive{width:calc(100vw - 36px)!important;max-width:calc(100vw - 36px)!important;padding-left:0!important;padding-right:0!important;}}
@media(max-width:699px){.ay68-frame{height:82px!important;min-height:82px!important;width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;}.ay68-site-header{padding:10px 0!important;}.ay68-logo{width:31%!important;height:54px!important;}.ay68-drawer{width:calc(100vw - 28px)!important;max-width:calc(100vw - 28px)!important;}}


/* =========================================================
   AYANOOR v102 DIRECT MOBILE HEADER + SIGNS FIX
   This mirrors the header.php rules for cache/minify safety.
========================================================= */
@media(max-width:699px){
  .ay68-site-header{background:#003c32!important;}
  .ay68-frame{height:86px!important;min-height:86px!important;background:linear-gradient(90deg,#00483b 0%,#003c32 48%,#00483b 100%)!important;}
  .ay68-picture{display:none!important;visibility:hidden!important;}
  .ay68-logo{left:40%!important;top:49%!important;width:112px!important;height:66px!important;transform:translate(-50%,-50%)!important;filter:drop-shadow(0 7px 12px rgba(0,0,0,.34)) drop-shadow(0 0 10px rgba(217,168,78,.20))!important;}
  .ay68-search{right:116px!important;top:50%!important;width:42px!important;height:42px!important;transform:translateY(-50%)!important;}
  .ay68-search button{width:42px!important;height:42px!important;min-width:42px!important;}
  .ay68-search button:before{font-size:24px!important;}
  .ay68-whatsapp{right:12px!important;top:50%!important;width:94px!important;height:36px!important;font-size:11px!important;transform:translateY(-50%)!important;}
  .ay73-signs-cards{gap:14px!important;padding-left:18px!important;padding-right:18px!important;}
  .ay73-sign-card{flex:0 0 210px!important;min-width:210px!important;max-width:210px!important;scroll-snap-align:start!important;}
}
@media (max-width: 768px) {
   /* mobile header CSS here */
}@media(max-width:380px){
  .ay68-logo{left:39%!important;width:98px!important;height:58px!important;}
  .ay68-search{right:108px!important;width:40px!important;height:40px!important;}
  .ay68-search button{width:40px!important;height:40px!important;min-width:40px!important;}
  .ay68-whatsapp{right:10px!important;width:88px!important;height:34px!important;font-size:10.5px!important;}
}
/* Hide mobile header on desktop/tablet */
@media (min-width: 769px) {
  .ayanoor-mobile-header,
  .mobile-header,
  .mobile-hero-header {
    display: none !important;
  }

  .site-header,
  header.site-header,
  .main-header,
  .desktop-header {
    display: block !important;
  }
}

/* Hide desktop header only on mobile */
@media (max-width: 768px) {
  .site-header,
  header.site-header,
  .main-header,
  .desktop-header {
    display: none !important;
  }

  .ayanoor-mobile-header,
  .mobile-header,
  .mobile-hero-header {
    display: block !important;
  }
}
/* Hide mobile header + mobile floating icons on desktop/tablet */
@media (min-width: 769px) {

  .ayanoor-mobile-header,
  .mobile-header,
  .mobile-hero,
  .mobile-hero-header,
  .mobile-floating-icons,
  .mobile-menu-toggle,
  .mobile-search-toggle {
    display: none !important;
  }

  /* Hide floating hamburger/search buttons */
  .fa-bars,
  .fa-search {
    display: none !important;
  }
}
@media (min-width: 769px) {
  body .ayanoor-mobile-shell,
  body .ayanoor-mobile-header,
  body .ayanoor-mobile-hero,
  body .ayanoor-mobile-menu,
  body .ayanoor-floating-menu,
  body .ayanoor-floating-search,
  body [class*="mobile-header"],
  body [class*="mobile-hero"],
  body [class*="floating"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}