/**
 * Theme Name: Idaho Webmaster v4 - Child
 * Template: Webmaster-v4
 * Description: The theme to use and edit for making any changes to a specific site.
 * Author: White Whale Web
 * Author URI: https://whitewhaleweb.com/
 * Version: 1.0.1
 * Text Domain: webmaster-bs4
 */

/* STICKY AAA */

.sticky-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color8);
    padding: 0px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.sticky-main:before {
	display: none;
}

.wp-block-image img {
	border-radius: 5px;
}

ul.wp-block-list {
	list-style: none;
	padding-left: 0px;
}

.breadcrumbs {
    margin-bottom: 0rem!important;
}

.wp-block-media-text>.wp-block-media-text__content {
	padding: 0 3%!important;
	margin-bottom: 20px;
}

.error-404.not-found a {
	color: var(--color5)!important;
}

button.submit.search-submit.btn.btn-primary:hover {
    background: var(--color8) !important;
}

a.submit.search-submit.btn.btn-primary {
	padding: 5px 30px!important;
}

a.submit.search-submit.btn.btn-primary:hover {
    background: var(--color8) !important;
	text-decoration: none!important;
	font-style: normal!important;
	color: var(--color7)!important;
}


.entry-summary {
    margin-bottom: 20px;
}

.error-404.not-found h1 {
	color: #fff!important
}


.gform-theme--framework .gfield--type-choice .gfield_checkbox,.gform-theme--framework .gfield--type-choice .gfield_radio {
    display: grid!important;
    flex-direction: column;
    gap: var(--gf-field-choice-gap)
}

/* SEARCH RESULTS START */
/* Search Page Layout */
.search-results-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

/* Search Bar */
.search-bar-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 8px 12px;
    background: #fff;
}

.search-bar-wrapper input[type="text"] {
    border: none;
    flex: 1;
    padding: 6px;
    font-size: 1rem;
    outline: none;
}

.search-bar-wrapper button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Search Results */
.search-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.search-result-item a {
    color: #04639F;
    font-size: 24px;
    font-weight: 100;
    text-decoration: underline!important;
}

a.search-result-link {
    font-size: 16px;
}

.search-result-item a:hover {
    text-decoration: underline;
}

.search-result-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.search-result-link {
    color: #005ea2;
    font-size: 0.9rem;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.search-pagination a,
.search-pagination span {
    color: #005ea2;
    text-decoration: none;
    padding: 4px 6px;
}

.search-pagination a:hover {
    text-decoration: underline;
}

/* Items per page dropdown */
.search-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-controls select {
    border: 1px solid #ccc;
    padding: 4px 8px;
    font-size: 0.95rem;
}

.col-12.col-sm-10.col-lg-12.d-flex.align-items-center {
    gap: 90px;
}

#searchform .search-bar-wrapper {
    width: 100%
}

.search-bar {
    width: 100%
}

#searchform i.fa.fa-search {
    color: #356699;
    font-size: 1.85em;
    margin-top: 3px
}

h3.search-result-title.mb-1 {
    margin-top: 30px;
}

.breadcrumb {
    margin-top: 0px;
    margin-bottom: 30px;
}

/* SEARCH RESULTS END */


/* CONTACTS   */

/* Contact Directory */
/* ==============================
   IT Contacts – Table Style
   ============================== */

.contact-directory {
  width: 100%;
  margin: 0;
}

.contact-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0;
}

/* Header row (optional if you add one later) */
.contact-list-header {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  padding: 14px 16px;
  font-weight: 600;
  background: #f7f7f7;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

/* Row */
.contact-item {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  align-items: center;
  padding: 14px 16px;
  gap: 16px;
}

.contact-item + .contact-item {
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Columns */
.contact-agency {
  font-weight: 600;
}

.contact-meta {
  display: contents; /* lets children act like columns */
}

.contact-person {
  white-space: nowrap;
}

.contact-tel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Phone pills */
.contact-phone {
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
}

/* Separator */
.contact-sep {
  opacity: .4;
}

/* Hover row */
.contact-item:hover {
  background: rgba(0,0,0,.02);
}

/* ==============================
   Mobile
   ============================== */
@media (max-width: 768px) {
  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-agency {
    font-weight: 700;
  }

  .contact-person,
  .contact-tel {
    font-size: 0.95rem;
  }
}