/* Dynamic blog cards, newsletter banner, post page typography. Matches the existing theme colours. */
.bx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bx-card { background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.bx-card:hover { transform: translateY(-4px); box-shadow: 0 8px 36px rgba(0,0,0,.14); }
.bx-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f3f5f9; }
.bx-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.bx-card:hover .bx-cover img { transform: scale(1.05); }
.bx-cover-empty { display: flex; align-items: center; justify-content: center; color: #ff517e; font-size: 44px; background: linear-gradient(135deg, #fff4ee, #eefbfd); }
.bx-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.bx-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bx-date { color: #556d91; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.bx-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: #f3f5f9; color: #556d91; white-space: nowrap; }
.bx-badge i { margin-right: 4px; }
.bx-badge-li { background: #e8f1fb; color: #0a66c2; }
.bx-badge-art { background: #fff1ec; color: #ff754a; }
.bx-title { font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
.bx-title a { color: #222; text-transform: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bx-title a:hover { color: #ff517e; }
.bx-excerpt { color: #666; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bx-body .readmore_btn { margin-top: auto; }
.bx-empty { text-align: center; color: #777; padding: 40px 0; grid-column: 1 / -1; }
.bx-actions { text-align: center; margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.bx-newsletter { margin: 0 0 40px; padding: 28px 32px; border-radius: 6px; background: linear-gradient(120deg, #0e0f21, #1b2a52); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bx-newsletter h3 { color: #fff; margin: 6px 0 4px; font-size: 24px; }
.bx-newsletter p { color: #c9d2ea; margin: 0; max-width: 560px; }
.bx-nl-kicker { color: #7cc0ff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.bx-nl-kicker i { margin-right: 6px; }

/* Blog list page */
.bx-page { padding: 80px 0; }
.bx-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 36px; }
.bx-filters button { border: 1px solid #e3e6ee; background: #fff; border-radius: 22px; padding: 7px 18px; font-weight: 600; color: #556d91; cursor: pointer; transition: all .2s; font-family: inherit; }
.bx-filters button.active, .bx-filters button:hover { background: #ff517e; border-color: #ff517e; color: #fff; }

/* Single post */
.bx-post { padding: 80px 0; }
.bx-post-wrap { max-width: 820px; margin: 0 auto; }
.bx-post-cover { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 30px; }
.bx-post-title { font-size: 38px; line-height: 1.25; margin: 10px 0 14px; color: #222; }
.bx-post-meta { color: #556d91; font-weight: 600; margin-bottom: 28px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bx-prose { font-size: 18px; line-height: 1.8; color: #444; }
.bx-prose h2, .bx-prose h3, .bx-prose h4 { color: #222; margin: 34px 0 12px; line-height: 1.3; }
.bx-prose p { margin: 0 0 20px; }
.bx-prose img { max-width: 100%; height: auto; margin: 10px 0 22px; }
.bx-prose a { color: #ff517e; text-decoration: underline; }
.bx-prose blockquote { border-left: 4px solid #ff754a; padding: 8px 0 8px 22px; margin: 26px 0; font-style: italic; color: #222; background: transparent; }
.bx-prose ul, .bx-prose ol { margin: 0 0 20px 22px; padding: 0; }
.bx-prose li { margin-bottom: 6px; list-style: inherit; }
.bx-prose ul { list-style: disc; } .bx-prose ol { list-style: decimal; }
.bx-prose pre { background: #0e0f21; color: #e8ecf8; padding: 16px; border-radius: 6px; overflow: auto; font-size: 15px; }
.bx-prose code { background: #f3f5f9; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.bx-prose pre code { background: none; padding: 0; }
.bx-prose hr { margin: 34px 0; border-color: #e3e6ee; }
.bx-tags { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; }
.bx-tags span { background: #f3f5f9; color: #556d91; padding: 5px 12px; border-radius: 16px; font-size: 14px; }
.bx-back { display: inline-block; margin-bottom: 18px; color: #ff754a; font-weight: 600; }

/* Skills + community blocks on the home page */
.bx-skills { padding: 80px 0 0; }
.bx-skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bx-skill-box { background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.08); padding: 30px; }
.bx-skill-box h3 { font-size: 20px; margin: 0 0 16px; color: #222; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chips span { background: #f3f5f9; color: #333; padding: 6px 14px; border-radius: 18px; font-size: 15px; font-weight: 500; }
.bx-skill-box:nth-child(1) h3 { border-left: 4px solid #ffc454; padding-left: 12px; }
.bx-skill-box:nth-child(2) h3 { border-left: 4px solid #ff517e; padding-left: 12px; }
.bx-skill-box:nth-child(3) h3 { border-left: 4px solid #00c8da; padding-left: 12px; }

@media (max-width: 991px) {
  .bx-grid, .bx-skill-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bx-grid, .bx-skill-groups { grid-template-columns: 1fr; }
  .bx-post-title { font-size: 28px; }
  .bx-newsletter { padding: 22px; }
}

/* a little breathing room between About paragraphs */
.right_section .about_deatils ~ p { margin-top: 14px; }

/* The template's fixed 120px sidebar overlapped the lower sections on ~1280px screens; keep them clear of it */
@media (min-width: 768px) {
  .port_experience_setions, .port_services_setions, .port_skills_setions, .port_blog_setions,
  .port_responsor_setions, .port_contact_wrapper, .port_map_setions, .port_footer_setions { padding-left: 120px; }
}
.port_sec_warapper .port_footer_setions { padding-left: 0; } /* inner pages already sit inside the offset wrapper */
