/* ==========================================================
   Shared blog sidebar (blog-sidebar.php) — used on blog.php and blog-details.php.
   Scoped to .cg-side so it overrides the older .blog-sidebar rules in blog.css.
   Brand: navy #1e3c62/#14294a · teal #03716f · orange #f6961a · gold #efb935
   ========================================================== */
.cg-side { margin: 0; text-align: left; }
.cg-side p { padding: 0 !important; text-align: left !important; }   /* style.css centres and pads .blog-wrap p */
.cg-side .widget { margin: 0 0 24px; padding: 24px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(30,60,98,.08); }
.cg-side .widget-title { position: relative; margin: 0 0 18px; padding: 0 0 0 14px; border: 0; font-size: 16px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #1e3c62; }
.cg-side .widget-title:after { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; height: auto; border-radius: 4px; background: #f6961a; }

/* Search */
.cg-side-search { position: relative; display: -webkit-flex; display: flex; padding: 4px; border-radius: 30px; border: 1px solid #e3e9ef; background: #f7f9fb; transition: border-color .2s, box-shadow .2s; }
.cg-side-search:focus-within { border-color: #f6961a; box-shadow: 0 0 0 4px rgba(246,150,26,.15); background: #fff; }
.cg-side-search input { -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px; border: 0; background: transparent; font-size: 14px; color: #1e3c62; outline: 0; }
.cg-side-search button { -webkit-flex: 0 0 40px; flex: 0 0 40px; height: 40px; border: 0; border-radius: 50%; background: #f6961a; color: #fff; transition: background .2s; }
.cg-side-search button:hover, .cg-side-search button:focus { background: #1e3c62; }

/* Recent posts */
.cg-side .recent-posts { margin: 0; padding: 0; list-style: none; }
.cg-side .recent-posts li { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: auto; margin: 0 !important; padding: 12px 0; border-bottom: 1px dashed #e3e9ef; }
.cg-side .recent-posts li:first-child { padding-top: 0; }
.cg-side .recent-posts li:last-child { padding-bottom: 0; border-bottom: 0; }
.cg-side .recent-posts .thumb { position: relative; display: block; -webkit-flex: 0 0 64px; flex: 0 0 64px; width: 64px; height: 64px; margin-right: 14px; overflow: hidden; border-radius: 12px; background: #eef3f7; }
.cg-side .recent-posts .thumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: -webkit-transform .4s, transform .4s; }
.cg-side .recent-posts .thumb-none { background: linear-gradient(135deg, #1e3c62, #03716f); text-align: center; line-height: 64px; color: rgba(255,255,255,.45); font-size: 22px; }
.cg-side .recent-posts li:hover .thumb img { -webkit-transform: scale(1.1); transform: scale(1.1); }
.cg-side .recent-posts .info { display: block; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.cg-side .recent-posts .info a { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: #1e3c62; }
.cg-side .recent-posts .info a:hover { color: #03716f; text-decoration: none; }
.cg-side .recent-posts small { font-size: 12px; color: #7a8a9c; }
.cg-side .recent-posts small i { color: #03716f; }

/* Explore services */
.cg-side-topics ul { margin: 0; padding: 0; list-style: none; }
.cg-side-topics li + li { margin-top: 8px; }
.cg-side-topics a { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 11px 14px; border-radius: 10px; background: #f4f8fa; color: #1e3c62; font-weight: 700; font-size: 14px; transition: all .2s; }
.cg-side-topics a > i:first-child { width: 30px; height: 30px; line-height: 30px; margin-right: 12px; border-radius: 8px; text-align: center; background: #fff; color: #03716f; }
.cg-side-topics a > i:last-child { margin-left: auto; color: #f6961a; transition: -webkit-transform .2s, transform .2s; }
.cg-side-topics a:hover, .cg-side-topics a:focus { background: #1e3c62; color: #fff; text-decoration: none; }
.cg-side-topics a:hover > i:last-child { -webkit-transform: translateX(4px); transform: translateX(4px); }

/* Call to action */
.cg-side-cta { position: relative; overflow: hidden; padding: 28px 24px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, #1e3c62 0%, #14294a 60%, #03716f 130%); box-shadow: 0 16px 36px rgba(20,41,74,.25); }
.cg-side-cta:before { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(246,150,26,.2); }
.cg-side-cta > * { position: relative; }
.cg-side-cta-ico { display: inline-block; width: 50px; height: 50px; line-height: 50px; margin-bottom: 14px; border-radius: 14px; text-align: center; font-size: 22px; color: #14294a; background: #efb935; }
.cg-side-cta h4 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #fff; }
.cg-side-cta p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: #c7d4e2; }
.cg-side-btn { display: inline-block; padding: 12px 24px; border-radius: 30px; background: #f6961a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.cg-side-btn i { margin-left: 6px; }
.cg-side-btn:hover, .cg-side-btn:focus { background: #e0830b; color: #fff; text-decoration: none; }

/* Desktop: the sidebar column stretches to the post column and the sidebar follows while scrolling,
   so it starts level with the first post and finishes level with the last one.
   The page's row needs the class "cg-side-row" (blog.php uses its own flex row). */
@media (min-width: 992px) {
  .cg-side-row { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; }
  .cg-side-row:before, .cg-side-row:after { display: none; }
  .cg-side { position: -webkit-sticky; position: sticky; top: 84px; }
}
@media (max-width: 991px) { .cg-side { margin-top: 30px; } }
