/*
 Theme Name:   Tech Coalition Theme
 Theme URI:    https://technologycoalition.org
 Description:  2025 visual identity (GeneratePress child theme)
 Author:       Mike Harrison
 Author URI:   https://deependable.com
 Template:     generatepress
 Version:      0.1
*/

/* COLORS */
:root {
  --contrast: #222222;
  --contrast2: #575760;
  --contrast3: #b2b2be;
  --base: #f0f0f0;
  --base2: #f7f8f9;
  --base3: #ffffff;
  --white: #ffffff;
  --accent: #1e73be;
  --blue: #1e73be;
  --page-bg: #E8E8E8;
  --mid-grey: #BFBFBF;
  --dark-blue: #002B56;
  --lt-blue: #A0E3FC;
  --dark-green: #328171;
  --lt-green: #85D6C3;
  --yellow: #FFD817;
  --lt-yellow: #FAF187;
}

h1, .fs-h1 {
  font-size: clamp(30px, 3.529vw + 17.647px, 60px); 
  line-height: clamp(34px, 3.529vw + 21.647px, 64px); 
  letter-spacing: clamp(-0.02em, 3.529vw - 0.02em, -0.02em);
  font-weight: 600;
  margin-bottom: 20px;
}

h2, .fs-h2 {
  font-size: clamp(24px, 2.326vw + 12.093px, 40px); 
  line-height: clamp(28px, 1.977vw + 21.279px, 45px); 
  letter-spacing: clamp(-0.02em, 2vw - 0.02em, -0.02em);
  font-weight: 600;
  margin-bottom: 20px;
}

h3, .fs-h3 {
  font-size: clamp(22px, 0.465vw + 20.419px, 26px); 
  line-height: clamp(28px, 0.698vw + 25.628px, 34px); 
  letter-spacing: clamp(-0.01em, 0.5vw - 0.02em, -0.01em);
  font-weight: 600;
  margin-bottom: 20px;
}

h4, .fs-h4 {
  font-size: clamp(22px, 0.465vw + 20.419px, 26px); 
  line-height: clamp(28px, 0.698vw + 25.628px, 34px); 
  letter-spacing: clamp(-0.01em, 0.5vw - 0.02em, -0.01em);
  font-weight: 400;
  margin-bottom: 20px;
}

html, body {
  overflow-x: hidden;
}

/* NAV BAR */
.sticky-navigation-logo {max-width: 200px}

.site-header,
.sticky-enabled .main-navigation.is_stuck 
{margin: 10px auto 30px auto; max-width: 1406px; box-shadow: none; padding-left: 20px; padding-right: 20px}

.inside-header,
.sticky-enabled .main-navigation.is_stuck  .inside-navigation {background: #fff; margin-top: 10px; border-radius: 20px; box-shadow:0 0 10px rgba(0,0,0,0.15)}

/* SEARCH ICON */
.gp-icon.icon-search svg {top:0}
.menu-bar-item .gp-icon.icon-search:hover {background-color: var(--dark-blue); color: var(--white)}

.search-modal-fields .menu-bar-item .gp-icon.icon-search:hover {background-color: var(--dark-blue); color: var(--white)}

.gp-modal__overlay {z-index: 100002}
form.search-modal-form {border-radius: 100px; padding-left: 15px; padding-right: 7px}



/* MOBILE MENU */
.mobile-menu-control-wrapper .menu-toggle, 
.mobile-menu-control-wrapper .menu-toggle:hover, 
.mobile-menu-control-wrapper .menu-toggle:focus, 
.has-inline-mobile-toggle #site-navigation.toggled {
    background-color: rgba(0, 0, 0, 0.0);
}


/* LINKS */
.content-area a img:hover {
  transform: scale(1.075);
  transition: transform 0.2s ease;
}

.site-content a
{text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;}

.site-content a.gb-text[class*="button"],
.tc-related-title a,
.tag-nav a {
  text-decoration: none;
} 


/* LINK HOVERS */
p.gb-text a:hover,
.tc-related-title a:hover {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}

p.gb-text.tag-nav a:hover {
  text-decoration: none;
} 



/* BULLET STYLES */
ol, ul {margin: 0 0 1.5em 1.5em}
ol.wp-block-list li, ul.wp-block-list li {padding-left: 0.5em; padding-bottom: 0.5em}



/* BREADCRUMBS */
ol.breadcrumb {padding-bottom: 30px; padding-left: 50px; padding-right: 50px} 
li.breadcrumb-item a {text-underline-offset: 3px}

li.breadcrumb-item a::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('/wp-content/uploads/up-arrow-blue.svg') no-repeat center center;
  background-size: contain;
  margin-right: 5px;
  position: relative;
  top: 2px;
}


.programs.page-child li.breadcrumb-item {color: var(--white)}
.programs.page-child li.breadcrumb-item a {color: var(--white); text-decoration: underline var(--yellow)}
.programs.page-child li.breadcrumb-item a::before {
  background: url('/wp-content/uploads/btn-up-yellow.svg') no-repeat center center;
}
.programs.page-child li.breadcrumb-item a:hover {color: var(--yellow)}


/* YARPP RELATED */
.tc-related-container {display: grid; grid-auto-rows: 1fr; grid-template-columns: 1fr 1fr 1fr; column-gap: 20px}

@media (max-width:768px) {
    .tc-related-container {grid-template-columns: 1fr; row-gap: 40px; grid-auto-rows: auto}
}

.tc-related-thumb img {
  width: 200px; 
  height: 200px;
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  border-radius: 200px; 
  background-color: var(--mid-grey);
  background-image: url(https://techcoalition.flywheelsites.com/wp-content/uploads/2025/05/Tech-Coalition-logo.svg); 
  background-position: center; 
  background-repeat: no-repeat; 
  background-size: 66%;
  margin-bottom: 10px;
}

@media (max-width:768px) {
    .tc-related-thumb img {width: 60px; height: 60px; min-width: 60px}
}


.tc-related-title {margin-right: 40px}

@media (max-width:768px) {
    .tc-related-title  {margin-right: 0}
}


.tc-related-title a {
  font-size: clamp(22px, 0.465vw + 20.419px, 26px); 
  line-height: clamp(28px, 0.698vw + 25.628px, 34px); 
  letter-spacing: clamp(-0.01em, 0.5vw - 0.02em, -0.01em);
  font-weight: 400 !important;
  margin-bottom: 20px;
}


@media (max-width:768px) {
    .tc-related-item  {display: flex; column-gap: 20px}
}



/* SHARE PLAY TEXT RESIZE */
button.superwebshare_tada {background-color: var(--dark-blue) !important}
.text-resize h2 {display: none}
p.zeno_font_resizer {margin-bottom: 0}

.smaller-image {background-size: 125px !important}
.wp-block-query-no-results p {margin-bottom: 0}
.archive-title {padding-top: 10px; border-top: 1px solid var(--dark-blue); margin-top: 40px}


.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  overflow-x: hidden;
}


/* QUERY */
.tc-query:has([class^="gb-query-"]:empty) {
  display: none;
}



/* Base state for any animated element */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-out;
  will-change: transform, opacity;
  transform: scale(1.05);
}

/* Fade in from bottom */
.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
  transform: scale(1);
}

/* Fade in from left */
.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
  transform: translateX(50px);
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom in */
.zoom-in {
  transform: scale(0.9);
}

.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}


/* ARTICLE BOXES 
.tc-box-white {background-color: var(--base3)}
.tc-box-blue {background-color: var(--lt-blue)}
.tc-box-green {background-color: var(--lt-green)}
.tc-box-yellow {background-color: var(--lt-yellow)}
.tc-box-gradient {background-image: linear-gradient(to right,var(--dark-blue) 0%,var(--dark-green) 100%)}
*/

/* BOX WRAPPER */
@media (max-width: 768px) {
.tc-box.tc-article-wrapper {margin-left:-20px !important; margin-right: -20px !important; border-radius: 30px !important; padding-left: 30px; padding-right: 30px}
}

/* BOX COLUMNS */
.tc-box.tc-article-wrapper .tc-title-col {grid-column: 2/5; background-color: transparent; margin-top: 0; padding-top: 0; border-top: 0}
@media (max-width: 1024px) {
    .tc-box.tc-article-wrapper .tc-title-col {grid-column: 2/12 !important}
}
@media (max-width: 768px) {
    .tc-box.tc-article-wrapper .tc-title-col {grid-column: 1/13 !important}
}

.tc-box.tc-article-wrapper .tc-content-col {grid-column: 5/11 !important; background-color: transparent; margin-top: 0; padding-top: 0; border-top: 0}
@media (max-width: 1024px) {
    .tc-box.tc-article-wrapper .tc-content-col {grid-column: 2/12 !important}
}
@media (max-width: 768px) {
    .tc-box.tc-article-wrapper .tc-content-col {grid-column: 1/13 !important}
}

.tc-box.tc-article-wrapper {grid-column: 2/12 !important}
@media (max-width: 1024px) {
    .tc-box.tc-article-wrapper {grid-column: 2/12 !important}
}
@media (max-width: 768px) {
    .tc-box.tc-article-wrapper {grid-column: 1/13 !important;}
}

.tc-box-gradient h1, .tc-box-gradient h2, .tc-box-gradient h3, .tc-box-gradient h4 {color: var(--white)}


/* HAPPYFILES GALLERY */
.happyfiles-gallery>ul.crop li img {object-fit: contain !important; max-height: 40px; max-width: 150px}
.happyfiles-gallery>ul.crop li {text-align: center}
.happyfiles-gallery>ul.crop {row-gap: 80px !important}

@media (max-width: 768px) {
.happyfiles-gallery ul[data-col="4"]{
  grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 768px) {
.happyfiles-gallery ul[data-col="5"],
.happyfiles-gallery ul[data-col="6"],
.happyfiles-gallery ul[data-col="7"],
.happyfiles-gallery ul[data-col="8"]{
  grid-template-columns: repeat(3,1fr) !important;
  }
}





/* HALFTONE BOX -- V1 WITH GRADIENTS*/
.halftone-box {
  min-height: 100%;
  clip-path: inset(0px round 60px);
}

.halftone-box::before, .halftone-box::after {
  grid-area: 1/1;
  /* stack grid items */
  content: "";
}

.halftone-box::before {
  /* halftone technique */
  background: 
    radial-gradient(#fff, #888) 100% 50% / 7em 7em, 
    radial-gradient(circle at 100% 50%, #fff, #000);
  background-blend-mode: multiply;
  filter: contrast(50) blur(2px) contrast(4);
  /* blend halftone with tinted image background of parent
   * image replaces white in dots area, the rest remains black */
  mix-blend-mode: darken;
}

.halftone-box::after {
  place-content: center end;
  /* position text content box */
  z-index: 1;
  /* needed because ::before has filter */
  padding: 1em 0.5em 1em 50%;
  background: 
    linear-gradient(#fff 50%, #ffffff 0) text, 
    linear-gradient(to right, var(--dark-blue), var(--dark-green)) border-box;
  color: #0000;
  /* blend with result of blending halftone 
   * with card tinted image backdrop
   * black is replaced with this ::after */
  mix-blend-mode: lighten;
  content: "";
}


/* HALFTONE BOX -- V2 WITH MASK 
:root {--fluid-mask-size: 50vw;}

@media (min-width: 768px) and (max-width: 1500px) {
  :root {
    --fluid-mask-size: calc(50vw - (20 * (100vw - 768px) / 532));
  }
}

@media (min-width: 1500px) {
  :root {
    --fluid-mask-size: 850px;
  }
}
*/

/* HALFTONE MASK IN BOX */
.tc-clipper-right{
  height: 100%;
  position: absolute;
  right: 0;
  width: 100%;
  max-width: 50%;
  -webkit-mask-image: url(/wp-content/uploads/dots-black.svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100%;
  -webkit-mask-position: right center;
  mask-image: url(/wp-content/uploads/dots-black.svg);
  mask-repeat: no-repeat;
  mask-size: 100%;
  mask-position: right center;  
}


@media (max-width: 768px) {
.tc-clipper-right {
  max-width: unset;
  background-size: contain !important;
  background-position: bottom !important;
  mask-position: center calc(100% + 32vw);
  }
}

/* 
@media (max-width: 1024px) {
  .tc-clipper-right {
    max-width: unset;
    mask-size: auto 90%;
    mask-position: right bottom;
    } 
}
*/

/* HALFTONE MASK FULL WIDTH */
.alignfull .tc-clipper-right{
  -webkit-mask-size: 55vw;
  mask-size: 55vw;
  -webkit-mask-image: url(/wp-content/uploads/dots-black.svg);
  mask-image: url(/wp-content/uploads/dots-black.svg);
  mask-position: left center;
  -webkit-mask-position: left center;
  position: absolute;
}

@media (max-width: 1024px) {
.alignfull .tc-clipper-right {
  -webkit-mask-size: 70vw;
  mask-size: 70vw;
  }
}

/* HALFTONE MASK FULL WIDTH MOBILE */
/* Shift text to top to  */
@media (max-width: 768px) {
.alignfull .halftone-box-content {
  align-items: unset !important;
  }
}

@media (max-width: 768px) {
.alignfull .tc-clipper-right img {
  padding-top: 250px;
  }
}

@media (max-width: 768px) {
.alignfull .tc-clipper-right {
  max-width: unset;
  -webkit-mask-size: auto 90vw;
  mask-size: clamp(400px, 90vw, 475px);
/*  -webkit-mask-image: url(/wp-content/uploads/2025/06/tc-logo-dots.svg);
  mask-image: url(/wp-content/uploads/2025/06/tc-logo-dots.svg); */
  margin-bottom: 0;
  mask-position: center 275px;
  -webkit-mask-position: center 275px; 
  }
}


/*
@media only screen and (min-width: 450px) and (max-width: 768px)  {
.alignfull .tc-clipper-right {
  -webkit-mask-size: auto 75vw;
  mask-size: auto 75vw;
  }
}
*/


a .tc-logo-image {
    margin: auto 0px;
}

p.tc-blue-arrow-link a::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('/wp-content/uploads/btn-arrow-dkblue.svg') no-repeat center center;
  background-size: contain;
  margin-right: 6px;
  vertical-align: middle;
}


.tc-button::after,
.tc-button-yellow::after,
.tc-blue-outline-button::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/wp-content/uploads/btn-arrow-green.svg') no-repeat center center;
    background-size: contain;
    margin-left: 16px;
}

.tc-white-outline-button::after{
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('/wp-content/uploads/btn-arrow-ltgreen.svg') no-repeat center center;
  background-size: contain;
  margin-left: 16px;
}



.tc-button:hover::after,
.tc-button-yellow:hover::after,
.tc-white-outline-button:hover::after,
.tc-blue-outline-button:hover::after {
    background: url('/wp-content/uploads/btn-arrow-dkblue.svg') no-repeat center center;
}


/* DOWNLOAD */
a.tc-button-download::after {
    background: url('/wp-content/uploads/btn-download.svg') no-repeat center center;
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
    margin-left: 16px;
}





/* SEARCH & FILTER */
.search-filter-field__input {border-radius: 50px; }
.search-filter-field__input.search-filter-component-combobox-base {padding-left: 20px}
.search-filter-component-combobox__selection-item {border-radius: 50px; padding-left: 5px !important}
.search-filter-component-combobox-base__listbox {border: 0; border-top: 1px}
.search-filter-component-combobox-base__listbox-option {padding-left: 20px; padding-right: 15px; border-radius: 50px}

ul.search-filter-component-combobox-base__listbox {border-radius: 20px}



/* FLUENT FORMS -- CSS in form config */


/* FAQs */
.tc-faq {border-bottom: 1px solid var(--dark-blue)}
.tc-faq details {border-top: 1px solid var(--dark-blue)}
.tc-faq summary {font-weight: 700; padding: 20px 0}
.tc-faq details p {font-weight: 400; max-width: 65ch}
.tc-faq details p:nth-child(2) {margin-top: 20px}

.tc-faq summary::marker {color: red !important}

details.wp-block-details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 0;
}

details.wp-block-details summary::after {
  content: ""; /* or your preferred symbol */
  margin-left: 40px;
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('/wp-content/uploads/down-arrow-blue.svg') no-repeat center center;
  background-size: contain;
}

/* When open, swap the icon */
details.wp-block-details[open] summary::after {
  content: "";
  background: url('/wp-content/uploads/up-arrow-blue.svg') no-repeat center center;
}


/* FOOTER */
.vertical-line {
  position: relative;
}

.vertical-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--lt-blue);
  transform: translateX(-50%);
}


.fluentform .ff-el-form-control {
    display: block;
    width: 100%;
    border: 1px solid var(--dark-blue);
    border-radius: 30px;
}

.no-pdf .tc-resource-download {display: none}



/* hide default 1x1 feature image in some pages */
.wp-singular img[src*="fallback-1x1-1.svg"] {display: none}
.wp-singular .related-content img[src*="fallback-1x1-1.svg"] {display: inherit}

/* but show in these instances */
.wp-singular .tc-query img[src*="fallback-1x1-1.svg"] {display: block}



/* Bigger logos in gallery */
.happyfiles-gallery>ul.crop li img[alt="block logo"] {max-height: 60px}
.happyfiles-gallery li.item:has(img[alt="block logo"]) {height: 60px !important}


