/* Hero Section */
.blog-hero {
  text-align: center;
  padding: 40px 20px;
}

.blog-sidebar .date {
  color:#00215C;
}

.act-btn {
  color: #00215C;
  font-weight: 600;
  font-size: 20px;
  margin-left: 25px;
}

.blog-related-posts__title {
  line-height:1em;
  margin-bottom: 10px;
}

.blog-related-posts__title a {
  color: #00215C;
  font-size: 16px;
  font-weight: 700;
}

.blog-related-posts__date {
  color:#306F98;
}

.container {
  max-width:1400px;
  margin:auto;
  padding: 40px 2%;
}

.author-box h4 {
  color: #00215C;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.author-box img {
  margin: auto;
  margin-bottom: 10px;
  margin-top: 20px;
  border: 3px solid #FFAD16;
}

.author-box p {
  color: #00215C;
  font-weight: 400;
  font-size: 15px;
}

.toc h5 {
  color: #00215C;
  font-size: 20px;
  font-weight: 700;
}

.key-takeaways h5 {
  color: #00215C;
  font-size: 20px;
  font-weight: 700;
}

.blog-tag {
  display: inline-block;
  background: #ffbf47;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 15px;
}
.blog-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
  color:#00215C;
}
.blog-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  color:#00215C !important;
}
.blog-meta {
  font-size: 14px;
  color: #777;
}
.blog-meta span {
  margin: 0 10px;
  color: #00215C;
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin: 0px auto;
  padding-bottom: 45px;
}
.blog-sidebar {
  align-self: start;
  height: 100%;
}

/* Author Box */
.author-box {
  background: #f4f9fc;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 16px;
  text-align: center;
  border-bottom: 4px solid #A6C2D4;
}
.author-box img {
  border-radius: 50%;
  width: 80px;
  margin-bottom: 10px;
}
.follow-btn {
  background: #FFAD16;
  border: none;
  border-radius: 6px;
  color: #00215C;
  cursor: pointer;
  padding: 8px 16px;
  font-weight: 600;
}

/* TOC */
.toc {
  position: sticky;
  top: 130px;
  background: #f4f9fc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-bottom: 4px solid #A6C2D4;
}

#toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 6px 0;
  font-size: 14px;
  list-style-type: none;  
}

.toc li a {
  color: #00215C;
  font-weight: 400;
  font-size: 15px;
}

.blog-meta span {
  display:flex;
}

.blog-meta {
  display: flex;
  justify-content: center;
}

.blog-meta img {
  width: 20px;
  margin-right: 5px;
}

/* Key Takeaways */
  
  padding: 16px;
  border-radius: 8px;
}
.key-takeaways ul {
  padding-left: 15px;
}
.key-takeaways li {
  margin: 8px 0;
  font-size: 14px;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 600px;
}

.profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.name {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: #003366;
}

.title {
  font-weight: 500;
  font-size: 14px;
  margin: 2px 0 10px 0;
  color: #1477b9;
}

.description {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #2c2c2c;
}

.actions {
  margin-top: 20px;
  font-size: 16px;
}

.actions strong {
  font-weight: 700;
  margin-right: 8px;
  color: #00215C;
  font-size: 18px;
}

.actions a {
  color: #003366;
  text-decoration: none;
  margin-right: 20px;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin-right: 10px;
  display: inline-block;
}

.social-icons img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.body-container--blog-post {
  background:#ffffff;
}

.cta-section {
  background-color: #153b56;
  color: white;
  padding: 30px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-section-main {
  background-color: #153b56;
}

.cta-text {
  max-width: 70%;
}

.cta-text h2 {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 1.5rem;
  color:#ffffff;
}

.cta-text p {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.8;
  color:#D1D5DB;
}

.cta-button {
  background-color: #f59c00;
  border: none;
  padding: 10px 20px;
  color: #153b56;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cta-button:hover {
  background-color: #e68a00;
}

.cta-button span {
  margin-left: 8px;
  font-weight: 700;
}

.kteway {
  background: #ffffff;
  padding-bottom: 30px;
  display:none;
  padding-left: 20px;
  padding-right: 20px;
}

@media only screen and (max-width: 1200px) {
  .blog-layout, .cta-section-main {
   padding-left: 20px;
   padding-right: 20px;
  }
}
.mobilekeytakeway {
  display:none;
}

@media only screen and (max-width: 600px) {
  .act-btn {
    display: block;
    margin-left: 0px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .mobilekeytakeway {
    display:block !important;
  }

  .blog-layout {
    display:block !important;
  }

  .blog-sidebar {
    position:relative;
    height: 100%;
  }

  .key-takeaways {
    display:none;
  }

  .kteway {
    display:block !important;
  }

  .blog-content {
    margin-top:45px;
  }

  .cta-section {
    display:block !important;
  }

  .cta-button {
    margin-top:20px;
  }

  .body-container--blog-post .author-box {
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    overflow:hidden !important;
  }

  .body-container--blog-post .blog-meta {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 12px;
    gap: 10px;
    flex-wrap: nowrap !important;
  }

  .body-container--blog-post .blog-meta .date,
  .body-container--blog-post .blog-meta .author,
  .body-container--blog-post .blog-meta .read-time {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    white-space: nowrap;
  }

  .body-container--blog-post .blog-meta .date img,
  .body-container--blog-post .blog-meta .author img,
  .body-container--blog-post .blog-meta .read-time img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  /* === TOC Mobile Toggle === */
  .toc .toc-heading {
    display: none !important; /* hide static heading */
  }

  .toc .toc-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: #f4f9fc;
    color: #306F98;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
  }

  .toc .toc-toggle:after {
    content: "▼";
    color: #306F98;
    float: right;
    transition: transform 0.3s ease;
  }

  .toc.open .toc-toggle:after {
    transform: rotate(-180deg);
  }

  .toc ul {
    list-style: none;
    padding: 0px 12px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .toc.open ul {
    max-height: 600px; /* enough to expand full list */
  }

  .toc ul li {
    margin: 6px 0;
    font-size: 14px;
  }

  .toc ul li a {
    color: #306F98;
    text-decoration: none;
    padding-left: 6px;
    display: inline-block;
  }
}
@media only screen and (max-width: 600px) {
  .blog-hero {
    padding-bottom: 10px !important; /* reduce bottom padding */
  }

  .blog-layout.container {
    padding-top: 0 !important;  /* reset extra padding */
    margin-top: 0 !important;
  }

  #toc {
    margin-top: 10px !important;
    padding: 12px !important;
  }
   
  .toc .toc-toggle {
    padding: 5px 1px !important;
  }
}

/* Show TOC toggle only on mobile */
@media only screen and (max-width: 600px) {
  .toc .toc-toggle {
    display: block;
  }
}

@media only screen and (min-width: 601px) {
  .toc .toc-toggle {
    display: none !important;
  }
}