/*
 Theme Name: Bluehost Blueprint Child
 Template: bluehost-blueprint
 Version: 1.0
*/

/* ================================
   CHANGE BACKGROUND COLOR
================================ */

body {
    background: #F0F0F0;
}

/* ================================
   CHANGE TYPOGRAPHY
================================ */

/* Remove ALL dotted underlines or decorations on link active/pressed states */
a:active,
a:focus,
a:visited
{
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-navigation-item__content:active,
.wp-block-navigation-item__content:focus,
.wp-block-navigation-item__content:visited {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

h2 {
    font-size: 1.3em;
}

h3 {
    font-size: 1.25em;
}

.inline-emoji {
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    display: inline-block;
}

ul {
    padding-left: 25px;
}


/* ================================
   ADJUST HEADER SPACING
================================ */

/* Only remove spacing below the header (prevents template inconsistencies) */
.wp-site-blocks > header.wp-block-template-part {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove the top margin ONLY from the block directly under the header */
.wp-site-blocks > header.wp-block-template-part + * {
    margin-top: 0 !important;
}

/* Override global padding just for the header */
header.has-global-padding {
  padding-left: 24px;
  padding-right: 24px;
}


/* ================================
   DESKTOP / MOBILE MENU UPDATES
================================ */

/* Hide mobile menu on desktop */
@media (min-width: 783px) {
  header.wp-block-template-part nav.is-responsive,
  header.wp-block-template-part .wp-block-navigation__responsive-container {
    display: none !important;
  }
}

/* Hide desktop menu on mobile */
@media (max-width: 782px) {
  header.wp-block-template-part nav.is-horizontal {
    display: none !important;
  }
}

/* Mobile navigation container */
@media (max-width: 782px) {
  body .wp-block-navigation__responsive-container {
    position: fixed;
    top: 0;
    left: 0; /* flush to viewport */
    height: 100vh;
    width: 80%;
    max-width: 260px;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow-y: auto;
  }
}

/* Mobile header layout */
@media (max-width: 782px) {

  /* Flex wrapper: logo centered, hamburger on left */
  .nfd-wb-header__header-3 .wp-block-group.is-layout-flex {
    display: flex;
    justify-content: center; /* logo stays centered */
    align-items: center;
    position: relative;
  }

  /* Logo stays centered in flex */
  .wp-block-site-logo {
    order: 2;
    margin: 0 auto;
  }

  .wp-block-site-logo img {
    width: 220px;
  }

  /* Hamburger fixed left, stays clickable */
  .wp-block-navigation {
    order: 1;
    position: absolute;   /* remove from flex flow */
    left: 0;
    z-index: 9999;
  }
}

/* Force full width menus */
#modal-1 .wp-block-navigation-item {
  width: 100%;
}

#modal-1 .wp-block-navigation-item__content {
  width: 100%;
  flex: 1 1 auto;
}

/* Submenu arrow function */
#modal-1 li.child-sub > a,
#modal-1 li.child-sub > .wp-block-navigation-item__content {
  display: flex;
  justify-content: space-between;   /* push arrow to far right */
  align-items: center;              /* vertical centering */
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Arrow button styles */
.fq-arrow-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;                   /* prevent arrow compression */
  transition: transform 0.25s ease;
}

/* Rotate arrow when submenu is open */
.fq-arrow-toggle.expanded {
  transform: rotate(180deg);
}



/* ================================
   SIDEBAR UPDATES
================================ */

/* Mobile sidebar: stack related posts first, banner second */
@media (max-width: 768px) {
  /* Make sidebar column a flex container in column direction */
  .wp-block-column.has-background.is-layout-flow {
    display: flex;
    flex-direction: column;
  }

  /* Related posts first */
  .sidebar-related {
    order: 1;
  }

  /* Banner second */
  .sidebar-banner {
    order: 2;
  }
}

.right-sidebar .sidebar-group {
    margin-left: -15px;
}

@media (max-width: 768px) {
  .right-sidebar .sidebar-group {
    margin: 0;
  }
  .right-sidebar .sidebar-group {
    font-size: 110%;
  }
  .right-sidebar .sidebar-group li {
    padding: 6px 0;
    font-weight: bold;
  }
}


/* ================================
  FAQ CATEGORY PAGES
================================ */

@media (max-width: 782px) {
/* Reduce heading size on mobile */
.home .wp-block-cover h1 {
    font-size: 1.6em !important;
}
}


/* ================================
  FAQ CATEGORY PAGES
================================ */

.faq-topics-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1em;
}

.faq-subcategory-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  background: #f0f2f4;
  border-radius: 8px;
}

.faq-subcategory-label {
  white-space: nowrap;
  font-size: 1.1em;
  font-weight: 600;

}

.faq-subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.faq-subcategory-list li {
  margin: 0;
}

.faq-post-list li {
  display: flex;
  margin: 0 0 12px;
  padding: 24px;
  background: #f0f2f4;
  border-radius: 8px;
  vertical-align: top;
  font-size: 18px;
  line-height: 1.5;
  color: #393f4c;
  font-weight: 700;
} 
.faq-subcategory { 
            margin: 1em 0 0.5em; 
} 
.faq-subcategory a { 
            text-decoration: none; 
            color :#333; 
} 
/* Full-width flush bar fix */ 
.faq-topics-wrapper { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            margin-top: 0.25em; 
            margin-bottom: 0.75em; 
} 
.faq-topics-title { 
            margin: 0;font-size:1.35rem; 
} 
.faq-sort-form { 
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0; 
} 
.faq-sort-form span { 
        font-size: 0.95rem;
        white-space: nowrap; 
} 
.faq-sort-form select { 
            padding: 4px 6px;
            font-size: 0.95rem; 
} 


/* ================================
  TOOLS CATEGORY PAGE
================================ */

.tools-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .tools-columns {
    grid-template-columns: 1fr;
  }
}

.tools-category-heading {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .tools-column .tools-other {
    padding-top: 2em;
  }
}


/* ================================
   SINGLE POST UPDATES
================================ */

.faq-answer {
    padding: 0;
    border: 0px solid #b3d6d6;
    background-color: #fff;
}

img.finqna-bot-img {
    margin: -12px 0 15px 2px;
    float: left;
    height: 170px;
    width: 170px;
}

.finqna-bot-img img {
    margin: -12px 0 15px 2px;
    float: left;
    height: 170px;
    width: 170px;
}

.faq-chart {
    padding: 0.75em 0;
    border-color: #cfcfcf;
    border-style: solid;
    border-width: 2px;
    border-radius: 8px;
    background-color: #fff;
}

.faq-table td {
    background-color: #eaf6f6;
    border: 2px solid #074149;
    padding: 6px 10px;
}

.faq-table thead {
    background-color: #3c9294;
    border-bottom: none;
}

.faq-table thead th {
    border: 2px solid #074149;    
    color: #fff;
    padding: 6px 10px; 
}

.faq-table .column1 {
    background-color: #cfebeb;
    color: #000000;
}

@media (max-width: 600px) {

    .faq-table {
        font-size: 90%;
    }
}

.faq-explanation {
    background-color: #f3f3f3;
    border-left: 8px solid #dddddd;
    padding: 27px 25px 30px;
}

.clearimg {
    clear: both;
}

.human-perspective-main {
    border-top: 2px dotted #d3d3d3;
    border-bottom: 2px dotted #d3d3d3;
    padding-bottom: 28px;
}

.human-perspective {
    grid-template-columns: 14% auto !important;
}

.human-perspective img {
    max-width: 120px;
    height: auto;
    border-radius: 6px;
}

.wp-block-media-text>.wp-block-media-text__content {
    padding: 0 4%;
}

/* Breadcrumb cleanup */
.wp-block-breadcrumbs,
.breadcrumbs,
[class*="breadcrumb"] {

  /* hide emoji characters */
  unicode-bidi: plaintext;
}

/* Hide FAQ / FAQs / Questions text using masking */
.wp-block-breadcrumbs span,
.wp-block-breadcrumbs a {
  position: relative;
}

.wp-block-breadcrumbs span::after,
.wp-block-breadcrumbs a::after {
  content: attr(data-clean);
}

.faq-post-lis .finqna-related-faqs li {
    padding: 6px 0; 
    font-size: 18px;
    font-weight: bold;
}

/* ==================================
   SINGLE GUIDE PAGES
================================== */

/* Limit cover height on mobile */
@media (max-width: 782px) {
.wp-block-cover, .wp-block-cover-image {
    min-height: 400px !important;
}
/* Reduce heading size on mobile */
.wp-block-cover h1 {
    font-size: 3em !important;
}
}

h2.has-background, h3.has-background {
    margin-left: -4px !important;
    margin-right: -4px !important;
}
  
/* Table of contents */
#ez-toc-container {
    margin-left: -5px !important;
    margin-right: 0 !important;
    padding: 12px 20px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    display: block;
}

#ez-toc-container li, #ez-toc-container ul, #ez-toc-container ul li, div.ez-toc-widget-container, div.ez-toc-widget-container li {
    line-height: 1.8;
}

#ez-toc-container a {
    text-decoration: underline;
}

#ez-toc-container a:hover {
    text-decoration: none;
}

#ez-toc-container a:visited {

}

/* ==================================
   SINGLE CALCULATOR PAGES
================================== */

/* Center Tool/Calculator content on mobile */
@media (max-width: 768px) {
  .content-title {
    text-align: center;
  }
  .content-description {
    text-align: center;
  }
  .calculator-img {
    padding-top: 20px !important;
  }
}
  .calculator-img {
    margin-top: -20px !important;
  }
  

/* ==================================
   FOOTER UPDATES
================================== */

.footer-nav a {
    text-decoration: none;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-logo img {
    height: 50px;
    width: auto;
}
  

/* ==========================================
    MOBILE: stack FinQnA Bot icon above content
========================================== */

@media (max-width: 600px) {
  .faq-answer {
    display: flex !important;
    flex-direction: column !important;
  }
  .faq-answer img.finqna-bot-img,
  .faq-answer .finqna-bot-img {
    float: none;
    display: block;
    margin: 2px auto -10px;
    height: 170px;
    width: 170px;
    object-fit: contain !important;
    order: -1 !important; 
  }
}

@media (max-width: 600px) {

    footer p {
        text-align: center;
    }
    footer .has-text-align-right {
        text-align: center;
    }
}
