/*
 Theme Name:   Astra Child
 Theme URI:    https://yourwebsite.com/
 Description:  A child theme of Astra.
 Author:       Your Name
 Author URI:   https://yourwebsite.com/
 Template:     astra
 Version:      1.0.8
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* You can add your custom CSS below */

/* Base container */
.blog-magazine-section {
  display: flex;
  gap: 40px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Shared styles for content boxes */
.bms-left,
.bms-right {
  background: #fff;
  padding: 30px 24px 30px 0;
  border-radius: 12px;
}

/* Flex sizes */
.bms-left {
  flex: 4;
}

.bms-right {
  flex: 1;
}

/* Headings */
.bms-left h3,
.bms-right h3 {
  font-family: "League Gothic", sans-serif;
  font-size: 30px;
  line-height: 36px;
  color: rgb(41, 37, 36);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1.5px;
  margin-top: 0;
}

/* Custom green gradient line under headings */
.bms-left h3+hr,
.bms-right h3+hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, #1a9168 0%, #20c997 100%);
  margin: 8px 0 24px 0;
}

/* Link styles */
/* .bms-left h4 a,
.bms-left h5 a,
.bms-right h6 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.45px;
    font-weight: 500;
    font-size: 18px;
    font-family: akshar, Segoe UI, Helvetica Neue, Helvetica, Roboto, sans-serif;
    line-height: 22.5px;
} */



/* Featured image section */
.bms-featured {
  margin-top: 32px;
}

.bms-featured img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  height: 430px;
  object-fit: cover;
}

/* Category link */
.bms-cat a {
  color: #1D3557;
  font-family: "Akshar", Sans-serif;
  font-size: 14px;
  line-height: 14px;
  text-transform: uppercase;
  /* font-weight: bold; */
  text-decoration: none;
}


/* Meta info */
.bms-author,
.bms-date {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}

.bms-date {
  font-size: 0.85em;
  color: #888;
}

/* Rows and columns */
.bms-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.bms-col {
  flex: 1;
}

.bms-col img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  height: 260px;
  object-fit: cover;
}

.bms-col h5 {
  font-size: 1.1em;
  color: #222;
}

/* Latest item styles */
.bms-right .bms-latest-item:first-of-type {
  margin-top: 32px;
  padding-top: 0;
}

.bms-right .bms-latest-item:last-of-type {
  border-bottom: none;
}

.bms-latest-item {
  border-bottom: 1px solid #e0e0e0;
  /* light gray line */
  display: flex;
  gap: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
  align-items: flex-start;
}

.bms-latest-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  align-self: center;
}

.bms-latest-item h6 {
  margin: 0 0 4px;
  font-size: 1em;
}

/* Css for second shortcode */
/* === Category Posts Grid Shortcode Styles === */
.cat-posts-grid-wrapper {
  display: flex;
  gap: 32px;
  /* margin: 40px 0; */
  font-family: Arial, Helvetica, sans-serif;
}

.cat-posts-grid-featured {
  flex: 2;
  background: #fff;
  border-radius: 12px;
  padding: 24px 24px 24px 0px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cat-posts-grid-featured a {
  width: 100%;
}


.cat-posts-grid-featured img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  height: 430px;
  object-fit: cover;
}

.cat-posts-grid-meta {
  margin-top: 8px;
}

.cat-posts-grid-category a {
  color: #1D3557;
  font-size: 0.95em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

/* .cat-posts-grid-title a{
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #222;
    font-weight: bold;
  } */

.cat-posts-grid-author {
  font-size: 0.95em;
  color: #666;
}

.cat-posts-grid-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cat-posts-grid-side-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  align-items: flex-start;
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.03); */
}

.cat-posts-grid-side-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cat-posts-grid-side-meta {
  flex: 1;
}

.cat-posts-grid-side-category {
  color: #1D3557;
  font-size: 14px;
  font-family: "Akshar", Sans-serif;
  /* font-weight: bold; */
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
  line-height: 14px;
}

/* .cat-posts-grid-side-title{
    line-height: 20px;
  } */

.cat-posts-grid-side-title a {
  font-size: 16px;
  margin: 0 0 4px 0;
  color: #222;
  font-weight: 500;
  line-height: 1.25;
}

.cat-posts-grid-side-author {
  font-size: 0.9em;
  color: #666;
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 1024px) {

  /* Blog Magazine Section */
  .blog-magazine-section {
    flex-direction: column;
    gap: 24px;
  }

  .bms-left,
  .bms-right {
    padding: 20px 12px 20px 0;
  }

  .bms-row {
    flex-direction: column;
    gap: 12px;
  }

  .bms-col {
    margin-bottom: 12px;
  }

  .bms-featured img,
  .bms-col img {
    max-width: 100%;
    height: auto;
  }

  .bms-right .bms-latest-item img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {

  /* Blog Magazine Section */
  .blog-magazine-section {
    gap: 12px;
  }

  .bms-left,
  .bms-right {
    padding: 12px 4px 12px 0;
    border-radius: 8px;
  }

  /* .bms-left h3, .bms-right h3 {
    font-size: 22px;
    line-height: 28px;
  } */
  .bms-featured img,
  .bms-col img {
    border-radius: 8px;
  }

  .bms-right .bms-latest-item {
    gap: 8px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .bms-right .bms-latest-item img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  /* Category Posts Grid Shortcode */
  .cat-posts-grid-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .cat-posts-grid-featured {
    padding: 12px 8px 12px 0px;
    border-radius: 8px;
  }

  .cat-posts-grid-featured img {
    border-radius: 8px;
  }

  /* .cat-posts-grid-title a {
    font-size: 16px;
  } */
  .cat-posts-grid-side {
    gap: 10px;
  }

  .cat-posts-grid-side-item {
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
  }

  .cat-posts-grid-side-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
  }
}

/* === Category Posts Grid Shortcode Hover Effects === */



/* Improved single-post.php styles */

.single-blog-page-wrapper {
  display: flex;
  gap: 2rem;
  /* max-width: 1316px; */
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
}

.main-content {
  flex: 3;
}

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.post-card {
  /* background: #fff; */
  border-radius: 12px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  padding: 0rem;
  margin-bottom: 2rem;
  max-width: 1316px;
}

.post-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.meta {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-image img {
  border-radius: 10px;
  width: 100%;
  margin-bottom: 1.5rem;
  height: 500px;
  object-fit: cover;
}

.post-content {
  font-size: 16px;
  line-height: 32px;
  margin-bottom: 2.5rem;
  color: rgb(0, 0, 0);
  font-family: "Inter", Sans-serif;
}

.related-articles-card {
  margin-top: 3rem;
}

.related-articles-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.related-article-item {
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  width: 22%;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.related-article-item:hover {
  box-shadow: 0 4px 16px rgba(0, 128, 0, 0.10);
  transform: translateY(-4px) scale(1.03);
}

.related-article-item img {
  width: 100%;
  border-radius: 8px 8px 0 0;
  height: 113px;
  object-fit: cover;
}

.related-title {
  font-size: 1rem;
  margin: 0.5rem 0 0.5rem 0.5rem;
  color: #222;
}

.related-date {
  font-size: 0.85rem;
  color: #888;
  margin-left: 0.5rem;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.newsletter-box {
  border: 1.5px dashed #008000;
  text-align: center;
  background: #f8fff8;
}

.newsletter-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.newsletter-desc {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-bottom: 0.5rem;
}

.newsletter-input {
  padding: 0.5rem;
  width: 70%;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}

.newsletter-btn {
  padding: 0.5rem 1.2rem;
  background: #008000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover {
  background: #005c00;
}

.newsletter-privacy {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

.latest-posts {
  background: #fff;
}

.latest-list {
  list-style: none;
  padding: 0;
}

.latest-item {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.latest-link {
  font-size: 0.98rem;
  color: #008000;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.latest-link:hover {
  text-decoration: underline;
}

.comments-section-card {
  margin-top: 3rem;
  background: #fafafa;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Comments styling (WordPress default classes) */
.comment {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.comment:nth-child(even) {
  background: #f4f4f4;
}

.comment-author {
  font-weight: bold;
  color: #008000;
}

.comment-meta {
  font-size: 0.9rem;
  color: #888;
}

/* Responsive design */
@media (max-width: 900px) {

  .featured-image img {
    height: 350px;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .improved-layout {
    padding: 0 !important;
  }

  .single-blog-page-wrapper {
    flex-direction: column-reverse;
    padding: 0.78rem;
  }

  .latest-posts-enhanced {
    border: none !important;
  }

  .main-content,
  .sidebar {
    width: 100%;
    padding: 0;
  }

  .related-articles-list {
    flex-direction: column;
    gap: 1rem;
    margin-top: 10px;
  }

  .related-article-item {
    width: 100%;
  }
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
}

/* Enhanced Author Box Styles */
.enhanced-author-box {
  border: 2px solid #457B9D;
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.author-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  border: 2px solid #457B9D;
  padding: 0.3rem 1.2rem;
}

.author-icon {
  font-size: 1.3rem;
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.author-icon:hover {
  color: #122642;
}

.author-info-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.enhanced-author-box .avatar {
  border-radius: 50%;
  border: 2.5px solid #1D3557;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.author-name-role {
  margin-bottom: 0.5rem;
}

.author-name-highlight {
  color: #000000;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration-color: #d3eeff;
  text-decoration-line: underline;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: .5rem;
  text-underline-offset: -.25rem;
}

.author-role {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #222;
}

.author-desc {
  font-size: 1.05rem;
  color: #222;
  margin: 0.5rem 0 1rem 0;
}

.author-bio-link {
  color: #1D3557;
  font-weight: bold;
  text-decoration: underline;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.author-bio-link:hover {
  color: #122642;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .enhanced-author-box {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    justify-content: center;
  }

  .author-social-icons {
    top: -18px;
    padding: 0.2rem 0.7rem;
  }

  .enhanced-author-box .avatar {
    width: 90px;
    height: 90px;
  }
}



/* Wide Newsletter Section Styles */
.newsletter-box-wide {
  display: flex;
  align-items: center;
  border-top: 2px dashed #222;
  border-bottom: 2px dashed #222;
  border-radius: 10px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  background: #fff;
  gap: 2.5rem;
}

.newsletter-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 240px;
  flex: 1;
}

.newsletter-left .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2.5px solid #457B9D;
  margin-bottom: 1rem;
}

.newsletter-author-name {
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-bottom: 0.2rem;
  margin-top: 0.5rem;
  text-decoration-color: #d3eeff;
  text-decoration-line: underline;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: .5rem;
  text-underline-offset: -.25rem;
}

.newsletter-author-role {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #222;
  margin-bottom: 0.5rem;
}

.newsletter-right {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.newsletter-title-wide {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-bottom: 0.7rem;
}

.newsletter-desc-wide {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.newsletter-desc-wide strong {
  font-weight: bold;
  color: #222;
}

.newsletter-form-wide {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.7rem;
}

.newsletter-input-wide {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #222;
  border-radius: 7px;
  outline: none;
  transition: border 0.2s;
}

.newsletter-input-wide:focus {
  border: 2px solid #008000;
}

.newsletter-btn-wide {
  padding: 13px 31px;
  font-size: 1.1rem;
  background: #1D3557;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn-wide:hover {
  background: #122642;
}

.newsletter-privacy-wide {
  font-size: 0.98rem;
  color: #222;
  margin-top: 0.2rem;
}

.newsletter-privacy-wide a {
  color: #1D3557;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .newsletter-box-wide {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.5rem;
    gap: 1.2rem;
  }

  .newsletter-left {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 1.2rem;
  }

  .newsletter-right {
    align-items: flex-start;
    width: 100%;
  }

  .newsletter-title-wide {
    font-size: 1.3rem;
  }

  .newsletter-author-name {
    font-size: 1.1rem;
  }
}

/* Enhanced Latest Posts Section */
.latest-posts-enhanced {
  padding: 1.5rem 1rem 1rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

.latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #1D3557;
  margin-bottom: 1.2rem;
  padding-bottom: 0.2rem;
}

.latest-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #222;
  margin: 0;
  font-family: 'Akshar';
}


.latest-see-more {
  color: #1D3557;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.latest-see-more:hover {
  color: #122642;
  text-decoration: underline;
}

.latest-list-enhanced {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-item-enhanced {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.7rem 0;
}

.latest-info {
  flex: 1;
  min-width: 0;
}

.latest-category {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #457b9d;
  font-weight: bold;
  margin-bottom: 0.2rem;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-category-icon {
  font-size: 1.1rem;
  margin-right: 0.2rem;
}

.latest-link-enhanced {
  display: block;
  font-size: 1.08rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1.2;
  transition: color 0.2s;
}



.latest-date {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  color: #222;
  gap: 0.3rem;
}

.latest-date-icon {
  font-size: 1.1rem;
  color: #888;
}

.latest-thumb {
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  margin-left: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
}

.latest-divider {
  border-bottom: 2px solid #1D3557;
  margin: 0.2rem 0 0.2rem 0;
  width: 100%;
  height: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .latest-posts-enhanced {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
  }

  .latest-item-enhanced {
    flex-direction: column;
    gap: 0.5rem;
  }

  .latest-thumb {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Custom Comments Section Styles */
.custom-comments-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.comments-header-main {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
}

.comments-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.comments-count {
  font-size: 1.05rem;
  color: #888;
  font-weight: 500;
}

.comments-viewing {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  color: #008000;
  font-weight: 500;
}

.comments-viewing-icon {
  font-size: 1.1rem;
}

.comments-divider {
  border: none;
  border-top: 1.5px solid #ddd;
  margin: 0.5rem 0 1rem 0;
}

.comments-intro {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 0.7rem;
}

.comments-policy-link {
  color: #008000;
  text-decoration: underline;
}

.comments-login-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: #008000;
  margin-bottom: 1rem;
}

.comments-bell {
  font-size: 1.1rem;
  color: #008000;
}

.comments-login-link,
.comments-signup-link {
  color: #008000;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  transition: text-decoration 0.2s;
}

.comments-login-link:hover,
.comments-signup-link:hover {
  text-decoration: underline;
}

.comments-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
}

.comments-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.08rem;
  color: #222;
  outline: none;
}

.comments-input::placeholder {
  color: #888;
  font-size: 1.08rem;
}

.comments-input-icon {
  font-size: 1.1rem;
  color: #888;
  margin-left: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0 0.2rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.comments-input-icon:hover {
  background: #eee;
}

.wp-comments-list-wrapper {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .custom-comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .comments-header-main {
    gap: 0.4rem;
  }

  .comments-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.7rem 0.5rem;
  }
}

/* .ast-container {
  max-width: 100% !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
} */

/* --- Category Template Styles --- */
.category-page-container,
.improved-layout {
  width: 100%;
  /* max-width: 900px; */
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  /* display: flex; */
}

.category-title {
  font-size: 30px;
  border-left: 5px solid #1D3557;
  padding-left: 10px;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgb(41, 37, 36);
  font-family: "League Gothic", Sans-serif;
  line-height: 36px;
}

.featured-post {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  /* padding: 16px; */
}

.featured-post img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.featured-post h3 {
  margin: 0 0 10px 0;
  font-size: 1.4em;
}

.more-food-section {
  margin-top: 40px;
}

.more-food-title {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 18px;
  /* border-left: 4px solid #6fcf97; */
  padding-left: 8px;
  color: rgb(41, 37, 36);
  font-family: "League Gothic", Sans-serif;
  line-height: 36px;
  letter-spacing: 1.5px;
}

/* --- More Food Horizontal Card Styles --- */
.more-food-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.horizontal-card {
  display: flex;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  align-items: stretch;
  min-height: 160px;
}

.more-food-thumb {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
}

.more-food-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  min-height: 160px;
}

.more-food-content {
  flex: 1 1 auto;
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.more-food-meta {
  margin-bottom: 6px;
}

.more-food-category {
  color: #1D3557;
  font-family: "Akshar", Sans-serif;
  font-size: 14px;
  /* font-weight: bold; */
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
  margin-right: 10px;
  line-height: 14px;
}

.more-food-title-text {
  font-size: 1.25em;
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.2;
}




.more-food-excerpt {
  font-size: 1em;
  color: #444;
  margin-bottom: 12px;
}

.more-food-author-date {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.98em;
  color: #666;
}

.more-food-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.more-food-date {
  display: flex;
  align-items: center;
  gap: 4px;
}



.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #1D3557;
  color: #fff;
  border-color: #1D3557;
}

/* --- Main Featured Post Styles --- */
.main-horizontal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  overflow: hidden;
  margin-bottom: 32px;
}

.featured-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}

.featured-content {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-meta {
  margin-bottom: 8px;
}

.featured-category {
  color: #1D3557;
  font-size: 14px;
  font-family: "Akshar", Sans-serif;
  /* font-weight: bold; */
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
  line-height: 14px;
}

.featured-title-text {
  font-size: 1.6em;
  font-weight: bold;
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.featured-title-text a,
.post-grid-title a,
.more-food-title-text a {
  color: #222;
  text-decoration: none;
  text-decoration-color: transparent;
}

.featured-title-text a:hover,
.post-grid-title a:hover,
.more-food-title-text a:hover,
.latest-link-enhanced:hover {
  text-decoration-color: #d3eeff !important;
  text-decoration-line: underline;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: .5rem;
  text-underline-offset: -.25rem;
}

.featured-author-date {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1em;
  color: #666;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-date i,
.more-food-date i,
.post-grid-date i {
  font-size: 1em;
  color: #1D3557;
}

/* --- Post Grid Section Styles --- */
.post-grid-section {
  margin: 32px 0 0 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-grid-item {
  background: #fff;
  border-radius: 10px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 18px;
}

.post-grid-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.post-grid-thumb {
  width: 100%;
}

.post-grid-meta {
  margin: 14px 0 4px 18px;
}

.post-grid-category {
  color: #1D3557;
  font-family: "Akshar", Sans-serif;
  font-size: 14px;
  /* font-weight: bold; */
  line-height: 14px;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
}

.post-grid-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 10px 18px;
  line-height: 1.2;
}





.post-grid-author-date {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.98em;
  color: #666;
  margin-left: 18px;
}

.post-grid-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-grid-date {
  display: flex;
  align-items: center;
  gap: 4px;
}



.category-posts,
.more-food-section,
.single-blog-page-wrapper {
  max-width: 1316px;
  margin: 0 auto;
}

ul.latest-list-enhanced li.latest-divider:last-of-type {
  display: none;
}

/* --- Responsive Styles for Category Page & Grid --- */
@media (max-width: 900px) {

  .more-food-excerpt {
    margin-bottom: 10px;
  }

  .more-food-excerpt p {
    margin-bottom: 0px;
  }

  .category-page-container {
    padding: 8px;
  }

  .category-title {
    /* font-size: 1.3em; */
    padding-left: 6px;
    margin-bottom: 12px;
  }

  .main-horizontal-card,
  .featured-post {
    margin-bottom: 18px;
    border-radius: 7px;
  }

  .featured-title-text {
    font-size: 1.1em;
    margin-bottom: 8px;
  }

  .featured-content {
    padding-left: 8px;
  }

  .post-grid-section {
    margin: 12px 0 0 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-grid-item {
    border-radius: 7px;
    padding-bottom: 10px;
  }

  .post-grid-thumb img {
    height: 140px;
    border-radius: 7px 7px 0 0;
  }

  .post-grid-meta,
  .post-grid-title,
  .post-grid-author-date {
    margin-left: 8px;
  }

  .more-food-section {
    margin-top: 24px;
  }

  .more-food-title {
    /* font-size: 1.05em; */
    padding-left: 4px;
    margin-bottom: 10px;
  }

  .more-food-list {
    gap: 16px;
  }

  .horizontal-card {
    flex-direction: column;
    min-height: unset;
    border-radius: 7px;
    box-shadow: none;
  }

  .more-food-thumb {
    flex: unset;
    min-height: 120px;
    max-height: 180px;
  }

  .more-food-thumb img {
    min-height: 120px;
    border-radius: 7px 7px 0 0;
  }

  .more-food-content {
    padding: 12px 10px 12px 10px;
  }
}

/* Style h3 headings in related article cards */
.related-articles-card h3 {
  color: rgb(41, 37, 36);
  font-family: "League Gothic", Sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 36px;
  margin-bottom: 20px;
}

.latest-category-name {
  color: #1D3557;
  font-family: "Akshar", Sans-serif;
  font-size: 14px;
  line-height: 14px;
}

.cat-heading-lg {
  color: rgb(0, 0, 0);
  font-family: "Akshar", Sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.75px;
  line-height: 36px;
  text-decoration-color: transparent !important;
}

/* Responsive for mobile devices */
@media (max-width: 900px) {
  .cat-heading-lg {
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 25px;
  }
}

.cat-heading-md {
  color: rgb(0, 0, 0);
  font-family: "Akshar", Sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: 32px;
  text-decoration-color: transparent !important;
}

/* Responsive for mobile devices */
@media (max-width: 900px) {
  .cat-heading-md {
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 25px;
  }
}

.cat-heading-sm {
  color: rgb(0, 0, 0);
  font-family: "Akshar", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.45px;
  line-height: 22.5px;
  text-decoration-color: transparent !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0px;

}

.cat-heading-x-lg {
  color: rgb(41, 37, 36);
  font-family: "Akshar", Sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: 60px;
}

/* Responsive for mobile devices */
@media (max-width: 900px) {
  .cat-heading-x-lg {
    font-size: 30px;
    line-height: 36px;
  }
}

.excerpt {
  color: rgb(0, 0, 0);
  font-family: "Inter", Sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.bms-left h4 a:hover,
.bms-left h5 a:hover,
.bms-right h6 a:hover,
.cat-heading-lg:hover {
  text-decoration: underline;
  text-decoration-color: #d3eeff !important;
  text-decoration-line: underline;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: .5rem;
  text-underline-offset: -.25rem;
  color: #000;
}

.toc-custom {
  list-style: none;
  margin-left: 5px;
}

.toc-custom li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}



.toc-custom li.active {
  font-weight: bold;
  color: #000;
}

.toc-custom li.active::before {
  content: '';
  position: absolute;
  left: 0px;
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: #122642;
  clip-path: polygon(100% 49%, 0 0, 0 98%);
}

/* --- Collapsible TOC Styles --- */
.post-toc .latest-header {
  cursor: pointer;
  user-select: none;
  border: none !important;
  /* Prevent text selection on click */
}

.toc-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  /* Adjusted for better icon sizing */
  color: #1D3557 !important;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
  margin-left: auto;
  box-shadow: none;
  /* Pushes toggle to the right */
}

.toc-toggle:hover,
.toc-toggle:focus {
  background: none;
}

.toc-toggle .fas {
  transition: transform 0.25s ease-in-out;
}

.is-collapsed .toc-toggle .fas {
  transform: rotate(-90deg);
}

.sticky-sidebar {
  position: sticky;
  top: 20px;
}

.post-toc.card {
  padding: 24px 16px 0px 16px;
}

@media (max-width: 900px) {
  .post-toc-desktop {
    display: none;
  }

  .post-toc-mobile {
    display: block !important;
    position: sticky;
    top: 10px;
    z-index: 2;
  }
}

.blog_key_feature:before {
    content: '';
    width: 224px;
    height: 52px;
    border-top: 2px solid #1D3557;
    border-left: 2px solid #1D3557;
    display: inline-block;
    position: absolute;
}
.blog_key_feature:after {
    content: '';
    width: 224px;
    height: 52px;
    border-bottom: 2px solid #1D3557;
    border-right: 2px solid #1D3557;
    display: inline-block;
    position: absolute;
    right: 0;
    bottom: 0;
}