/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ------------------------------
   Global Button Styling
------------------------------ */
button[type="submit"],
button[type="button"] {
  background-color: #224DB7;
  color: white;
  padding: 0.75em 1.5em;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
  display: inline-block;
  text-align: center;
}

button[type="submit"]:hover,
button[type="button"]:hover {
  background-color: #1739A5;
}

/* ------------------------------
   Header Menu Item Adjustments
   (Only between 1000px and 1200px)
------------------------------ */
@media (min-width: 1000px) and (max-width: 1200px) {
  #header-menu-1 > ul > li > a { 
    padding: 0 13px;
    font-size: 12px;
  }
}

/* ------------------------------
   Search Results – No Results Page Fixes
------------------------------ */
body.search-no-results .ct-search-form button.wp-element-button {
  border: 0 !important;
}

body.search-no-results button.wp-element-button:hover svg {
  fill: #ffffffb8 !important;
}

/* ------------------------------
   Search Form Focus Styling
------------------------------ */
body .ct-search-form input:focus ~ .ct-search-form-controls select,
body .ct-search-form input:focus ~ .ct-search-form-controls [data-button*="inside"] {
  background: #224DB7 !important;
}

/* ------------------------------
   Homepage Search Padding
------------------------------ */
.home-search {
  padding: 5px;
}

/* ------------------------------
   Stack Block Padding Fix (specific container block)
------------------------------ */
.stk-07bb41a .stk-a0a0c1e-container {
  padding: 0 !important;
}

/* ------------------------------
   General Search Dropdown Styling (desktop only)
------------------------------ */
@media only screen and (min-width: 600px) {
  #main .ct-search-results {
    position: absolute;
    top: 59px;
    background: #f2f2f2;
    left: 0;
    right: 0; 
    width: 100%;
    padding-top: 0;
    box-shadow: 0px 0px 1px #38454a;
  }

  #main .ct-search-results:hover {
    box-shadow: 0px 0px 1px #224DB7;
  }
}

/* ------------------------------
   Search Page Dropdown Styling (desktop only)
------------------------------ */
@media only screen and (min-width: 600px) {
  .search .ct-search-results {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    padding-top: 50px !important;
    box-shadow: var(--search-dropdown-box-shadow, 0px 50px 70px 0px var(--search-dropdown-box-shadow-color, rgba(210,213,218,.4))) !important;
  }

  .search .ct-search-results:hover {
    box-shadow: var(--search-dropdown-box-shadow, 0px 50px 70px 0px var(--search-dropdown-box-shadow-color, rgba(210, 213, 218, 0.4))) !important;
  }
}

/* ------------------------------
   CMP (InMobi Persistent Button Styling)
------------------------------ */
#qc-cmp2-persistent-link,
.qc-cmp2-persistent-link {
  background-color: #224DB7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  cursor: pointer !important;
}
