/* ============================================
   🎨 BLOGS.CSS — FINAL CLEAN VERSION
============================================ */

/* MAIN */
.blog-header {
  min-height: -70px;
}

/* ARTICLE */
.blog-post {
  background: #fff;
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 60px;
}

/* HEADINGS */
.blog-post h1 {
  font-size: 2.5em;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
}

.blog-post h2 {
  font-size: 1.7em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}

.blog-post h3 {
  font-size: 1.3em;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* TEXT */
.blog-post p {
  margin-bottom: 20px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* META */
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.post-meta span {
  background: rgba(15, 81, 50, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
}

/* AUTHOR */
.author-info {
  background: rgba(15, 81, 50, 0.05);
  padding: 25px;
  border-radius: var(--radius-md);
  margin: 40px 0;
  display: flex;
  gap: 20px;
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TABLE */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.blog-table th,
.blog-table td {
  padding: 12px;
  border: 1px solid #ddd;
}

/* LISTS */
.blog-post ul,
.blog-post ol {
  margin: 20px 0;
  padding-right: 20px;
}

.blog-post li {
  margin: 10px 0;
}

/* IMAGES */
.blog-post img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 30px 0;
}

/* RELATED POSTS */
/* RELATED POSTS */
.related-posts {
  margin-top: 60px;
}

/* Desktop */

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Tablet */
@media (max-width: 1024px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.related-post-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}
.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.related-post-card:hover {
  transform: translateY(-5px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
/*.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}*/

/* ============================================
   BLOG HERO — PRO VERSION
============================================ */

.blog-header {
  position: relative;
  min-height: 55vh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #fff;

  background: url("/images/travel-hero.webp") center/cover no-repeat;
  overflow: hidden;
}

/* Overlay */
.blog-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 81, 50, 0.85),
    rgba(0, 0, 0, 0.6)
  );
}

/* CONTENT */
.blog-header .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* TITLE */
.blog-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* SUBTITLE */
.blog-header p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}
/* ============================================
   BLOG CATEGORIES
============================================ */

/* ============================================
   BLOG CONTENT LAYOUT — SAAS
============================================ */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* spacing بين العناصر */
.container > * {
  margin-bottom: 25px;
}
.breadcrumb {
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb span {
  opacity: 0.6;
}
/* wrapper */
.blog-search,
.blog-categories {
  width: 100%;
}

/* نجمعهم */
.blog-search {
  display: flex;
  gap: 10px;
}

/* input */
.blog-search input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

/* زر */
#blog-search-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
}
.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
}

.category-btn.active {
  background: var(--primary);
  color: #fff;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.no-results {
  text-align: center;
  padding: 40px;
  display: none;
}

.no-results.active {
  display: block;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.breadcrumb {
  margin-bottom: 20px;
}
.post-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.post-footer {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.post-footer .btn {
  flex: 1;
}
/* ========================================
   SHARE BUTTONS — MODERN STYLE
======================================== */

.share-buttons {
  margin-top: 50px;
  padding: 25px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.share-buttons p {
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

/* row */
.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* buttons */
.share-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

/* colors */
.share-btn-facebook {
  background: #1877f2;
  color: #fff;
}

.share-btn-twitter {
  background: #000;
  color: #fff;
}

.share-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-btn-copy {
  background: #f5f5f5;
  color: #333;
}

/* hover */
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.blog-card-image {
  height: 160px;
  background: linear-gradient(135deg, #f5f7fa, #e4e9f2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.blog-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.blog-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.blog-card-category {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media (max-width: 480px) {
  .blog-card-title {
    font-size: 16px;
  }

  .blog-card-excerpt {
    font-size: 13px;
  }

  .blog-card-image {
    height: 140px;
  }
}
@media (min-width: 1400px) {
  .articles-grid {
    gap: 30px;
  }
}

.toc-h3 {
  padding-right: 18px;
  font-size: 0.92em;
  opacity: 0.85;
}
