/* ===== MintRecipe Pro Core Styles (v1.1.1) ===== */
:root{
  --bg-main: #F3FAF7;
  --bg-section: #ECF6F3;
  --bg-card: #FFFFFF;
  --border-soft: #E8EEE9;
  --divider-gold: #E6C97A;
  --text-main: #1F2731;
  --muted-text: #5A6A73;
  --accent: #2AA7A0;
  --accent-dark: #1F8E88;
  --radius: 14px;
  --shadow: 0 8px 22px rgba(0,0,0,0.06);
}

html{ box-sizing:border-box; scroll-behavior:smooth; }
*,*:before,*:after{ box-sizing:inherit; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height:1.6;
}
img{ max-width:100%; height:auto; display:block; }
.container{ width:min(1100px, 92%); margin-inline:auto; }

/* Header */
.site-header{ background:#fff; border-bottom:2px solid var(--divider-gold); position:sticky; top:0; z-index:50; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px; }
.site-title{ font-weight:700; font-size:22px; text-decoration:none; color:var(--text-main); }
.primary-nav .menu{ display:flex; gap:18px; list-style:none; margin:0; padding:0; }
.primary-nav a{ text-decoration:none; color:var(--text-main); font-weight:600; }
.primary-nav a:hover{ color:var(--accent); }
.menu-toggle{ display:none; background:none; border:1px solid var(--border-soft); padding:8px 10px; border-radius:10px; }

/* Hero + Trending */
.home-hero-trending{ display:grid; grid-template-columns: 2fr 1fr; gap:24px; padding:28px 0; }
.hero-card{ position:relative; display:block; border-radius:16px; overflow:hidden; }
.hero-media img{ width:100%; height:auto; display:block; }
.hero-overlay{ position:absolute; inset:auto 20px 20px 20px; background:rgba(255,255,255,0.92); border:1px solid var(--border-soft); border-radius:12px; padding:18px; box-shadow:var(--shadow); }
.hero-category{ font-size:12px; font-weight:800; letter-spacing:.03em; color:#C18B2D; }
.hero-title{ margin:6px 0 8px; font-size:26px; line-height:1.25; }
.hero-excerpt{ margin:0; color:var(--muted-text); }

.trending{ background:var(--bg-card); border:1px solid var(--border-soft); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px; }
.trending h3{ margin:0 0 10px; }
.trending-list{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.trending-list li a{ display:grid; gap:2px; color:inherit; text-decoration:none; }
.trending-list .cat{ font-size:11px; text-transform:uppercase; color:#7B8C95; }
.trending-list .title{ font-weight:600; }
.trending-list li a:hover .title{ color:var(--accent); }

/* Sections */
.section{ background:var(--bg-section); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); padding:34px 0; }
.section-title{ display:flex; align-items:center; justify-content:space-between; margin:0 0 18px; font-size:22px; gap:12px; }
.section-title .section-link{ text-decoration:none; color: var(--text-main); }
.section-title .section-link:hover{ color: var(--accent); }
.section-title .view-all{
  font-size:14px; text-decoration:none; border:1px solid var(--border-soft);
  padding:6px 10px; border-radius:10px; color: var(--text-main);
}
.section-title .view-all:hover{ color:#fff; background: var(--accent); border-color: var(--accent); }
.home .section + .section{ border-top:2px solid var(--divider-gold); }

/* About block placeholder */
.about-grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap:24px; align-items:center; }
.about-photo-placeholder{ width:100%; aspect-ratio:1/1; border-radius:999px; background:radial-gradient(circle at 60% 40%, #ffe7d9, #f6d1bf, #f7efe9); border:1px solid #f2d6c2; }
.about-text p{ color:var(--muted-text); }

/* Cards */
.grid.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.grid.cards.small{ grid-template-columns: repeat(3, 1fr); }
.card{ background:var(--bg-card); border:1px solid var(--border-soft); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.card-body{ padding:14px; }
.card-meta .cat{ font-size:12px; font-weight:800; color:#7B8C95; text-transform:uppercase; }
.card-title{ margin:6px 0 8px; font-size:18px; line-height:1.3; }
.card-title a{ text-decoration:none; color:var(--text-main); }
.card-title a:hover{ color:var(--accent); }
.card-excerpt{ color:var(--muted-text); margin:0; }

/* Content layout with sidebar */
.content{ display:grid; grid-template-columns:2.3fr 1fr; gap:24px; padding:28px 0; }
.sidebar .widget{ background:var(--bg-card); border:1px solid var(--border-soft); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); }
.widget-title{ margin-top:0; }

/* Single */
.single-title{ font-size:34px; margin:12px 0; }
.single-meta{ color:var(--muted-text); font-size:14px; }
.single-thumb{ border-radius:12px; margin:12px 0 16px; }
.single-wrap{ display:grid; grid-template-columns:2.3fr 1fr; gap:24px; padding:28px 0; }
.single-content{ background:#fff; border:1px solid var(--border-soft); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); }
.single-content .wprm-recipe-container{ box-shadow:none; border:none; }

/* Authors */
.authors-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.author-card{ background: var(--bg-card); border:1px solid var(--border-soft); border-radius: var(--radius); padding:16px; text-align:center; box-shadow: var(--shadow); }
.author-avatar img{ border-radius:999px; margin-inline:auto; }
.author-name{ margin:10px 0 6px; font-size:18px; }
.author-bio{ color: var(--muted-text); margin:0; }

/* Mini blog adjustments */
.section-blog.mini .card .card-title{ font-size:16px; }
.section-blog.mini .card .card-excerpt{ font-size:14px; }

/* Footer */
.site-footer{ background:#fff; margin-top:30px; padding:22px 0 40px; }
.gold-divider{ border:none; height:2px; background:var(--divider-gold); margin:0 0 16px; }
.footer-inner{ display:flex; flex-direction:column; gap:14px; }
.footer-menu{ list-style:none; display:flex; gap:14px; padding:0; margin:6px 0 0; }
.footer-menu a{ text-decoration:none; color:var(--text-main); }
.footer-menu a:hover{ color:var(--accent); }
.copyright{ color:var(--muted-text); font-size:14px; }

/* Buttons/anchors */
a, a:visited{ color:var(--accent); }
a:hover{ color:var(--accent-dark); }
button, .button, .btn, .wp-block-button__link{
  background:var(--accent); color:#fff; border:none; border-radius:12px; padding:10px 14px; box-shadow:var(--shadow);
}
button:hover, .button:hover, .btn:hover, .wp-block-button__link:hover{ background:var(--accent-dark); }

/* Forms */
input, select, textarea{ background:#fff; border:1px solid var(--border-soft); color:var(--text-main); border-radius:10px; padding:10px 12px; }

/* Responsive */
@media (max-width: 980px){
  .home-hero-trending{ grid-template-columns:1fr; }
  .content, .single-wrap{ grid-template-columns:1fr; }
  .grid.cards{ grid-template-columns: repeat(2, 1fr); }
  .grid.cards.small{ grid-template-columns: repeat(2, 1fr); }
  .about-grid{ grid-template-columns:1fr; }
  .authors-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid.cards{ grid-template-columns: 1fr; }
  .grid.cards.small{ grid-template-columns: 1fr; }
  .menu-toggle{ display:block; }
  .primary-nav #primary-menu{ display:none; }
  .primary-nav.open #primary-menu{
    display:block; position:absolute; right:4%;
    background:#fff; border:1px solid var(--border-soft); padding:10px; border-radius:12px; box-shadow:var(--shadow);
  }
  .authors-grid{ grid-template-columns: 1fr; }
}
/* Center section title + arrow (no "View all") */
.section-title.center{
  display:flex;
  align-items:center;
  justify-content:center;
}

.section-title .section-link{
  text-decoration:none;
  color: var(--text-main);
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}

.section-title .section-link:hover{
  color: var(--accent);
}

.section-title .arrow{
  font-size:20px;
  line-height:1;
  transform: translateY(1px);
  color: var(--text-main);
}
/* Center section titles + arrow */
.section-title.center{
  display:flex;
  align-items:center;
  justify-content:center;
}
.section-title .section-link{
  text-decoration:none;
  color: var(--text-main);
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
.section-title .section-link:hover{ color: var(--accent); }
.section-title .arrow{
  font-size:20px;
  line-height:1;
  transform: translateY(1px);
  color: var(--text-main);
}

/* Trending with thumbnails (image left, text right) */
.trending-list.with-thumbs{
  display: grid;
  gap: 16px;
  list-style:none;
  padding:0;
  margin:0;
}
.trend-item{ list-style:none; }
.trend-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
}
.trend-row:hover .title{ color: var(--accent); }

.trend-thumb{
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid var(--border-soft);
}
.trend-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trend-text .cat{
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #C2781C; /* برتقالي بحال النموذج */
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.trend-text .title{
  display: block;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

/* Responsive */
@media (max-width: 640px){
  .trend-row{ grid-template-columns: 110px 1fr; }
  .trend-thumb{ width:110px; }
  .trend-text .title{ font-size: 18px; }
}
/* Make hero card match Trending column height */
.home-hero-trending{
  align-items: stretch;            /* خَلِّي الكولونز يتمدّو قدّ قد */
}
.hero{ height: 100%; }
.trending{ height: 100%; }

.hero-card{
  height: 100%;                    /* الهيرو كولو نفس علو التراندينغ */
  display: block;
}
.hero-media{
  height: 100%;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;               /* الصورة تْغطّي بلا ما تتشوه */
}

/* تحسين بسيط باش الأوفرلاي يبقى واضح */
.hero-overlay{
  inset: auto 20px 20px 20px;
}
/* Subcategory grid (3 per row) */
.subcat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
}
.subcat-card{
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.subcat-thumb{ display:block; width:100%; aspect-ratio:4/3; overflow:hidden; background:#f3f3f3; border-bottom:1px solid var(--border-soft); }
.subcat-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.subcat-thumb-placeholder{ display:block; width:100%; height:100%; background:linear-gradient(135deg,#f4f4f4,#e9e9e9); }
.subcat-body{ padding:14px; }
.subcat-title{ margin:0 0 6px; font-size:18px; }
.subcat-title a{ text-decoration:none; color:var(--text-main); }
.subcat-title a:hover{ color:var(--accent); }
.subcat-meta{ font-size:13px; color:var(--muted-text); }

/* Responsive */
@media (max-width: 980px){ .subcat-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .subcat-grid{ grid-template-columns: 1fr; } }
/* Subcategory grid: 3 per row (bigger cards) */
.subcat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.subcat-card{
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}

/* Bigger media */
.subcat-thumb{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;      /* أكبر من قبل */
  overflow:hidden;
  background:#f3f3f3;
  border-bottom:1px solid var(--border-soft);
}
.subcat-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.subcat-body{ padding:16px 16px 14px; }
.subcat-title{ margin:0 0 6px; font-size:22px; }
.subcat-title a{ text-decoration:none; color:var(--text-main); }
.subcat-title a:hover{ color:var(--accent); }

/* short excerpt under title */
.subcat-excerpt{
  margin:4px 0 8px;
  font-size:14px;
  line-height:1.5;
  color: var(--muted-text);
}

.subcat-meta{
  font-size:13px;
  color:var(--muted-text);
}

/* Responsive tweaks */
@media (max-width: 980px){
  .subcat-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .subcat-grid{ grid-template-columns: 1fr; }
}
/* Subcategory grid: 3 per row (cards with big latest-post title) */
.subcat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.subcat-card{
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.subcat-thumb{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  background:#f3f3f3;
  border-bottom:1px solid var(--border-soft);
}
.subcat-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.subcat-body{ padding:16px 16px 14px; }

/* BIG title (latest post) */
.subcat-post-title{ margin:0 0 6px; font-size:24px; line-height:1.25; font-weight:800; }
.subcat-post-title a{ text-decoration:none; color:var(--text-main); }
.subcat-post-title a:hover{ color:var(--accent); }

/* short excerpt */
.subcat-excerpt{
  margin:4px 0 10px;
  font-size:14px;
  line-height:1.55;
  color: var(--muted-text);
}

/* sub-category name (small but clear) */
.subcat-meta{
  font-size:13.5px;
  color: var(--muted-text);
  display:flex;
  gap:6px;
  align-items:center;
}
.subcat-meta .subcat-name{
  font-weight:700;
  color: var(--text-main);
}
.subcat-meta .sep{ opacity:.5; }

/* Responsive */
@media (max-width: 980px){ .subcat-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){
  .subcat-grid{ grid-template-columns: 1fr; }
  .subcat-post-title{ font-size:20px; }
}
.about-card .ellipsis{ opacity:.7; }
.about-readmore{ margin-top:8px; text-align:left; }
.btn.btn-small{
  display:inline-block; padding:8px 14px; border-radius:10px;
  border:1px solid var(--border-soft); text-decoration:none;
  font-size:14px; line-height:1;
}
.btn.btn-small:hover{ border-color:var(--accent); color:var(--accent); }
/* Fix Read more button visibility */
.about-card .btn.btn-small{
  display:inline-block;
  padding:8px 14px;
  border-radius:12px;
  font-size:14px;
  line-height:1;
  font-weight:700;
  background: var(--accent);   /* اللون ديال الزر */
  color:#fff !important;       /* النص أبيض */
  border:1px solid var(--accent);
  text-decoration:none;
}
.about-card .btn.btn-small:hover{
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}
/* Footer bar like reference */
.site-footer .footer-sep{
  border-top: 4px solid #e7c66a;   /* خط ذهبي رقيق */
  opacity: 1;
}
.footer-credits{
  text-align:center;
  padding: 18px 0 26px;
}
.footer-credits .copy{
  margin:0;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;       /* حروف كبار */
  color: var(--text-main);
}
.footer-credits a{
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  border-bottom: 0;
}
.footer-credits a:hover{
  text-decoration: underline;
}
/* Top navigation bar */
.primary-nav .menu{ display:flex; gap:28px; align-items:center; }
.primary-nav .menu > li{ position:relative; padding:18px 0; }
.primary-nav .menu > li > a{
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--text-main);
  padding: 0 2px;
  border-bottom: 4px solid transparent;
}
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current_page_parent > a,
.primary-nav .menu > li:hover > a{
  color: var(--accent);
  border-bottom-color: #e7c66a; /* الخط الأصفر */
}

/* Dropdown under "Recipes" */
.primary-nav .menu > li ul.sub-menu{
  display:none; position:absolute; left:0; top:100%;
  background:#fff; border:1px solid #eee; box-shadow:0 10px 20px rgba(0,0,0,.06);
  min-width: 220px; padding:8px 0; z-index: 50;
}
.primary-nav .menu > li:hover > ul.sub-menu{ display:block; }
.primary-nav .menu > li ul.sub-menu li a{
  display:block; padding:10px 14px;
  font-weight:700; text-transform:none; color:#222; text-decoration:none;
}
.primary-nav .menu > li ul.sub-menu li a:hover{
  background:#f5f7f7; color:var(--accent);
}

/* Search icon spacing (إذا عندك أيقونة سيرش فالهيدر) */
.header-search{ margin-left:auto; }
/* Single layout: content + right sidebar */
.single-wrap{
  display:grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap:28px;
}
@media (max-width: 980px){
  .single-wrap{ grid-template-columns: 1fr; }
}

/* Post head/content */
.post-header .post-title{ margin:0 0 6px; font-weight:800; }
.post-meta{ color:var(--muted-text); font-weight:700; margin-bottom:12px; }
.post-hero img{ border-radius:16px; width:100%; height:auto; }

/* Chips for categories (optional) */
.post-cats{ margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.post-cats .chip{
  display:inline-block; padding:6px 10px; border-radius:999px;
  border:1px solid var(--border-soft); text-decoration:none;
  font-weight:700; color:var(--text-main);
}
.post-cats .chip:hover{ border-color: var(--accent); color: var(--accent); }

/* Author box */
.post-sidebar .author-box{
  background: var(--bg-card);
  border:1px solid var(--border-soft);
  border-radius:16px;
  padding:18px;
  box-shadow: var(--shadow);
}
.author-avatar img{ border-radius:50%; width:140px; height:140px; object-fit:cover; display:block; margin:0 auto 10px; }
.author-title{ text-align:center; font-weight:900; font-size:16px; margin:0; opacity:.8; }
.author-name{ text-align:center; margin:6px 0 8px; font-weight:900; }
.author-name a{ text-decoration:none; color:var(--text-main); }
.author-name a:hover{ color:var(--accent); }
.author-bio{ font-size:14px; line-height:1.7; color:var(--text-main); }

.author-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.btn.btn-small{
  display:inline-block; padding:8px 12px; border-radius:10px; font-weight:800;
  font-size:13px; border:1px solid var(--border-soft); text-decoration:none;
}
.btn.btn-small:hover{ border-color: var(--accent); color: var(--accent); }
.btn-ghost{ background:transparent; }
/* Author archive grid: 3 columns */
.archive-author .grid.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:24px;
}
@media (max-width: 980px){
  .archive-author .grid.cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .archive-author .grid.cards{ grid-template-columns: 1fr; }
}
/* Single layout: content + right sidebar */
.single-wrap{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:28px; }
@media (max-width:980px){ .single-wrap{ grid-template-columns:1fr; } }

.post-header .post-title{ margin:0 0 6px; font-weight:800; }
.post-meta{ color:var(--muted-text); font-weight:700; margin-bottom:12px; }
.post-hero img{ width:100%; height:auto; border-radius:16px; }

.post-cats{ margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.post-cats .chip{ display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid var(--border-soft); text-decoration:none; font-weight:700; color:var(--text-main); }
.post-cats .chip:hover{ border-color:var(--accent); color:var(--accent); }

/* Author box */
.post-sidebar .author-box{ background:var(--bg-card); border:1px solid var(--border-soft); border-radius:16px; padding:18px; box-shadow:var(--shadow); }
.author-avatar img{ width:140px; height:140px; border-radius:50%; object-fit:cover; display:block; margin:0 auto 10px; }
.author-title{ text-align:center; font-weight:900; font-size:16px; margin:0; opacity:.8; }
.author-name{ text-align:center; margin:6px 0 8px; font-weight:900; }
.author-name a{ text-decoration:none; color:var(--text-main); }
.author-name a:hover{ color:var(--accent); }
.author-bio{ font-size:14px; line-height:1.7; color:var(--text-main); }
.author-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.btn.btn-small{ display:inline-block; padding:8px 12px; border-radius:10px; font-weight:800; font-size:13px; border:1px solid var(--border-soft); text-decoration:none; }
.btn.btn-small:hover{ border-color:var(--accent); color:var(--accent); }
.btn-ghost{ background:transparent; }
