/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/
Description: Child theme for Kadence. Put your custom CSS in this file.
Author: Your Name
Author URI: https://yourwebsite.com/
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

.entry-header {
    margin-bottom: -1em;
}

.wp-site-blocks .post-thumbnail .post-thumbnail-inner {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 0;
    right: 0;
}

/* rankmath table of content setting start here */

#rank-math-toc {
    border: double 3px #c3c4c7; /* Double border */
    padding: 10px;
}

#rank-math-toc a {
    color: black; /* Change link text color to black */
    text-decoration: none; /* Optional: Remove underline */
}

/* Make TOC text smaller on mobile */

.wp-block-rank-math-toc-block{
  border:1px solid gray;
  padding:10px;
  background:#fdf7ea;
  border-radius:5px;
  margin-bottom:25px;
}

/* Make TOC text smaller on mobile */
@media (max-width: 600px) {
    .wp-block-rank-math-toc-block {
        font-size: 14px; /* Adjust size as needed */
    }

    .wp-block-rank-math-toc-block li a {
        font-size: 14px; /* Ensures the links also resize */
    }
}

/* latest post sidebar setting */

/* 1) Keep your theme fonts and sizes (no changes) */
.wp-block-latest-posts__list li,
.wp-block-latest-posts__list li a,
.mms-latest-text a{
  font: inherit;
  line-height: inherit;
}

/* 2) No extra padding/margins added */
.wp-block-latest-posts__list{
  margin: 0;
  padding: 0;
}

.wp-block-latest-posts__list li{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;          /* small neat gap only */
  padding: 0;         /* IMPORTANT: no padding */
  margin: 0 0 10px 0; /* only small spacing between items */
}

/* 3) Bigger circle thumbnail (change size here) */
.mms-latest-thumb{
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 74px;
  background: #f0f0f0;   /* only visible if image missing */
}

.mms-latest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: if you want the placeholder icon centered */
.mms-no-thumb{
  display: flex;
  align-items: center;
  justify-content: center;
}

.mms-no-thumb-text{
  font-size: 20px;
  line-height: 1;
}

/* 4) Mobile only: smaller title text (only for this widget) */
@media (max-width: 1024px){
  .wp-block-latest-posts__list li a{
    font-size: 17px;
  }
}

/* Mobile: increase title size more (was too small) */
@media (max-width: 767px){
  .wp-block-latest-posts__list li a{
    font-size: 16px;
    line-height: 1.4;
  }
}

/* Desktop only: space between header and sidebar */
@media (min-width: 992px){
  #secondary{
    margin-top: 20px;   /* adjust if needed */
  }

  /* If theme uses inner wrapper */
  #secondary .sidebar-inner-wrap{
    padding-top: 0;
  }
}




/* Space between Latest Posts heading and its list */
#secondary .widget-title + .wp-block-latest-posts__list,
#secondary h2 + .wp-block-latest-posts__list,
#secondary h3 + .wp-block-latest-posts__list {
  margin-top: 14px;
}

/* Homepage Title Settin */

.kb-posts-id-47_c0e4b9-da .entry.loop-entry .entry-header .entry-title {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

/* background box size setting */

@media (max-width: 480px) {
    .has-background {
        font-size: 18px;
        padding: 10px 10px;
			border-radius:10px;
    }
}


/* === Interlink Box External link Setting Start === */
.wp-block-verse {
    background: #f4f7fb;
    border-left: 5px solid #2cc9b6;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    border-radius: 6px;
}

/* Link */
.wp-block-verse a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    display: inline-block; /* IMPORTANT */
    padding-right: 18px;
}

/* External link icon – desktop */
.wp-block-verse a::after {
    content: "↗";
    font-size: 14px;
    position: absolute;
    right: 0;
    top: 2px;
    color: #2563eb;
}

/* Hover */
.wp-block-verse a:hover {
    text-decoration: underline;
}

/* === MOBILE FIXES === */
@media (max-width: 768px) {

    .wp-block-verse {
        font-size: 15px;
        padding: 12px 14px;
        margin-bottom: 14px; /* FIX extra space */
    }

    .wp-block-verse a {
        padding-right: 16px;
    }

    /* Force icon AFTER text on mobile */
    .wp-block-verse a::after {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
    }
}

/* Hide external link icon on mobile */
@media (max-width: 768px) {
    .wp-block-verse a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .wp-block-verse a {
        padding-right: 0;
    }
}

/* === Interlink Box External link Setting Ended === */