/*
Theme Name: WebAuthorings2026 Child
Template: WebAuthorings2026
Version: 1.0
Description: Child theme for WebAuthorings2026
Author: Howard Baltus
*/
/* Promo Cards: icon consistency + remove weird editor spacing */
.wa-promo-card .wa-promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(56, 214, 255, 0.10);
  margin-bottom: 10px;
}

.wa-promo-card .wa-promo-icon svg {
  display: block;
}

/* Prevent WP editor from injecting extra margins inside cards */
.wa-promo-card .wa-promo-text p {
  margin: 0 0 10px 0;
}

.wa-promo-card .wa-promo-text p:last-child {
  margin-bottom: 0;
}

/* Make your CTA link look like a button */
.wa-cta-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 204, 255, 0.95), rgba(56, 214, 255, 0.55));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 1px solid rgba(0, 204, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 204, 255, 0.15);
}
.wa-cta-btn:hover {
  filter: brightness(1.05);
}

/* Force promo card body text to 14px */
.wa-promo-card .wa-promo-text p {
    font-size: 14px !important ;
    line-height: 1.6;
}

/* Force promo card typography to site-wide standard */
.wa-promo-text {
  font-size: 14px !important;
  opacity: 1 !important; /* optional: remove the faint look */
}

/* DEBUG: force all GF fields visible */
.gform_wrapper .gfield { 
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
}

/* Force full-width form card */
.wa-dx-formcard{
  width: 100%;
  max-width: 100%;
}

.wa-dx-formcard .wa-promo-text{
  width: 100% !important;
}

/* Override TT column width for the form row only */
.wa-dx-wrap .wa-row > .wa-col-1-1{
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Gravity Forms submit button override (GF 2.7+ theme) */
.gform_wrapper.gravity-theme .gform_footer input.gform_button[type="submit"],
.gform_wrapper.gravity-theme .gform_page_footer input.gform_button[type="submit"],
.gform_wrapper.gravity-theme .gform_footer button.gform_button,
.gform_wrapper.gravity-theme .gform_page_footer button.gform_button{
  background: blue !important;
  border-color: blue !important;
  padding: 10px 16px !important;
  line-height: 1.2 !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.wa_post .postedon {
    color: #e1dbdb !important;
}

/* Center menu on iPad + desktop, leave phones alone */
@media (min-width: 768px) {

  /* Center the nav container */
  header nav,
  nav,
  .main-navigation,
  .navigation,
  .nav,
  .navbar,
  #wa_menu,
  .wa_hmenu {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Center the actual UL (covers most WP/TT outputs) */
  header nav > ul,
  nav > ul,
  ul.menu,
  ul.nav-menu,
  .menu > ul,
  .nav-menu,
  .main-navigation ul,
  #wa_hmenu_items,
  #wa_menu ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;     /* wraps nicely if needed */
    gap: 18px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
  }

  /* Prevent TT “stacking after 2 items” rules */
  header nav > ul > li,
  nav > ul > li,
  ul.menu > li,
  ul.nav-menu > li,
  .main-navigation ul > li,
  #wa_hmenu_items > li,
  #wa_menu ul > li {
    float: none !important;
    clear: none !important;
    width: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
  }

  /* Make sure links don’t become full-width blocks */
  header nav > ul > li > a,
  nav > ul > li > a,
  ul.menu > li > a,
  ul.nav-menu > li > a,
  #wa_hmenu_items > li > a {
    display: inline-block !important;
    white-space: nowrap !important;
  }

  /* Keep dropdowns normal */
  nav ul ul,
  .main-navigation ul ul,
  #wa_hmenu_items ul {
    display: block !important;
    flex: none !important;
    width: auto !important;
  }
}

@media (min-width: 1200px) {
  header nav > ul,
  nav > ul,
  ul.menu,
  ul.nav-menu,
  .main-navigation ul,
  #wa_hmenu_items,
  #wa_menu ul {
    flex-wrap: nowrap !important;
  }
}
