/* ProSazeh Google-like Article Search (Frontend) - v3.2.1 */
.psas-ga{
  direction: rtl;
  unicode-bidi: plaintext;
  color: var(--psas-text, #202124);
  font-family: var(--psas-font-family, inherit);
  max-width: 100%;
  overflow-x: hidden;
}

.psas-ga *{ box-sizing: border-box; }

.psas-ga-home{
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 16px 40px;
}

.psas-ga-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.psas-ga-logo{ height: auto; display: block; }
.psas-ga-logo--home{
  width: min(100%, var(--psas-logo-home, 340px));
  max-width: var(--psas-logo-home, 340px);
}
.psas-ga-logo--serp{
  width: min(100%, var(--psas-logo-serp, 160px));
  max-width: var(--psas-logo-serp, 160px);
}

.psas-ga-logo-fallback{
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 26px;
  color: var(--psas-text, #202124);
}
.psas-ga-logo-fallback--serp{ font-size: 18px; }

.psas-ga-brand-text{
  font-size: 13px;
  color: var(--psas-muted, #5f6368);
  text-align: center;
}

.psas-ga-form{ width: 100%; max-width: 760px; }
.psas-ga-form--serp{ max-width: 920px; flex: 1 1 auto; width: 100%; }

.psas-ga-searchwrap{ position: relative; width: 100%; overflow: visible; }

.psas-ga-searchbox{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe1e5;
  border-radius: var(--psas-radius, 999px);
  background: #fff;
  padding: 10px 14px;
  transition: box-shadow .15s, border-color .15s;
}

.psas-ga-searchbox:hover{ box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.psas-ga-searchbox:focus-within{ box-shadow: 0 1px 10px rgba(32,33,36,.22); }

.psas-ga-searchbox--serp{ padding: 8px 10px; }

.psas-ga-icon{ fill: #9aa0a6; flex: 0 0 auto; }
.psas-ga-icon--submit{ fill: var(--psas-primary, #1a73e8); }

.psas-ga-input{
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.8;
  padding: 4px 0;
  color: var(--psas-text, #202124);
  min-width: 0;
}

.psas-ga-clear,
.psas-ga-submit{
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
}

.psas-ga-clear svg{ fill: #70757a; }
.psas-ga-clear:hover,
.psas-ga-submit:hover{ background: #f1f3f4; }

.psas-ga-btn{
  margin-top: 18px;
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  color: #3c4043;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.psas-ga-btn:hover{
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}

/* Suggestions (Portal-safe) */
.psas-ga-suggest{
  font-family: var(--psas-font-family, inherit);
  color: var(--psas-text, #202124);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
  z-index: 100000;
}
.psas-ga-suggest.is-open{ display:block; }
.psas-ga-suggest-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  text-decoration:none;
  color: var(--psas-text, #202124);
  font-size:14px;
}
.psas-ga-suggest-item:hover,
.psas-ga-suggest-item.is-active{ background:#f1f3f4; }
.psas-ga-suggest-icon{ width:18px;height:18px;fill:#9aa0a6;flex:0 0 auto; }
.psas-ga-suggest-foot{ border-top:1px solid #e8eaed; }

/* SERP */
.psas-ga-topbar{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  z-index: 9998;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.psas-ga-toplogo{ display:inline-flex; align-items:center; text-decoration:none; }

.psas-ga-body{
  max-width: var(--psas-serp-max, 1000px);
  margin: 0 auto;
  padding: 14px 16px 46px;
  overflow-x: hidden;
}

.psas-ga-meta{
  color: var(--psas-muted, #5f6368);
  font-size: 13px;
  margin: 10px 0 18px;
}

.psas-ga-results{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.psas-ga-result{
  display:grid;
  grid-template-columns: 1fr var(--psas-thumb-w, 180px);
  gap:16px;
  align-items:start;
}

.psas-ga-result.no-thumb{ grid-template-columns: 1fr; }

.psas-ga-result-main{ min-width:0; }

.psas-ga-result-site{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  min-width:0;
  flex-wrap: nowrap;
}

.psas-ga-favicon{ width:16px;height:16px;border-radius:4px; flex:0 0 auto; }

.psas-ga-url{
  font-size:12px;
  color: var(--psas-muted, #5f6368);
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.psas-ga-domain{ flex:0 0 auto; }
.psas-ga-breadcrumb{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.psas-ga-title{
  display:inline-block;
  font-size:18px;
  line-height:1.4;
  color: var(--psas-link, #1a0dab);
  text-decoration:none;
  margin:2px 0 6px;
}
.psas-ga-title:hover{ text-decoration:underline; }

.psas-ga-snippet{
  font-size:14px;
  line-height:1.9;
  color:#4d5156;
  overflow-wrap:anywhere;
}
.psas-ga-hl{ font-weight:700; color: var(--psas-text, #202124); }

.psas-ga-result-thumb img{
  width: var(--psas-thumb-w, 180px);
  height: var(--psas-thumb-h, 105px);
  object-fit:cover;
  border-radius:12px;
  border:1px solid #e8eaed;
}

/* Pagination */
.psas-ga-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:26px;
}
.psas-ga-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid #dadce0;
  background:#fff;
  color: var(--psas-primary, #1a73e8);
  text-decoration:none;
  font-size:14px;
}
.psas-ga-page:hover{ background:#f1f3f4; }
.psas-ga-page.is-active{ background: var(--psas-primary, #1a73e8); color:#fff; border-color: var(--psas-primary, #1a73e8); }
.psas-ga-ellipsis{ color: var(--psas-muted, #5f6368); padding:0 4px; }

/* Responsive like Google mobile list */
@media (max-width: 900px){
  .psas-ga-topbar{ flex-wrap: wrap; }
  .psas-ga-form--serp{ max-width: none; flex: 1 1 100%; }
  .psas-ga-result{ grid-template-columns: 1fr 140px; gap: 12px; }
  .psas-ga-result-thumb img{ width:140px; height:120px; }
}

@media (max-width: 640px){
  .psas-ga-result{ grid-template-columns: 1fr 96px; gap: 12px; }
  .psas-ga-result-thumb img{ width:96px; height:96px; }
  .psas-ga-title{ font-size:16px; }
  .psas-ga-snippet{ font-size:13px; line-height:1.8; }
}

@media (max-width: 420px){
  .psas-ga-result{ grid-template-columns: 1fr 84px; }
  .psas-ga-result-thumb img{ width:84px; height:84px; }
}

/* =========================================================
 * Home Enhanced (Content Hub)
 * ========================================================= */

.psas-ga-home.is-enhanced{
  min-height: auto;
  display: block;
  padding: 24px 16px 56px;
}

.psas-ga-home.is-enhanced .pgas-container{
  max-width: 1200px;
  margin: 0 auto;
}

.psas-ga-home.is-enhanced .pgas-section{ margin-top: 28px; }
.psas-ga-home.is-enhanced .pgas-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 12px;
}
.psas-ga-home.is-enhanced .pgas-section__title{
  margin:0;
  font-size:16px;
  font-weight:700;
  color: var(--pgas-text, var(--psas-text, #202124));
}
.psas-ga-home.is-enhanced .pgas-section__desc{
  margin:0;
  font-size:12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

.psas-ga-home.is-enhanced a:focus-visible,
.psas-ga-home.is-enhanced button:focus-visible,
.psas-ga-home.is-enhanced input:focus-visible{
  outline:2px solid var(--pgas-accent, var(--psas-primary, #1a73e8));
  outline-offset: 2px;
}

/* Hero */
.psas-ga-home.is-enhanced .pgas-hero{
  border: 1px solid var(--pgas-border, #e8eaed);
  background: var(--pgas-card, #fff);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.psas-ga-home.is-enhanced .pgas-hero__brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  text-align: center;
}

.psas-ga-home.is-enhanced .pgas-hero__logo img{
  width: 86px;
  height: auto;
  display:block;
}

.psas-ga-home.is-enhanced .pgas-hero__title{
  margin:0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--pgas-text, var(--psas-text, #202124));
}

.psas-ga-home.is-enhanced .pgas-hero__subtitle{
  margin:0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

.psas-ga-home.is-enhanced .pgas-hero__form{
  margin-top: 14px;
  max-width: 760px;
  margin-left:auto;
  margin-right:auto;
}

.psas-ga-home.is-enhanced .psas-ga-btn{
  background: var(--pgas-accent, var(--psas-primary, #1a73e8));
  border-color: var(--pgas-accent, var(--psas-primary, #1a73e8));
  color: #fff;
  min-height: 40px;
}
.psas-ga-home.is-enhanced .psas-ga-btn:hover{ filter: brightness(0.98); }

/* Chips */
.psas-ga-home.is-enhanced .pgas-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.psas-ga-home.is-enhanced .pgas-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--pgas-border, #e8eaed);
  background: var(--pgas-card, #fff);
  color: var(--pgas-text, var(--psas-text, #202124));
  text-decoration:none;
  font-size: 13px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.psas-ga-home.is-enhanced .pgas-chip:hover{
  background: #f1f3f4;
  border-color: #dadce0;
}

/* Cards + grids */
.psas-ga-home.is-enhanced .pgas-grid{ display:grid; gap: 14px; }

.psas-ga-home.is-enhanced .pgas-grid--cats{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psas-ga-home.is-enhanced .pgas-grid--posts{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.psas-ga-home.is-enhanced .pgas-grid--picks{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.psas-ga-home.is-enhanced .pgas-cat,
.psas-ga-home.is-enhanced .pgas-tile{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 14px 14px;
  border: 1px solid var(--pgas-border, #e8eaed);
  border-radius: 12px;
  background: var(--pgas-card, #fff);
  text-decoration:none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.psas-ga-home.is-enhanced .pgas-cat:hover,
.psas-ga-home.is-enhanced .pgas-tile:hover{
  border-color: #dadce0;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.psas-ga-home.is-enhanced .pgas-cat__name,
.psas-ga-home.is-enhanced .pgas-tile__title{
  font-weight:700;
  font-size: 14px;
  color: var(--pgas-text, var(--psas-text, #202124));
}
.psas-ga-home.is-enhanced .pgas-cat__meta,
.psas-ga-home.is-enhanced .pgas-tile__meta{
  font-size: 12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

.psas-ga-home.is-enhanced .pgas-card{
  border: 1px solid var(--pgas-border, #e8eaed);
  border-radius: 14px;
  background: var(--pgas-card, #fff);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.psas-ga-home.is-enhanced .pgas-card__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.psas-ga-home.is-enhanced .pgas-card__title{
  margin:0;
  font-size: 15px;
  font-weight: 800;
}
.psas-ga-home.is-enhanced .pgas-card__desc{
  font-size: 12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

.psas-ga-home.is-enhanced .pgas-split{
  display:grid;
  gap: 16px;
}

.psas-ga-home.is-enhanced .pgas-post{
  display:flex;
  flex-direction:column;
  border: 1px solid var(--pgas-border, #e8eaed);
  border-radius: 12px;
  overflow:hidden;
  background: var(--pgas-card, #fff);
  text-decoration:none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.psas-ga-home.is-enhanced .pgas-post:hover{
  border-color: #dadce0;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.psas-ga-home.is-enhanced .pgas-post__thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  background: #f1f3f4;
  border-bottom: 1px solid var(--pgas-border, #e8eaed);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.psas-ga-home.is-enhanced .pgas-post__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.psas-ga-home.is-enhanced .pgas-thumb-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #9aa0a6;
  background: linear-gradient(135deg, #f1f3f4, #fff);
}
.psas-ga-home.is-enhanced .pgas-post__body{ padding: 12px 12px 14px; }
.psas-ga-home.is-enhanced .pgas-post__title{
  font-weight:800;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pgas-text, var(--psas-text, #202124));
  margin-bottom: 6px;
}
.psas-ga-home.is-enhanced .pgas-post__excerpt{
  font-size: 12px;
  line-height: 1.9;
  color: #4d5156;
  margin-bottom: 8px;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.psas-ga-home.is-enhanced .pgas-post__meta{
  font-size: 12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

/* Popular */
.psas-ga-home.is-enhanced .pgas-popular__list{
  margin:0;
  padding:0 20px 0 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.psas-ga-home.is-enhanced .pgas-popular__item{ line-height:1.6; }
.psas-ga-home.is-enhanced .pgas-popular__link{
  color: var(--pgas-text, var(--psas-text, #202124));
  text-decoration:none;
  font-weight:700;
}
.psas-ga-home.is-enhanced .pgas-popular__link:hover{ text-decoration:underline; }
.psas-ga-home.is-enhanced .pgas-popular__meta{
  font-size: 12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
  margin-top: 4px;
}

/* Picks */
.psas-ga-home.is-enhanced .pgas-pick{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--pgas-border, #e8eaed);
  border-radius: 14px;
  background: var(--pgas-card, #fff);
  text-decoration:none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.psas-ga-home.is-enhanced .pgas-pick:hover{
  border-color: #dadce0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.psas-ga-home.is-enhanced .pgas-pick__thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow:hidden;
  background:#f1f3f4;
  border:1px solid var(--pgas-border, #e8eaed);
}
.psas-ga-home.is-enhanced .pgas-pick__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.psas-ga-home.is-enhanced .pgas-pick__title{
  font-weight:800;
  font-size: 14px;
  line-height:1.6;
  color: var(--pgas-text, var(--psas-text, #202124));
}
.psas-ga-home.is-enhanced .pgas-pick__meta{
  font-size: 12px;
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
}

/* CTA */
.psas-ga-home.is-enhanced .pgas-cta{
  border: 1px solid var(--pgas-border, #e8eaed);
  border-radius: 16px;
  background: var(--pgas-card, #fff);
  border-inline-start: 4px solid var(--pgas-accent, var(--psas-primary, #1a73e8));
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.psas-ga-home.is-enhanced .pgas-cta__title{
  font-weight:900;
  font-size: 15px;
  margin-bottom: 6px;
}
.psas-ga-home.is-enhanced .pgas-cta__text{
  color: var(--pgas-muted, var(--psas-muted, #5f6368));
  font-size: 13px;
  line-height:1.9;
}
.psas-ga-home.is-enhanced .pgas-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--pgas-accent, var(--psas-primary, #1a73e8));
  color:#fff;
  text-decoration:none;
  font-weight:800;
  border:1px solid var(--pgas-accent, var(--psas-primary, #1a73e8));
}
.psas-ga-home.is-enhanced .pgas-btn:hover{ filter: brightness(0.98); }

/* Tablet */
@media (max-width: 1024px){
  .psas-ga-home.is-enhanced .pgas-grid--cats{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .psas-ga-home.is-enhanced .pgas-grid--posts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psas-ga-home.is-enhanced .pgas-post__body{ padding: 10px 10px 12px; }
  .psas-ga-home.is-enhanced .pgas-post__title{ font-size: 13px; margin-bottom: 4px; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
  .psas-ga-home.is-enhanced .pgas-post__excerpt{ -webkit-line-clamp: 1; margin-bottom: 6px; }
  .psas-ga-home.is-enhanced .pgas-post__meta{ font-size: 11px; }
  .psas-ga-home.is-enhanced .pgas-grid--picks{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 640px){
  .psas-ga-home.is-enhanced{ padding: 18px 14px 46px; }
  .psas-ga-home.is-enhanced .pgas-hero{ padding: 16px; }
  .psas-ga-home.is-enhanced .pgas-hero__title{ font-size: 18px; }
  .psas-ga-home.is-enhanced .pgas-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }
  .psas-ga-home.is-enhanced .pgas-chip{ scroll-snap-align: start; }
  .psas-ga-home.is-enhanced .pgas-grid--cats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psas-ga-home.is-enhanced .pgas-grid--posts{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psas-ga-home.is-enhanced .pgas-grid--picks{ grid-template-columns: 1fr; }
  .psas-ga-home.is-enhanced .pgas-cta{ flex-direction:column; align-items:stretch; }
  .psas-ga-home.is-enhanced .pgas-btn{ width:100%; }
}

@media (min-width: 520px) and (max-width: 640px){
  .psas-ga-home.is-enhanced .pgas-grid--posts{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 360px){
  .psas-ga-home.is-enhanced .pgas-grid--cats{ grid-template-columns: 1fr; }
}

/* Desktop split layout for Latest + Popular */
@media (min-width: 1025px){
  .psas-ga-home.is-enhanced .pgas-split{ grid-template-columns: 2fr 1fr; }
  .psas-ga-home.is-enhanced .pgas-split > :only-child{ grid-column: 1 / -1; }
  .psas-ga-home.is-enhanced .pgas-hero{ padding: 24px; }
  .psas-ga-home.is-enhanced .pgas-hero__brand{
    flex-direction:row;
    justify-content:flex-start;
    text-align:right;
  }
  .psas-ga-home.is-enhanced .pgas-hero__logo{ flex:0 0 auto; }
  .psas-ga-home.is-enhanced .pgas-hero__text{ flex:1 1 auto; }
}

