/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Description: Child theme for Twenty Twenty-Five
Author: Manpreet Kaur
Author URI: https://example.com
Template: twentytwentyfive
Version: 1.0
*/

/* Sidebar Css Start */
.modern-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Box */
.sidebar-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Titles */
.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #4e8cff;
    padding-left: 10px;
}

/* Latest post cards */
.latest-card {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #222;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: 0.3s;
}

.latest-card:hover {
    background: #f0f6ff;
    transform: translateY(-2px);
}

/* Image with rounded mask and hover zoom */
.latest-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.latest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.latest-card:hover .latest-img img {
    transform: scale(1.1);
}

/* Title Text */
.latest-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

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

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: 0.3s;
    font-weight: 500;
}

.category-list a:hover {
    background: #4e8cff;
    color: #fff;
}

.cat-count {
    background: #ddd;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.category-list a:hover .cat-count {
    background: rgba(255,255,255,0.3);
}
/* Sidebar Css End */

/* TOC Container Box */
/* ---------- TOC Container Box (visual) ---------- */
#ez-toc-container,
.ez-toc-container,
.toc,
.toc_container,
#table-of-contents {
  background: #fafafa;
  border: 1px solid #e2eaea;
  border-radius: 10px;
  padding: 22px 28px;
  position: relative;
  box-shadow: none;
  margin-bottom: 28px;
}

/* Title styling */
#ez-toc-container .ez-toc-title,
.ez-toc-container .ez-toc-title,
.toc .toc-title,
.toc_container .toc-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2933;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.4px;
}

/* Blue underline */
#ez-toc-container .ez-toc-title:after,
.ez-toc-container .ez-toc-title:after,
.toc .toc-title:after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #caced1;
  margin-top: 6px;
  border-radius: 2px;
}

/* List base */
#ez-toc-container ul,
.ez-toc-container ul,
.toc ul,
.toc_container ul,
#table-of-contents ul {
  margin: 12px 0 0 0;
  padding-left: 26px;
  list-style: disc;
}

/* List items */
#ez-toc-container ul li,
.ez-toc-container ul li,
.toc ul li,
.toc_container ul li {
  margin: 10px 0;
  line-height: 1.35;
  font-size: 17px;
}

/* Links */
#ez-toc-container ul li a,
.ez-toc-container ul li a,
.toc ul li a {
  color: #111827;
  text-decoration: none;
}
#ez-toc-container ul li a:hover,
.ez-toc-container ul li a:hover,
.toc ul li a:hover {
  text-decoration: underline;
}

/* Nested lists */
#ez-toc-container ul ul,
.ez-toc-container ul ul,
.toc ul ul {
  padding-left: 20px;
  list-style-type: circle;
  margin-top: 6px;
}

/* Remove debug outlines if any */
#ez-toc-container,
.ez-toc-container,
.toc,
.toc_container,
#table-of-contents,
#ez-toc-container * {
  outline: none !important;
  box-sizing: border-box;
}

/* ---------- Toggle button (our own, if plugin toggle missing) ---------- */
.my-toc-toggle,
.ez-toc-title-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #caced1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

/* icon: simple 3-line hamburger without external fonts */

.my-toc-toggle .bar:before,
.my-toc-toggle .bar:after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #2a85d3;
}
.my-toc-toggle .bar:before { top: -6px; }
.my-toc-toggle .bar:after  { top: 6px; }

/* rotate when active */
.my-toc-toggle.active,
.ez-toc-title-toggle.active { transform: rotate(90deg); transition: transform .18s ease; }

/* ---------- Show/hide behavior controlled by class ---------- */
/* Default: visible */
#ez-toc-container .ez-toc-list,
.ez-toc-container .ez-toc-list,
.toc .toc-list,
.toc_container .toc-list,
#table-of-contents ul {
  display: block;
  max-height: 2000px;
  overflow: visible;
  transition: max-height .32s ease, opacity .25s ease;
  opacity: 1;
}

/* Collapsed state */
#ez-toc-container.toc-collapsed .ez-toc-list,
.ez-toc-container.toc-collapsed .ez-toc-list,
.toc.toc-collapsed .toc-list,
.toc_container.toc-collapsed .toc-list,
#table-of-contents.toc-collapsed ul {
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
}

/* Accessibility focus */
.my-toc-toggle:focus,
.ez-toc-title-toggle:focus { outline: 2px solid rgba(42,133,211,.25); outline-offset: 2px; }

/*Table of content Css end*/