/*
Theme Name:     KnowAll Child Theme
Theme URI: 		http://herothemes.com/
Description:    Child theme for KnowAll 
Author: 		HeroThemes
Author URI: 	http://herothemes.com
Template:       knowall
Version:        1.0.1
*/

/* ------- Insert custom styles below this line ------- */

/* ==================================
   VARIABLES
   ================================== */
:root {
  --ccp-bg: #f6f8fb;
  --ccp-surface: #ffffff;
  --ccp-surface-2: #eef4f8;
  --ccp-text: #13212b;
  --ccp-muted: #60717c;
  --ccp-line: #dbe5ea;
  --ccp-brand: #1597d3;
  --ccp-brand-2: #11b49b;
  --ccp-shadow: 0 18px 45px rgba(22, 41, 54, .12);
}

/* ==================================
   HERO SECTION
   ================================== */
.ccp-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(21, 151, 211, .18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(17, 180, 155, .16), transparent 30%),
    var(--ccp-bg);
  color: var(--ccp-text);
  padding: 64px 0 44px;
}

.ccp-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ccp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 30px;
  align-items: center;
}

.ccp-eyebrow {
  display: inline-flex;
  color: var(--ccp-brand-2);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ccp-hero h1 {
  margin: 12px 0 14px;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ccp-text);
}

.ccp-lead {
  margin: 0 0 26px;
  max-width: 720px;
  color: var(--ccp-muted);
  font-size: 18px;
}

.ccp-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ccp-quicklinks a {
  padding: 8px 11px;
  border: 1px solid var(--ccp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ccp-muted);
  font-size: 13px;
  font-weight: 700;
}

/* -- Urgent panel -- */
.ccp-urgent-panel {
  background: var(--ccp-surface);
  border: 1px solid var(--ccp-line);
  border-radius: 8px;
  box-shadow: var(--ccp-shadow);
  padding: 20px;
}

.ccp-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.ccp-panel-head span {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(17, 180, 155, .12);
  color: var(--ccp-brand-2);
  font-size: 12px;
  font-weight: 800;
}

.ccp-urgent-item {
  display: block;
  padding: 13px;
  border-radius: 8px;
  background: var(--ccp-surface-2);
  border: 1px solid var(--ccp-line);
  color: var(--ccp-text);
  text-decoration: none;
}

.ccp-urgent-item + .ccp-urgent-item {
  margin-top: 10px;
}

.ccp-urgent-item small {
  display: block;
  margin-top: 3px;
  color: var(--ccp-muted);
}

@media (max-width: 860px) {
  .ccp-hero-grid {
    grid-template-columns: 1fr;
  }

  .ccp-hero {
    padding: 42px 0 34px;
  }
}

/* ==================================
   SITUATIONS SECTION
   (kept the !important set - it was the
   working specificity fix vs theme styles)
   ================================== */
.ccp-situations {
  background: #ffffff !important;
  padding: 42px 0 34px !important;
  color: var(--ccp-text);
}

.ccp-situations .ccp-wrap {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

.ccp-section-head {
  margin-bottom: 18px;
}

.ccp-section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ccp-text);
}

.ccp-section-head p {
  margin: 6px 0 0;
  color: var(--ccp-muted);
}

.ccp-situations .ccp-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.ccp-situations a.ccp-card {
  display: block !important;
  min-height: 190px !important;
  padding: 18px !important;
  color: #13212b !important;
  background: #ffffff !important;
  border: 1px solid #dbe5ea !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05) !important;
  text-decoration: none !important;
}

.ccp-situations .ccp-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(21, 151, 211, .14) !important;
  color: #1597d3 !important;
  font-weight: 900 !important;
}

.ccp-situations .ccp-card h3 {
  margin: 12px 0 8px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  color: #13212b !important;
}

.ccp-situations .ccp-card p {
  margin: 0 !important;
  color: #60717c !important;
}

.ccp-situations .ccp-card small {
  display: inline-block !important;
  margin-top: 14px !important;
  color: #60717c !important;
  font-weight: 700 !important;
}

@media (max-width: 860px) {
  .ccp-situations .ccp-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================================
   HEROIC KB THEME SEARCH (hkb-search__*)
   NOTE: These target the theme/shortcode search
   variant used on KB category & article pages.
   The hero search block uses heroickb-* classes
   instead. Verify in DevTools - if no element on
   any page has .hkb-search__form, delete this block.
   ================================== */
.hkb-search__form {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.hkb-search__input {
  padding: 14px 20px;
  font-size: 1rem;
}

.hkb-search__submit {
  background: #00b8a0;
  color: #fff;
  border: none;
  padding: 14px 22px;
}

/* ==================================
   DARK MODE - CryptoCurrency Pakistan
   ================================== */

/* -- Body background (all theme body-class variants) -- */
body.dark-mode,
body.home.dark-mode,
body.ht-fse-mode.dark-mode,
body.ht-full-fse.dark-mode,
body.wp-theme-knowall.dark-mode {
  background-color: #0f0f17 !important;
  color: #e2e2e8 !important;
}

/* -- Page & section containers (transparent so body bg shows) -- */
body.dark-mode #page,
body.dark-mode #content,
body.dark-mode #primary,
body.dark-mode .site-content,
body.dark-mode .wp-site-blocks,
body.dark-mode .entry-content,
body.dark-mode [class*="wp-block"],
body.dark-mode .elementor-section,
body.dark-mode .elementor-container,
body.dark-mode .elementor-widget-wrap,
body.dark-mode .elementor-element {
  background-color: transparent !important;
  color: #e2e2e8 !important;
}

/* -- Typography -- */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
  color: #e2e2e8 !important;
}

body.dark-mode a {
  color: #7dd3c8 !important;
}

/* -- Hero section -- */
body.dark-mode .ccp-hero {
  background: linear-gradient(135deg, #0f0f17, #1a1a2e) !important;
}

body.dark-mode .ccp-eyebrow {
  color: #7dd3c8 !important;
}

body.dark-mode .ccp-lead {
  color: #a0a0b8 !important;
}

body.dark-mode .ccp-quicklinks a {
  background: #1e1e2e !important;
  border-color: #3e3e5e !important;
  color: #e2e2e8 !important;
}

/* -- Urgent panel -- */
body.dark-mode .ccp-urgent-panel {
  background: #1a1a2e !important;
  border-color: #2e2e3e !important;
}

body.dark-mode .ccp-urgent-item {
  background: #1e1e2e !important;
  border-color: #2e2e3e !important;
}

body.dark-mode .ccp-urgent-item b,
body.dark-mode .ccp-urgent-item small {
  color: #e2e2e8 !important;
}

body.dark-mode .ccp-panel-head strong,
body.dark-mode .ccp-urgent-panel strong {
  color: #f0f0f5 !important;
}

body.dark-mode .ccp-panel-head span {
  color: #7dd3c8 !important;
}

/* -- KnowAll theme & Heroic KB containers -- */
body.dark-mode .hkb-wrap,
body.dark-mode .hkb-article,
body.dark-mode .hkb-article__content,
body.dark-mode .hkb-category,
body.dark-mode .hkb-category__title,
body.dark-mode .hkb-loop,
body.dark-mode .hkb-loop__item,
body.dark-mode .site-footer,
body.dark-mode .main-navigation {
  background-color: #0f0f17 !important;
  color: #e2e2e8 !important;
}

/* -- Header (light gradient -> dark) -- */
body.dark-mode .site-header,
body.dark-mode header.wp-block-template-part,
body.dark-mode .wp-block-template-part header {
  background: #0f0f17 !important;
  background-image: none !important;
  border-bottom: 1px solid #2e2e3e !important;
}

body.dark-mode header a,
body.dark-mode .site-header a,
body.dark-mode header .wp-block-navigation a {
  color: #e2e2e8 !important;
}

/* -- Heroic KB search block (hero) -- */
body.dark-mode .wp-block-heroickb-search,
body.dark-mode .heroickb-sb-inputwrapper {
  background-color: #1e1e2e !important;
  border-color: #3e3e5e !important;
}

body.dark-mode .heroickb-sb-inputwrapper__input_wo_cat,
body.dark-mode .heroickb-sb-inputwrapper input {
  background: transparent !important;
  color: #e2e2e8 !important;
}

body.dark-mode .heroickb-searchresults__wo-cat {
  background-color: #1a1a2e !important;
  color: #e2e2e8 !important;
}

/* -- Theme search input (see hkb-search__* note above) -- */
body.dark-mode .hkb-search__input {
  background: #1e1e2e !important;
  color: #e2e2e8 !important;
  border-color: #3e3e5e !important;
}

/* -- Separators -- */
body.dark-mode .wp-block-separator {
  background-color: #2e2e3e !important;
  border-color: #2e2e3e !important;
}

/* -- Catch-all: white inline backgrounds -- */
body.dark-mode [style*="background-color: rgb(255, 255, 255)"],
body.dark-mode [style*="background-color: white"],
body.dark-mode [style*="background-color:#fff"],
body.dark-mode [style*="background-color: #fff"],
body.dark-mode .has-background[class*="white"] {
  background-color: #1a1a2e !important;
}

/* -- Situations & Featured sections -- */
body.dark-mode .ccp-situations,
body.dark-mode .ccp-featured {
  background: #0f0f17 !important;
}

body.dark-mode .ccp-section-head h2 {
  color: #f0f0f5 !important;
}

body.dark-mode .ccp-section-head p {
  color: #a0a0b8 !important;
}

/* -- Cards -- */
body.dark-mode .ccp-card {
  background: #1a1a2e !important;
  border-color: #2e2e3e !important;
  box-shadow: none !important;
}

body.dark-mode .ccp-card:hover {
  background: #1e1e35 !important;
  border-color: #3e3e5e !important;
}

body.dark-mode .ccp-card h3 {
  color: #f0f0f5 !important;
}

body.dark-mode .ccp-card p,
body.dark-mode .ccp-card small,
body.dark-mode .ccp-card span {
  color: #a0a0b8 !important;
}

/* -- Number badges on situation cards ("1", "2", "3") --
   Per live DOM these ARE the .ccp-icon spans, so target
   them directly instead of > span:first-child guesswork */
body.dark-mode .ccp-card .ccp-icon {
  background: #2a2a45 !important;
  color: #7dd3c8 !important;
}

/* -- Card footer labels ("Beginner guides", "Urgent help") -- */
body.dark-mode .ccp-card-grid a small,
body.dark-mode .ccp-card [class*="label"],
body.dark-mode .ccp-card [class*="tag"] {
  color: #7dd3c8 !important;
}

/* ==================================
   FEATURED SECTION
   (moved here from the page HTML embed -
   delete the <style> block from the HTML
   editor once this is live)
   ================================== */
.ccp-featured {
  background: #ffffff !important;
  padding: 10px 0 42px !important;
}

.ccp-featured .ccp-wrap {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

.ccp-featured-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.ccp-featured-card {
  display: block !important;
  padding: 18px !important;
  background: #ffffff !important;
  border: 1px solid #dbe5ea !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05) !important;
  color: #13212b !important;
  text-decoration: none !important;
}

@media (max-width: 860px) {
  .ccp-featured-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -- Featured section: dark mode --
   (.ccp-featured section bg is already handled
   above alongside .ccp-situations) */
body.dark-mode .ccp-featured-card {
  background: #1a1a2e !important;
  border-color: #2e2e3e !important;
  box-shadow: none !important;
  color: #e2e2e8 !important;
}

body.dark-mode .ccp-featured-card:hover {
  background: #1e1e35 !important;
  border-color: #3e3e5e !important;
}

body.dark-mode .ccp-featured-card h3,
body.dark-mode .ccp-featured-card b {
  color: #f0f0f5 !important;
}

body.dark-mode .ccp-featured-card p,
body.dark-mode .ccp-featured-card small,
body.dark-mode .ccp-featured-card span {
  color: #a0a0b8 !important;
}