/* =========================================================
   New Cairo Pet Care Center — Blog & Single Post Styles
   كل الألوان في المتغيرات دي — عدّل هنا بس عشان تغيّر الثيم
   ========================================================= */

:root {
  --pcc-navy-deep: #0A1E3F;
  --pcc-navy:      #10285A;
  --pcc-blue:      #1E73D8;
  --pcc-blue-2:    #2E8BEE;
  --pcc-sky:       #4FA8FF;
  --pcc-gold:      #E0A82E;      /* لمسة من اللوجو */
  --pcc-bg:        #F4F7FC;
  --pcc-card:      #FFFFFF;
  --pcc-text:      #16233B;
  --pcc-muted:     #64748B;
  --pcc-border:    #E3EAF4;

  --pcc-radius:    18px;
  --pcc-radius-sm: 12px;
  --pcc-shadow:    0 10px 30px rgba(16, 40, 90, .10);
  --pcc-shadow-lg: 0 22px 55px rgba(16, 40, 90, .18);
  --pcc-grad:      linear-gradient(135deg, var(--pcc-navy-deep) 0%, var(--pcc-navy) 45%, var(--pcc-blue) 100%);
  --pcc-font:      'Cairo', 'Tajawal', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base wrappers (scoped so we don't fight the theme) ---------- */
.pcc-scope,
.pcc-scope * { box-sizing: border-box; }

.pcc-scope {
  font-family: var(--pcc-font);
  color: var(--pcc-text);
  line-height: 1.75;
}

.pcc-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ======================= HERO (Blog header) ======================= */
.pcc-hero {
  position: relative;
  background: var(--pcc-grad);
  color: #fff;
  padding: 74px 20px 92px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
}
.pcc-hero::before,
.pcc-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}
.pcc-hero::before { width: 340px; height: 340px; top: -120px; inset-inline-start: -80px; }
.pcc-hero::after  { width: 260px; height: 260px; bottom: -110px; inset-inline-end: -60px; background: rgba(79,168,255,.14); }

.pcc-hero .pcc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.pcc-hero .pcc-eyebrow .pcc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pcc-gold); }

.pcc-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}
.pcc-hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  color: rgba(255,255,255,.85);
}

/* ======================= BLOG GRID ======================= */
.pcc-blog-section { background: var(--pcc-bg); padding: 60px 0 80px; }
.pcc-blog-section.pcc-pull-up { margin-top: -56px; position: relative; z-index: 2; }

.pcc-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
.pcc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pcc-grid.cols-1 { grid-template-columns: 1fr; }

@media (max-width: 992px) { .pcc-grid, .pcc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pcc-grid, .pcc-grid.cols-2, .pcc-grid.cols-1 { grid-template-columns: 1fr; } }

/* ---- Card ---- */
.pcc-card {
  background: var(--pcc-card);
  border: 1px solid var(--pcc-border);
  border-radius: var(--pcc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--pcc-shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.pcc-card:hover { transform: translateY(-8px); box-shadow: var(--pcc-shadow-lg); }

.pcc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pcc-grad);
}
.pcc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.pcc-card:hover .pcc-card__media img { transform: scale(1.07); }

.pcc-card__media .pcc-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
}
.pcc-card__media .pcc-placeholder svg { width: 64px; height: 64px; opacity: .9; }

.pcc-badge {
  position: absolute;
  top: 14px; inset-inline-start: 14px;
  background: rgba(255,255,255,.95);
  color: var(--pcc-navy);
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16,40,90,.15);
}

.pcc-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.pcc-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--pcc-muted); margin-bottom: 10px; flex-wrap: wrap;
}
.pcc-meta .pcc-mi { display: inline-flex; align-items: center; gap: 6px; }
.pcc-meta svg { width: 15px; height: 15px; stroke: var(--pcc-blue); }

.pcc-card__title {
  margin: 0 0 10px; font-size: 20px; font-weight: 800; line-height: 1.4;
}
.pcc-card__title a { color: var(--pcc-text); text-decoration: none; transition: color .2s; }
.pcc-card__title a:hover { color: var(--pcc-blue); }

.pcc-card__excerpt { margin: 0 0 18px; color: var(--pcc-muted); font-size: 15px; flex: 1; }

.pcc-readmore {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pcc-blue); font-weight: 800; font-size: 15px;
  text-decoration: none; margin-top: auto;
}
.pcc-readmore svg { width: 18px; height: 18px; transition: transform .25s; }
[dir="rtl"] .pcc-readmore svg { transform: scaleX(-1); }
.pcc-readmore:hover svg { transform: translateX(4px); }
[dir="rtl"] .pcc-readmore:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---- Pagination ---- */
.pcc-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.pcc-pagination a, .pcc-pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff; border: 1px solid var(--pcc-border);
  color: var(--pcc-navy); font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.pcc-pagination a:hover { background: var(--pcc-blue); color: #fff; border-color: var(--pcc-blue); }
.pcc-pagination .current { background: var(--pcc-grad); color: #fff; border-color: transparent; }

.pcc-empty { text-align: center; color: var(--pcc-muted); padding: 60px 0; font-size: 17px; }

/* ======================= SINGLE POST ======================= */
.pcc-progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--pcc-blue), var(--pcc-sky));
  z-index: 99999; transition: width .1s linear;
}

.pcc-single-hero {
  background: var(--pcc-grad);
  color: #fff;
  padding: 66px 20px 120px;
  position: relative;
  overflow: hidden;
}
.pcc-single-hero::after {
  content:""; position:absolute; width:300px; height:300px; border-radius:50%;
  background: rgba(79,168,255,.14); top:-120px; inset-inline-end:-80px;
}
.pcc-single-hero .pcc-container { position: relative; z-index: 2; max-width: 860px; }

.pcc-crumbs { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.pcc-crumbs a { color: #fff; text-decoration: none; }
.pcc-crumbs a:hover { text-decoration: underline; }

.pcc-cat-pill {
  display: inline-block;
  background: var(--pcc-gold); color: var(--pcc-navy-deep);
  font-weight: 800; font-size: 13px; padding: 6px 15px;
  border-radius: 999px; margin-bottom: 16px;
}
.pcc-single-hero h1 {
  margin: 0 0 18px; font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900; line-height: 1.3; color: #fff;
}
.pcc-single-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: rgba(255,255,255,.85); font-size: 15px;
}
.pcc-single-meta .pcc-mi { display: inline-flex; align-items: center; gap: 7px; }
.pcc-single-meta svg { width: 17px; height: 17px; stroke: var(--pcc-sky); }
.pcc-single-meta .pcc-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.2); display:inline-flex; align-items:center; justify-content:center;
  font-weight: 800; color:#fff; border: 2px solid rgba(255,255,255,.35);
}

.pcc-single-body { background: var(--pcc-bg); padding-bottom: 80px; }
.pcc-article-card {
  background: #fff;
  max-width: 860px;
  margin: -80px auto 0;
  border-radius: var(--pcc-radius);
  box-shadow: var(--pcc-shadow-lg);
  overflow: hidden;
  position: relative; z-index: 3;
}
.pcc-featured { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }

.pcc-article-content { padding: 44px clamp(22px, 5vw, 56px) 48px; }
.pcc-article-content > * { max-width: 100%; }
.pcc-article-content p { margin: 0 0 22px; font-size: 17.5px; color: #2a3752; }
.pcc-article-content h2 {
  font-size: 28px; font-weight: 800; margin: 40px 0 16px; color: var(--pcc-navy);
  padding-inline-start: 16px; border-inline-start: 5px solid var(--pcc-blue);
}
.pcc-article-content h3 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; color: var(--pcc-navy); }
.pcc-article-content ul, .pcc-article-content ol { margin: 0 0 22px; padding-inline-start: 26px; }
.pcc-article-content li { margin-bottom: 10px; font-size: 17px; color: #2a3752; }
.pcc-article-content img { border-radius: var(--pcc-radius-sm); margin: 12px 0; height: auto; }
.pcc-article-content blockquote {
  margin: 28px 0; padding: 20px 26px;
  background: #EEF4FE; border-inline-start: 5px solid var(--pcc-blue);
  border-radius: var(--pcc-radius-sm); color: var(--pcc-navy); font-size: 18px; font-style: italic;
}
.pcc-article-content a { color: var(--pcc-blue); text-decoration: underline; }

/* Share row */
.pcc-share { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--pcc-border); flex-wrap: wrap; }
.pcc-share span { font-weight: 800; color: var(--pcc-navy); }
.pcc-share a {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pcc-bg); color: var(--pcc-navy); border: 1px solid var(--pcc-border);
  transition: all .2s;
}
.pcc-share a:hover { background: var(--pcc-blue); color: #fff; border-color: var(--pcc-blue); transform: translateY(-3px); }
.pcc-share svg { width: 19px; height: 19px; }

/* Author box */
.pcc-author {
  max-width: 860px; margin: 30px auto 0;
  background: #fff; border: 1px solid var(--pcc-border); border-radius: var(--pcc-radius);
  padding: 26px 30px; display: flex; gap: 20px; align-items: center; box-shadow: var(--pcc-shadow);
}
.pcc-author__ava {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  background: var(--pcc-grad); color:#fff; display:flex; align-items:center; justify-content:center;
  font-size: 26px; font-weight: 900;
}
.pcc-author__name { font-weight: 900; font-size: 18px; color: var(--pcc-navy); margin: 0 0 4px; }
.pcc-author__bio { margin: 0; color: var(--pcc-muted); font-size: 15px; }

/* Related */
.pcc-related { max-width: 1120px; margin: 64px auto 0; padding-inline: 20px; }
.pcc-related__head { text-align: center; margin-bottom: 34px; }
.pcc-related__head h2 { font-size: 30px; font-weight: 900; color: var(--pcc-navy); margin: 0 0 8px; }
.pcc-related__head p { color: var(--pcc-muted); margin: 0; }
.pcc-related__head .pcc-line { width: 70px; height: 4px; background: var(--pcc-grad); border-radius: 4px; margin: 14px auto 0; }

/* Section title (reusable) */
.pcc-section-title { text-align:center; margin-bottom: 44px; }
.pcc-section-title h2 { font-size: clamp(26px,3vw,36px); font-weight: 900; color: var(--pcc-navy); margin: 0 0 10px; }
.pcc-section-title p { color: var(--pcc-muted); margin: 0; font-size: 16px; }
.pcc-section-title .pcc-line { width: 70px; height: 4px; background: var(--pcc-grad); border-radius: 4px; margin: 14px auto 0; }

/* ============================================================
   BeTheme integration fixes (v1.0.1)
   ============================================================ */

/* 1) Hide BeTheme's grey page-title bar (#Subheader) on SINGLE POSTS,
      since our own hero already shows the title + breadcrumbs.
      (For the BLOG PAGE, tick "Hide Subheader" in the page's Betheme box.) */
.single-post #Subheader { display: none !important; }

/* 2) Break our full-width sections out of BeTheme's fixed-width container
      so the navy hero and section backgrounds go edge-to-edge instead of
      leaving big side gaps. Inner .pcc-container / article card keep a
      comfortable centered width. */
.pcc-scope .pcc-hero,
.pcc-scope .pcc-blog-section,
.pcc-scope .pcc-single-hero,
.pcc-scope .pcc-single-body {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* 3) Give the article a more comfortable reading width. */
.pcc-article-card { max-width: 920px; }

/* 4) Show the featured image in FULL (natural ratio) instead of cropping
      it to a fixed 21/9 band. */
.pcc-featured {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

/* 5) Safety: keep BeTheme's own content padding from re-introducing gaps
      around our full-bleed sections. */
.single-post #Content .pcc-scope,
.pcc-scope { padding-left: 0; padding-right: 0; }

/* ============================================================
   Full-width blog/single — strip BeTheme container (v1.0.2)
   Applied automatically via the body class .pcc-fullwidth-page
   ============================================================ */
.pcc-fullwidth-page #Content,
.pcc-fullwidth-page #Content .content_wrapper,
.pcc-fullwidth-page #Content .sections_group,
.pcc-fullwidth-page #Content .entry-content,
.pcc-fullwidth-page #Content .section,
.pcc-fullwidth-page #Content .section.the_content,
.pcc-fullwidth-page #Content .section_wrapper,
.pcc-fullwidth-page #Content .the_content_wrapper,
.pcc-fullwidth-page #Content .container,
.pcc-fullwidth-page #Content .wrap,
.pcc-fullwidth-page #Content .mcb-wrap,
.pcc-fullwidth-page #Content .mcb-column,
.pcc-fullwidth-page #Content .column,
.pcc-fullwidth-page #Content .column_attr {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex-basis: 100% !important;
}
.pcc-fullwidth-page #Content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Kill the theme's grey title bar on the blog page too */
.pcc-fullwidth-page #Subheader { display: none !important; }
