/* ===========================================================
   Al-Ghazi Tractors — Blog / Newsroom
   Shared styles (Bootstrap 5.3.8 add-on)
   =========================================================== */
/* ======================================================
   CATEGORY / ARCHIVE PAGE
====================================================== */

.ag-breadcrumb {
  font-size: 14px;
  color: #777;
  margin-top: 45px;
  margin-bottom: 18px;
}

.ag-breadcrumb a {
  color: #777;
  text-decoration: none;
}

.ag-breadcrumb a:hover {
  color: #111;
}

.ag-breadcrumb span {
  display: inline-block;
  margin: 0 8px;
  color: #aaa;
}

.ag-page-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.ag-page-sub {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 0;
}

/* News Card Grid */

.ag-news-card {
  background: transparent;
}

.ag-news-card .img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f3f3f3;
}

.ag-news-card .img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ag-news-card:hover .img-wrap img {
  transform: scale(1.05);
}

.ag-news-card .ag-tag {
  margin-bottom: 12px;
}

.ag-news-card .ag-card-title {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px;
}

.ag-news-card .ag-card-title a {
  color: #111;
  text-decoration: none;
}

.ag-news-card .ag-card-title a:hover {
  color: #333;
}

.ag-tag.teal {
  background: #007f7a;
  color: #fff;
}

.ag-tag.green {
  background: #2f8f46;
  color: #fff;
}

/* Pagination */

.ag-pagination .navigation.pagination {
  display: flex;
  justify-content: center;
}

.ag-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ag-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}

.ag-pagination .page-numbers.current {
  background: #111;
  color: #fff;
}

.ag-pagination .page-numbers.next {
  background: #111;
  color: #fff;
  padding: 0 22px;
}

.ag-pagination .page-numbers.prev {
  background: #111;
  color: #fff;
  padding: 0 22px;
}

/* Responsive */

@media (max-width: 768px) {
  .ag-page-title {
    font-size: 32px;
  }

  .ag-page-sub {
    font-size: 15px;
  }

  .ag-news-card .img-wrap img {
    height: 220px;
  }
}
/*-------------------above category page style----------------------------*/
:root {
  --ag-blue: #1c54a8;
  --ag-primary: #1c54a8;
  --ag-primary-dark: #15407e;
  --ag-navy: #16335f;
  --ag-footer-1: #1e4b8f;
  --ag-footer-2: #16335f;
  --ag-text: #20272f;
  --ag-muted: #6b7785;
  --ag-line: #e6e9ee;
  --ag-bg-soft: #f5f7fa;
  --ag-tag: #1c54a8;
}

* { box-sizing: border-box; }

body {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: var(--ag-text);
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--ag-primary); }

img { max-width: 100%; }

.section-pad { padding: 40px 0; }

/* ---------- Header ---------- */
.ag-topbar {
  border-bottom: 1px solid var(--ag-line);
  background: #fff;
}
.ag-logo-left img,
.ag-logo-right img { height: 38px; width: auto; }
.ag-logo-text {
  font-weight: 700;
  color: var(--ag-navy);
  font-size: 14px;
  line-height: 1.1;
}
.ag-logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--ag-muted); }

.ag-nav .nav-link {
  color: var(--ag-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: .5rem .7rem;
}
.ag-nav .nav-link:hover,
.ag-nav .nav-link.active { color: var(--ag-primary); }
.ag-nav .dropdown-menu { font-size: 13px; border-radius: 4px; }

/* ---------- Category badge / tag ---------- */
.ag-tag {
  display: inline-block;
  background: var(--ag-tag);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
}
.ag-tag.green { background: #2e7d52; }
.ag-tag.teal { background: #1c7d8a; }
.ag-tag.orange { background: #b5631c; }

/* ---------- Section titles ---------- */
.ag-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ag-navy);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.ag-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  background: var(--ag-primary);
}
.ag-viewall { font-size: 13px; font-weight: 600; color: var(--ag-primary); }

/* ---------- Hero ---------- */
.ag-hero {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.ag-hero img { width: 100%; height: 380px; object-fit: cover; display: block; }
.ag-hero .ag-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%);
}
.ag-hero .ag-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  color: #fff;
}
.ag-hero h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0 0;
  max-width: 560px;
}

/* ---------- News cards ---------- */
.ag-card {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.ag-card:hover { box-shadow: 0 8px 22px rgba(20,40,80,.12); transform: translateY(-3px); }
.ag-card .ag-card-img { position: relative; }
.ag-card .ag-card-img img { width: 100%; height: 165px; object-fit: cover; display: block; }
.ag-card .ag-card-img .ag-tag { position: absolute; left: 10px; bottom: 10px; }
.ag-card-body { padding: 14px 14px 18px; }
.ag-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ag-navy);
  line-height: 1.4;
  margin: 8px 0 8px;
}
.ag-card-title a:hover { color: var(--ag-primary); }
.ag-date { font-size: 12px; color: var(--ag-muted); }

/* ---------- News card (tag BELOW image) ---------- */
.ag-news-card { height: 100%; }
.ag-news-card .img-wrap { border-radius: 4px; overflow: hidden; }
.ag-news-card .img-wrap img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.ag-news-card:hover .img-wrap img { transform: scale(1.05); }
.ag-news-card .ag-tag { margin: 14px 0 10px; }
.ag-news-card .ag-card-title { margin: 0 0 10px; font-size: 17px; }
.ag-news-card .ag-card-title a:hover { color: var(--ag-primary); }

/* ---------- Sidebar ---------- */
.ag-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ag-navy);
  border-bottom: 2px solid var(--ag-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.ag-popular-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ag-line); }
.ag-popular-item:last-child { border-bottom: 0; }
.ag-popular-item img { width: 78px; height: 60px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.ag-popular-item .t { font-size: 13px; font-weight: 600; color: var(--ag-navy); line-height: 1.35; }

.ag-cat-list { list-style: none; padding: 0; margin: 0; }
.ag-cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--ag-line);
  font-size: 14px; font-weight: 600; color: var(--ag-text);
}
.ag-cat-list li:last-child { border-bottom: 0; }
.ag-cat-list .count { color: var(--ag-muted); font-weight: 700; }

.ag-newsletter {
  background: linear-gradient(135deg, var(--ag-navy), #0e2547);
  color: #fff;
  border-radius: 6px;
  padding: 22px 20px;
}
.ag-newsletter h5 { font-size: 16px; font-weight: 700; }
.ag-newsletter .form-control { border: 0; }
.ag-newsletter .privacy { font-size: 11px; color: rgba(255,255,255,.7); }

/* ---------- Insights grid ---------- */
.ag-insight {
  position: relative; border-radius: 4px; overflow: hidden;
  height: 100%;
}
.ag-insight img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-insight-feature img { height: 235px; }
.ag-insight-thumb img { height: 110px; }
.ag-insight-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.8));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; color: #fff;
}
.ag-insight-overlay .t { font-size: 15px; font-weight: 700; line-height: 1.35; }

.ag-insight-text {
  border: 1px solid var(--ag-line); border-radius: 4px;
  padding: 14px; height: 100%;
}
.ag-insight-text .t { font-size: 15px; font-weight: 700; color: var(--ag-navy); line-height: 1.4; }

/* Insight item: image with tag pinned to bottom-left, title BELOW image */
.ag-insight-portrait { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; display: block; }

.ag-insight-img { position: relative; border-radius: 3px; overflow: hidden; }
.ag-insight-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ag-insight-img .ag-tag { position: absolute; left: 0; bottom: 0; border-radius: 0; }
.ag-insight-heading { font-size: 19px; font-weight: 700; color: var(--ag-navy); line-height: 1.3; margin: 8px 0; }
.ag-insight-heading a:hover { color: var(--ag-primary); }

/* ---------- Latest posts list ---------- */
.ag-post-row {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ag-line);
}
.ag-post-row .thumb { width: 150px; flex-shrink: 0; }
.ag-post-row .thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.ag-post-row .ag-card-title { font-size: 16px; margin-top: 6px; }
.ag-post-row .excerpt { font-size: 13px; color: var(--ag-muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn-ag {
  background: var(--ag-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 26px;
  border-radius: 4px;
  border: 0;
}
.btn-ag:hover { background: var(--ag-primary-dark); color: #fff; }

/* ---------- Breadcrumb ---------- */
.ag-breadcrumb { font-size: 12px; color: var(--ag-muted); padding: 14px 0; }
.ag-breadcrumb a { color: var(--ag-primary); }
.ag-breadcrumb span { color: var(--ag-muted); }

/* ---------- Page header (category) ---------- */
.ag-page-title { font-size: 38px; font-weight: 700; color: var(--ag-navy); }
.ag-page-sub { color: var(--ag-muted); font-size: 15px; }

/* ---------- Single blog ---------- */
.ag-article-title { font-size: 32px; font-weight: 700; color: var(--ag-navy); line-height: 1.25; }
.ag-article-lead { font-size: 17px; font-style: italic; color: #4a5562; margin: 16px 0; }
.ag-article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ag-muted); }
.ag-article-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ag-article-body p { margin-bottom: 18px; }
.ag-article-img { width: 100%; border-radius: 4px; margin: 8px 0 22px; }
.ag-pullquote {
  text-align: center;
  color: var(--ag-primary);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  margin: 30px auto;
  max-width: 640px;
}
.ag-share { display: flex; align-items: center; gap: 8px; }
.ag-share .lbl { font-size: 13px; font-weight: 600; color: var(--ag-muted); }
.ag-share a {
  width: 34px; height: 34px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.ag-share .fb { background: #1877f2; }
.ag-share .x  { background: #111; }
.ag-share .li { background: #0a66c2; }
.ag-share .wa { background: #25d366; }
.ag-share .ml { background: #6b7785; }

.ag-meta-tags a {
  display: inline-block;
  border: 1px solid var(--ag-line);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  margin: 0 6px 6px 0;
  color: var(--ag-muted);
}
.ag-prevnext {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--ag-line);
  border-bottom: 1px solid var(--ag-line);
  padding: 18px 0;
}
.ag-prevnext .lbl { font-size: 12px; color: var(--ag-muted); }
.ag-prevnext .t { font-size: 14px; font-weight: 700; color: var(--ag-navy); }

.ag-author-box {
  display: flex; gap: 16px;
  background: var(--ag-bg-soft);
  border-radius: 6px;
  padding: 20px;
}
.ag-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.ag-recent-comment { padding: 12px 0; border-bottom: 1px solid var(--ag-line); font-size: 13px; }
.ag-recent-comment .who { color: var(--ag-muted); }
.ag-recent-comment .on { color: var(--ag-primary); font-weight: 600; }

/* ---------- Footer ---------- */
.ag-footer {
  background: linear-gradient(135deg, var(--ag-footer-1), var(--ag-footer-2));
  color: #d7e0ee;
  padding: 46px 0 0;
  font-size: 13px;
}
.ag-footer h6 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px;
}
.ag-footer a { color: #cdd8ea; display: block; padding: 3px 0; }
.ag-footer a:hover { color: #fff; }
.ag-footer .brand-logo { height: 70px; margin-bottom: 14px; }
.ag-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 36px;
  padding: 16px 0;
  font-size: 12px;
  color: #b9c6db;
}
.ag-footer hr { border-color: rgba(255,255,255,.2); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ag-hero img { height: 300px; }
  .ag-hero h1 { font-size: 24px; }
  .ag-article-title { font-size: 26px; }
  .ag-page-title { font-size: 30px; }
}
@media (max-width: 575.98px) {
  .ag-post-row { flex-direction: column; }
  .ag-post-row .thumb { width: 100%; }
  .ag-post-row .thumb img { height: 180px; }
  .ag-hero h1 { font-size: 20px; }
}
