/* ================================================
   Blog Page & Blog Detail Page - External Styles
   blog.css
   ================================================ */

/* -----------------------------------------------
   Blog Card (Blog Listing Page)
   ----------------------------------------------- */
.ref-blog-card {
   background: #ffffff;
   border-radius: 14px;
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   max-width: 380px;
   cursor: pointer;
   border: 1px solid #f0f0f0;
}

.ref-blog-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ref-blog-card .card-img-wrap {
   overflow: hidden;
   width: 100%;
   height: 250px;
   position: relative;
}

.ref-blog-card .card-img-wrap img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform 0.5s ease;
}

.ref-blog-card:hover .card-img-wrap img {
   transform: scale(1.05);
}

.ref-blog-card .card-body-content {
   padding: 24px 22px 26px;
}

.ref-blog-card .card-title {
   font-size: 19px;
   font-weight: 700;
   color: #1e293b;
   line-height: 1.38;
   margin-bottom: 16px;
   font-family: inherit;
}

.ref-blog-card .read-more-link {
   color: #9f181e;
   font-weight: 600;
   font-size: 15px;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   text-decoration: none;
   transition: color 0.2s ease;
}

.ref-blog-card .read-more-link .arrow-icon {
   font-size: 18px;
   transition: transform 0.2s ease;
}

.ref-blog-card:hover .read-more-link .arrow-icon {
   transform: translateX(4px);
}

/* -----------------------------------------------
   Blog Detail View (inside blog.html)
   ----------------------------------------------- */
.blog-back-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: #f8fafc;
   color: #1e2229 !important;
   padding: 9px 20px;
   border-radius: 6px;
   font-weight: 600;
   font-size: 14px;
   border: 1px solid #e2e8f0;
   cursor: pointer;
   transition: all 0.2s ease;
   margin-bottom: 25px;
   text-decoration: none;
}

.blog-back-btn:hover {
   background: #e2e8f0;
   color: #9f181e !important;
}

/* -----------------------------------------------
   Social Share Buttons
   ----------------------------------------------- */
.social-share a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 42px;
   height: 42px;
   border-radius: 50%;
   color: #fff !important;
   font-size: 17px;
   margin-right: 10px;
   transition: transform 0.2s ease;
   text-decoration: none;
}

.social-share a:hover {
   transform: scale(1.1);
}

.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tg { background: #0088cc; }

/* -----------------------------------------------
   Blog Feature Image
   ----------------------------------------------- */
.blog-feature-img-wrap {
   border-radius: 12px;
   overflow: hidden;
   margin-bottom: 30px;
}

.blog-feature-img-wrap img {
   width: 100%;
   height: auto;
   display: block;
}

.blog-detail-feature-img-wrap {
   border-radius: 14px;
   overflow: hidden;
   margin-bottom: 30px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.blog-detail-feature-img-wrap img {
   width: 100%;
   height: auto;
   display: block;
}

/* -----------------------------------------------
   Blog Post Content Typography
   ----------------------------------------------- */
.blog-post-title {
   font-size: 32px;
   font-weight: 700;
   margin-bottom: 20px;
   color: #1e2229;
}

.blog-post-intro {
   font-size: 16px;
   line-height: 1.8;
   color: #555;
   margin-bottom: 20px;
}

.blog-step-heading {
   font-size: 20px;
   font-weight: 700;
   color: #c02b28;
   margin-top: 30px;
   margin-bottom: 10px;
}

.blog-step-heading-alt {
   font-size: 20px;
   font-weight: 700;
   color: #9f181e;
   margin-top: 32px;
   margin-bottom: 12px;
}

.blog-step-text {
   font-size: 16px;
   line-height: 1.8;
   color: #555;
   margin-bottom: 20px;
}

.blog-step-text-lg {
   font-size: 16px;
   line-height: 1.8;
   color: #555;
   margin-bottom: 22px;
}

/* -----------------------------------------------
   In-a-Nutshell Highlight Box
   ----------------------------------------------- */
.blog-highlight-box {
   background: #fdf5f5;
   border-left: 4px solid #c02b28;
   padding: 20px;
   border-radius: 4px;
   margin-bottom: 35px;
}

.blog-highlight-box h5 {
   color: #c02b28;
   font-weight: 700;
   margin-bottom: 8px;
}

.blog-highlight-box p {
   margin: 0;
   color: #555;
   line-height: 1.7;
}

.blog-highlight-box-alt {
   background: #fdf5f5;
   border-left: 4px solid #9f181e;
   padding: 22px;
   border-radius: 6px;
   margin-bottom: 35px;
}

.blog-highlight-box-alt h5 {
   color: #9f181e;
   font-weight: 700;
   margin-bottom: 8px;
}

.blog-highlight-box-alt p {
   margin: 0;
   color: #555;
   line-height: 1.7;
}

/* -----------------------------------------------
   Social Share Section Wrapper
   ----------------------------------------------- */

/* -----------------------------------------------
   Blog Detail Upper Content Container & Divider
   ----------------------------------------------- */
.blog_single_details_outer .single_content_upper {
   position: relative;
   padding-bottom: 15px;
   margin-bottom: 0;
   border-bottom: 1px solid #eee;
}

.social-share-section {
   padding-top: 20px;
   border-top: 1px solid #eee;
}

.social-share-title {
   font-size: 18px;
   font-weight: 700;
   margin-bottom: 15px;
   color: #1e2229;
}

.social-share-links {
   display: flex;
   gap: 12px;
}

.social-share-links a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   color: #fff !important;
   font-size: 18px;
   text-decoration: none;
   transition: transform 0.2s ease;
}

.social-share-links a:hover {
   transform: scale(1.1);
}

/* -----------------------------------------------
   Sidebar Widgets
   ----------------------------------------------- */
.blog-sidebar-wrap {
   padding-top: 30px;
}

.blog-widget-card {
   background: #f9fbfd;
   border: 1px solid #e1e8ed;
   border-radius: 12px;
   padding: 30px;
   margin-bottom: 30px;
}

.blog-widget-card h4 {
   font-size: 20px;
   font-weight: 700;
   margin-bottom: 15px;
   color: #1e2229;
}

.blog-widget-card p {
   color: #666;
   font-size: 14px;
   margin-bottom: 20px;
}

.blog-widget-card .theme-btn {
   display: block;
   text-align: center;
   width: 100%;
}

.blog-widget-packages {
   background: #fff;
   border: 1px solid #eee;
   border-radius: 12px;
   padding: 30px;
   margin-bottom: 30px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-widget-packages h4 {
   font-size: 20px;
   font-weight: 700;
   margin-bottom: 20px;
   color: #1e2229;
   border-bottom: 2px solid #9f181e;
   padding-bottom: 10px;
}

.blog-widget-packages ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.blog-widget-packages ul li {
   padding: 10px 0;
   border-bottom: 1px solid #f0f0f0;
}

.blog-widget-packages ul li:last-child {
   border-bottom: none;
   padding-bottom: 0;
}

.blog-widget-packages ul li a {
   color: #333;
   font-weight: 500;
}

.blog-detail-widget-packages h4 {
   border-bottom-color: #c02b28;
}

/* -----------------------------------------------
   Mobile Responsive - Media Queries
   ----------------------------------------------- */

@media (max-width: 991px) {
   .ref-blog-card {
      max-width: 100%;
   }

   .blog-feature-img-wrap,
   .blog-detail-feature-img-wrap {
      margin-bottom: 20px;
   }

   .blog-post-title {
      font-size: 26px;
   }

   .blog-step-heading,
   .blog-step-heading-alt {
      font-size: 18px;
   }

   .blog-sidebar-wrap {
      padding-top: 15px;
   }

   .blog-widget-card,
   .blog-widget-packages {
      padding: 20px;
   }
}

@media (max-width: 767px) {
   .ref-blog-card {
      max-width: 100%;
      margin: 0 auto 20px;
   }

   .ref-blog-card .card-img-wrap {
      height: 200px;
   }

   .ref-blog-card .card-body-content {
      padding: 16px 16px 20px;
   }

   .ref-blog-card .card-title {
      font-size: 16px;
   }

   .blog-post-title {
      font-size: 22px;
      margin-bottom: 14px;
   }

   .blog-step-heading,
   .blog-step-heading-alt {
      font-size: 17px;
      margin-top: 22px;
      margin-bottom: 8px;
   }

   .blog-step-text,
   .blog-step-text-lg,
   .blog-post-intro {
      font-size: 15px;
      line-height: 1.7;
      margin-bottom: 16px;
   }

   .blog-highlight-box,
   .blog-highlight-box-alt {
      padding: 16px;
      margin-bottom: 24px;
   }

   .social-share-links {
      gap: 8px;
   }

   .social-share-links a {
      width: 36px;
      height: 36px;
      font-size: 16px;
   }

   .social-share a {
      width: 36px;
      height: 36px;
      font-size: 15px;
   }

   .blog-sidebar-wrap {
      padding-top: 10px;
   }

   .blog-widget-card,
   .blog-widget-packages {
      padding: 16px;
      margin-bottom: 20px;
   }

   .blog-widget-card h4,
   .blog-widget-packages h4 {
      font-size: 17px;
   }

   .blog-back-btn {
      font-size: 13px;
      padding: 8px 16px;
      margin-bottom: 18px;
   }
}

@media (max-width: 480px) {
   .ref-blog-card .card-img-wrap {
      height: 170px;
   }

   .blog-post-title {
      font-size: 20px;
   }

   .social-share-section,
   .social-share {
      padding-top: 14px;
   }
}

.share-tw { background: #1da1f2; }

/* -----------------------------------------------
   Override theme utility spacing for blog pages on mobile
   ----------------------------------------------- */
@media (max-width: 991px) {
   /* Tightly control spacing after article before sidebar */
   .blog_single_details_outer .single_content_upper {
      padding-bottom: 12px !important;
      margin-bottom: 0 !important;
   }
   
   /* Completely remove the large 90px utility spacing before the sidebar on mobile */
   .blog_single_details_outer + .pd_bottom_90,
   #primary .pd_bottom_90,
   #blog-detail-view .pd_bottom_90,
   .col-lg-8 > .pd_bottom_90,
   .content-section .pd_bottom_90 {
      display: none !important;
      height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
   }
   
   /* Reduce top padding inside the blog detail content area */
   #primary .pd_top_90,
   #blog-detail-view .pd_top_90 {
      padding-top: 20px;
   }
   
   .blog-sidebar-wrap {
      padding-top: 10px !important;
      margin-top: 0 !important;
      padding-bottom: 30px;
   }

   .blog-sidebar-wrap .blog-widget-card:first-child {
      margin-top: 0 !important;
   }
}

@media (max-width: 767px) {
   .blog_single_details_outer .single_content_upper {
      padding-bottom: 8px !important;
      margin-bottom: 0 !important;
   }
   
   .blog_single_details_outer + .pd_bottom_90,
   #primary .pd_bottom_90,
   #blog-detail-view .pd_bottom_90,
   .col-lg-8 > .pd_bottom_90,
   .content-section .pd_bottom_90 {
      display: none !important;
      height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
   }
   
   #primary .pd_top_90,
   #blog-detail-view .pd_top_90 {
      padding-top: 15px;
   }
   
   .blog-sidebar-wrap {
      padding-top: 8px !important;
      margin-top: 0 !important;
   }
}


/* -----------------------------------------------
   Payments UI Floating Tab
   ----------------------------------------------- */
.btnn {
   left: 0 !important;
}


/* -----------------------------------------------
   Exact Dr Bailey Blog Detail Sidebar Styling
   ----------------------------------------------- */
.all_side_bar .widgets_grid_box {
   margin-bottom: 35px;
}

.all_side_bar .widgets_grid_box .widget-title {
   position: relative;
   font-size: 20px;
   font-weight: 700;
   color: #1e2229;
   padding-left: 35px;
   margin-bottom: 25px;
   line-height: 24px;
}

.all_side_bar .widgets_grid_box .widget-title:before {
   content: "";
   position: absolute;
   left: 0;
   width: 25px;
   height: 2px;
   background: #004b66;
   top: 50%;
}

.all_side_bar .widgets_grid_box .widget-title:after {
   content: "";
   position: absolute;
   left: 0;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: #004b66;
   top: calc(50% - 2px);
}

.all_side_bar .wp-block-tag-cloud {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
}

.all_side_bar .wp-block-tag-cloud a {
   position: relative;
   display: inline-block;
   padding: 8px 14px 8px 24px;
   font-size: 11px;
   font-weight: 700;
   color: #555;
   text-transform: uppercase;
   border: 1px solid #e2e8f0;
   border-radius: 6px;
   background: #fff;
   transition: all 0.3s ease;
}

.all_side_bar .wp-block-tag-cloud a::before {
   position: absolute;
   content: "#";
   left: 10px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 11px;
   color: #888;
}

.all_side_bar .wp-block-tag-cloud a:hover {
   color: #fff;
   background: #c02b28;
   border-color: #c02b28;
}

.all_side_bar .wp-block-tag-cloud a:hover::before {
   color: #fff;
}
