/**
 * Australian CDR Help - Blog Stylesheet (blog.css)
 * 100% matched with Website Primary Color Theme
 * Primary: #0ABAB5 (Teal) | Secondary: #56DFCF | Heading: #212529 | Font: Source_Code_Pro
 */

/* ==========================================================================
   1. HERO BANNERS (Listing & Single Post)
   ========================================================================== */
.blogHero,
.singleHero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
  background:
    radial-gradient(circle at 88% 12%, rgba(10, 186, 181, 0.16), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(86, 223, 207, 0.14), transparent 32%),
    linear-gradient(135deg, #f8fcfb 0%, #f1f9f8 50%, #f8fcfb 100%);
  border-bottom: 1px solid rgba(10, 186, 181, 0.22);
}

@media (max-width: 991px) {
  .blogHero,
  .singleHero {
    padding: 105px 0 45px;
  }
}

@media (max-width: 576px) {
  .blogHero,
  .singleHero {
    padding: 95px 0 35px;
  }
}

.blogHero h1 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--headingColor, #212529);
  margin-bottom: 15px;
  line-height: 1.3;
}

.blogHero h1 span {
  color: var(--primaryColor, #0ABAB5);
}

.blogHero p {
  color: var(--textColor, #696969);
  font-size: 1.1rem;
  max-width: 680px;
  line-height: 1.6;
  margin: 0 auto 25px auto;
  text-align: center;
}

.blogSearchWrap {
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(10, 186, 181, 0.12);
  border: 1px solid rgba(10, 186, 181, 0.25);
  align-items: center;
}

.blogSearchInput {
  border: 0 !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-size: 0.95rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.blogSearchBtn {
  background-color: var(--primaryColor, #0ABAB5) !important;
  border: 1px solid var(--primaryColor, #0ABAB5) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 28px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.blogSearchBtn:hover {
  background-color: #088c88 !important;
  border-color: #088c88 !important;
  color: #fff !important;
}

.blogSectionWrap {
  background-color: #f8fbfb;
  padding: 55px 0;
}

.relatedArticlesHeading {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-weight: 700;
  color: var(--headingColor, #212529);
  margin-bottom: 24px;
  border-left: 4px solid var(--primaryColor, #0ABAB5);
  padding-left: 14px;
  font-size: 1.45rem;
}

/* Single Post Hero */
.singleHero h1 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--headingColor, #212529);
  line-height: 1.35;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

@media (max-width: 991px) {
  .singleHero h1 {
    font-size: 1.95rem;
  }
}

@media (max-width: 576px) {
  .singleHero h1 {
    font-size: 1.55rem;
  }
}

/* Breadcrumbs */
.postBreadcrumb {
  font-size: 0.95rem;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  line-height: 1.5;
}

.postBreadcrumb a {
  color: var(--primaryColor, #0ABAB5);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.postBreadcrumb a:hover {
  color: #088c88;
  text-decoration: underline;
}

.postBreadcrumb .breadcrumb-sep {
  color: #94a3b8;
  font-size: 0.85rem;
}

.postBreadcrumb span.crumb-current {
  color: var(--headingColor, #212529);
  font-weight: 500;
}

/* Post Meta Bar (Hero) */
.postMetaBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 0.95rem;
  color: var(--textColor, #696969);
  line-height: 1.5;
}

.postMetaBar > span {
  display: inline-flex;
  align-items: center;
}

.postMetaBar i {
  color: var(--primaryColor, #0ABAB5);
  margin-right: 7px;
  font-size: 0.95rem;
}

.postBadgeCat {
  background: var(--primaryColor, #0ABAB5);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.postBadgeCat:hover {
  background: #088c88;
  color: #fff !important;
}


/* ==========================================================================
   2. BLOG LISTING CARDS
   ========================================================================== */
.blogCard {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(10, 186, 181, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2f0ee;
}

.blogCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(10, 186, 181, 0.18);
  border-color: var(--primaryColor, #0ABAB5);
}

.blogThumbWrap {
  position: relative;
  width: 100%;
  height: 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f8f7;
}

@media (max-width: 575.98px) {
  .blogThumbWrap {
    height: 200px;
    aspect-ratio: 16 / 9;
  }
}

.blogThumbWrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.blogThumbWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  background-color: #f1f8f7;
}

.blogCard:hover .blogThumbWrap img {
  transform: scale(1.05);
}

.blogCategoryBadge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primaryColor, #0ABAB5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(10, 186, 181, 0.3);
}

.blogCardBody {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blogMeta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.88rem;
  color: var(--textColor, #696969);
  margin-bottom: 12px;
}

.blogMeta i {
  color: var(--primaryColor, #0ABAB5);
  margin-right: 5px;
}

.blogTitle {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--headingColor, #212529);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blogTitle a {
  color: var(--headingColor, #212529);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blogTitle a:hover {
  color: var(--primaryColor, #0ABAB5);
}

.blogExcerpt {
  font-size: 0.95rem;
  color: var(--textColor, #696969);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blogCardFooter {
  padding-top: 15px;
  border-top: 1px solid #edf5f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.readMoreBtn {
  color: var(--primaryColor, #0ABAB5);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.readMoreBtn:hover {
  color: #088c88;
  gap: 10px;
}


/* ==========================================================================
   3. SIDEBAR & WIDGETS
   ========================================================================== */
.sidebarBox {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #e2f0ee;
  box-shadow: 0 4px 16px rgba(10, 186, 181, 0.05);
}

.sidebarTitle {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--headingColor, #212529);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primaryColor, #0ABAB5);
}

.searchWidget .form-control {
  border-radius: 50px 0 0 50px;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.searchWidget .form-control:focus {
  border-color: var(--primaryColor, #0ABAB5);
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.18);
}

.searchWidget .btn {
  border-radius: 0 50px 50px 0;
  background-color: var(--primaryColor, #0ABAB5);
  border-color: var(--primaryColor, #0ABAB5);
  color: #fff;
  padding: 10px 20px;
  transition: background 0.2s ease;
}

.searchWidget .btn:hover {
  background-color: #088c88;
  border-color: #088c88;
}

/* Category List in Sidebar */
.categoryList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categoryList li {
  margin-bottom: 10px;
}

.categoryList li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--textColor, #696969);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px dashed #e8f2f1;
  transition: all 0.2s ease;
}

.categoryList li a:hover,
.categoryList li a.active {
  color: var(--primaryColor, #0ABAB5);
  padding-left: 6px;
}

.categoryList li a span.catCount {
  background: #f1f8f7;
  color: var(--primaryColor, #0ABAB5);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Recent Posts Widget */
.recentPostItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f8f7;
}

.recentPostItem:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recentPostThumb {
  width: 72px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f8f7;
}

.recentPostThumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.recentPostThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  background-color: #f1f8f7;
}

.recentPostItem:hover .recentPostThumb img {
  transform: scale(1.06);
}

.recentPostInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.recentPostInfo h4 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recentPostInfo h4 a {
  color: var(--headingColor, #212529);
  text-decoration: none;
  transition: color 0.2s;
}

.recentPostInfo h4 a:hover {
  color: var(--primaryColor, #0ABAB5);
}

.recentPostDate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--textColor, #696969);
  line-height: 1.2;
}

.recentPostDate i {
  color: var(--primaryColor, #0ABAB5);
  font-size: 0.8rem;
}

/* Tag Cloud */
.tagCloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagPill {
  font-size: 0.85rem;
  background: #f1f8f7;
  color: var(--headingColor, #212529);
  border: 1px solid rgba(10, 186, 181, 0.2);
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tagPill:hover {
  background: var(--primaryColor, #0ABAB5);
  border-color: var(--primaryColor, #0ABAB5);
  color: #fff;
}

/* Sidebar Consultation CTA Box */
.ctaSidebar {
  background: linear-gradient(135deg, #0ABAB5 0%, #088c88 100%);
  color: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(10, 186, 181, 0.25);
}

.ctaSidebar h4 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.ctaSidebar p {
  font-size: 0.95rem;
  color: #e2f7f5;
  margin-bottom: 22px;
  line-height: 1.6;
}

.ctaSidebar .btn-cta {
  background: #ffffff;
  color: #088c88;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ctaSidebar .btn-cta:hover {
  background: #f1f9f8;
  color: #066764;
  transform: translateY(-2px);
}


/* ==========================================================================
   4. PAGINATION
   ========================================================================== */
.blogPagination .page-link {
  color: var(--headingColor, #212529);
  border-radius: 8px;
  margin: 0 4px;
  font-weight: 600;
  border: 1px solid #d8e8e6;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.blogPagination .page-link:hover {
  background-color: rgba(10, 186, 181, 0.12);
  border-color: var(--primaryColor, #0ABAB5);
  color: var(--primaryColor, #0ABAB5);
}

.blogPagination .page-item.active .page-link {
  background-color: var(--primaryColor, #0ABAB5);
  border-color: var(--primaryColor, #0ABAB5);
  color: #fff;
}


/* ==========================================================================
   5. SINGLE POST CONTENT & STYLING
   ========================================================================== */
.postFeaturedImgWrap {
  margin-top: -30px;
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 186, 181, 0.12);
  background: #fff;
  border: 1px solid #e2f0ee;
}

.postFeaturedImgWrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.articleContent {
  background: #ffffff;
  padding: 40px 45px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 20px rgba(10, 186, 181, 0.05);
  border: 1px solid #e2f0ee;
  color: #2d3748;
  font-size: 1.05rem;
  line-height: 1.85;
}

@media (max-width: 767px) {
  .articleContent {
    padding: 25px 20px;
  }
}

.articleContent h2 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--headingColor, #212529);
  margin-top: 35px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primaryColor, #0ABAB5);
  padding-bottom: 8px;
  display: inline-block;
}

.articleContent h3 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--headingColor, #212529);
  margin-top: 28px;
  margin-bottom: 14px;
}

.articleContent p {
  margin-bottom: 20px;
  color: #374151;
}

.articleContent a {
  color: var(--primaryColor, #0ABAB5);
  text-decoration: underline;
  font-weight: 600;
}

.articleContent a:hover {
  color: #088c88;
}

.articleContent ul,
.articleContent ol {
  margin-bottom: 22px;
  padding-left: 25px;
}

.articleContent li {
  margin-bottom: 8px;
}

.articleContent blockquote {
  border-left: 4px solid var(--primaryColor, #0ABAB5);
  padding: 14px 22px;
  background: #f4faf9;
  font-style: italic;
  margin: 25px 0;
  color: #374151;
  border-radius: 0 8px 8px 0;
}

.postTagsWrap {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid #eef6f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.postTagsWrap a.badge {
  background: #f1f8f7 !important;
  color: var(--headingColor, #212529) !important;
  border: 1px solid rgba(10, 186, 181, 0.25) !important;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.postTagsWrap a.badge:hover {
  background: var(--primaryColor, #0ABAB5) !important;
  border-color: var(--primaryColor, #0ABAB5) !important;
  color: #fff !important;
}

/* Social Share Box */
.shareBox {
  margin-top: 30px;
  padding: 20px 24px;
  background: #f4faf9;
  border-radius: 10px;
  border: 1px solid #e2f0ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.shareLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  margin-left: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.shareLinks a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.share-wa { background: #25d366; }
.share-li { background: #0077b5; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }

/* Article Consultation Banner */
.consultationArticleCard {
  background: linear-gradient(135deg, #0ABAB5 0%, #088c88 100%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 186, 181, 0.25);
  padding: 35px 28px;
  margin-top: 45px;
  text-align: center;
  color: #fff;
}

.consultationArticleCard h3 {
  font-family: var(--bodyFont, "Source_Code_Pro"), sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.consultationArticleCard p {
  color: #e2f7f5;
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.consultationArticleCard .btn-consult {
  background: #ffffff;
  color: #088c88;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.consultationArticleCard .btn-consult:hover {
  background: #f1f9f8;
  color: #066764;
  transform: translateY(-2px);
}

/* Related Articles in Single Post */
.relatedArticleCard {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2f0ee;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(10, 186, 181, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.relatedArticleCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 186, 181, 0.15);
  border-color: var(--primaryColor, #0ABAB5);
}

.relatedArticleCard .card-title a {
  color: var(--headingColor, #212529);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.98rem;
  line-height: 1.4;
  display: block;
}

.relatedArticleCard:hover .card-title a {
  color: var(--primaryColor, #0ABAB5);
}
