/*
Theme Name: AllSmiles Child
Theme URI: https://allsmiles.qodeinteractive.com
Description: A child theme of AllSmiles
Author: Mikado Themes
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: allsmiles
Template: allsmiles
*/

/* Base layout */
/* Sidebar child pages nav */
/* Child Pages Navigation Sidebar */


/* Sidebar wrapper */
/* --- NAVIGATION BOX WRAPPER --- */
/* --- WRAPPER (Sidebar Box) --- */
/* --- WRAPPER (Sidebar Box) --- */
.side-nav-wrapper {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 25px 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  max-width: 270px;
  position: sticky;
  top: 120px; /* adjust for header height */
}

/* --- TITLE --- */
.child-nav-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d2352; /* dark blue */
  text-transform: uppercase;
  border-bottom: 2px solid #d52b1e; /* red accent */
  padding-bottom: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* --- PAGE LIST --- */
.ccchildpages ul,
.side-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-top: 1px dotted #ccc;
}

/* --- REMOVE BULLETS --- */
.side-nav ul,
.side-nav li,
.side-nav .children {
  list-style: none !important;
}
.side-nav li::marker {
  content: none;
}

/* --- ITEMS --- */
.ccchildpages li,
.side-nav li {
  border-bottom: 1px dotted #ccc;
  margin: 0;
  padding: 9px 0;
  line-height: 1.4;
}

/* --- LINKS --- */
.ccchildpages a,
.side-nav a {
  color: #1d2352;
  text-decoration: none;
  font-weight: 600;
  display: block;
  transition: all 0.25s ease;
}

/* --- HOVER EFFECT --- */
.ccchildpages a:hover,
.side-nav a:hover {
  color: #d52b1e;
  padding-left: 6px;
}


/* --- ACTIVE PAGE (Top-level) --- */
.side-nav > ul > .current_page_item > a,
.side-nav > .current_page_item > a {
  color: #d52b1e;
  font-weight: 700;
  border-left: 3px solid #d52b1e;
  padding-left: 8px;
  background-color: rgba(213, 43, 30, 0.05); /* subtle red highlight */
  border-radius: 3px;
}

/* --- ACTIVE PAGE (Child level) --- */
.side-nav .children .current_page_item > a {
  color: #d52b1e;
  font-weight: 700;
  border-left: 2px dotted #d52b1e;
  background: none;
  padding-left: 8px;
}

/* --- CHILDREN (Indentation) --- */
.ccchildpages .children,
.side-nav .children {
  margin-left: 15px;
  border-left: 1px dotted #ccc;
  padding-left: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .side-nav-wrapper {
    max-width: 100%;
    position: relative;
    top: auto;
    margin-top: 20px;
  }
}


/* Hide the default page title from header area */

.qodef-breadcrumbs, .entry-title {
  display: none !important;
}

/* Hide the navigation on mobile */

/* Hide shortcode navigation on tablet + mobile */
@media (max-width: 1024px) {
    .elementor-widget-shortcode,
    .elementor-widget-shortcode .elementor-widget-container,
    .elementor-widget-shortcode .elementor-shortcode,
    .elementor-shortcode,
    .side-nav,
    .side-nav-title {
        display: none !important;
    }
}