/**
Theme Name: Astra Child
Theme URI: https://gfoutdoorfitness.com/
Author: greenfields
Author URI: https://gfoutdoorfitness.com/
Template: astra
Version: 1.3.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra child
AMP: true
**/

/* Mega Menu Hover Styles */
.mm-section :hover {
    background-color: #01824c10 !important;
    border-radius: 8px !important;
}

.mm-section2 :hover {
    background-color: #b91f2910 !important;
    border-radius: 8px !important;
}

/* Hide arrow next to menu item with sub-menu items */
.main-header-bar .menu-item-has-children > a:after,
.main-header-bar .page_item_has_children > a:after {
    content: none;
}

/* General Body Styles */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

.text-shadow {
    text-shadow: -3px 3px #00000099;
}

/* WPForms Button Styles */
.wpforms-form input[type=submit],
.wpforms-form button[type=submit] {
    background-color: #004E2E !important;
    border-radius: 8px;
    padding: 20px 50px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    margin-top: 12px !important;
}

.wpforms-form input[type=submit]:hover,
.wpforms-form button[type=submit]:hover {
    background-color: #FFBA00 !important;
    color: #000000 !important;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
    margin: 0 auto !important;
    display: block !important;
}

/*==================================
  Modernized Unit Card Styles 
====================================*/

.unit-card-link {
    display: flex;
    margin: 10px;
    box-sizing: border-box;
    text-decoration: none !important;
    color: inherit;
}

.unit-card {
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.2s ease-in-out;
}

.unit-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.unit-card-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    background-color: #2b5748;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 1.1em;
    box-sizing: border-box;
    text-decoration: none !important;
}

.unit-card-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.unit-card-image-box {
    box-sizing: border-box;
    padding: 0 5px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unit-card-image-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Image Display */
@media (min-width: 769px) {
    .unit-card-image-box {
        flex-basis: 33.33%;
    }
}

@media (max-width: 768px) {
    .unit-card-image-box {
        flex-basis: 50%;
    }

    .unit-card-image-box:last-of-type {
        display: none;
    }
}

/* Other Styles */
.pkg-descrip {
    margin: 10px 0;
    padding: 10px;
    float: right;
}

.pkg-pdf-dl-text {
    text-align: center;
    margin-top: 0;
    font-size: 16pt;
    font-weight: 900;
    color: rgb(243, 115, 33);
}

.unit-count-1 {
    background: #F90;
    color: white;
    border-radius: 3px;
    padding: 2px;
    float: left;
}

.unit-count-2 {
    background: white;
    color: #F90;
    float: left;
    margin: 2px;
    padding: 3px;
}

.post-meta {
    display: none;
}

/* ================================
   Scoped Mega Menu Hover Preview
================================== */

.package-preview-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.preview-menu {
  flex: 0 0 250px;
}

.preview-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.preview-item {
  display: none;
  width: 100%;
}

.preview-item.active {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.preview-item img {
  max-width: 300px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.preview-item p {
  margin: 0;
  flex: 1;
  max-width: 100%;
  line-height: 1.5;
}

.mm-links a:hover,
.mm-links a.mm-active {
    background-color: #01824c10 !important;
    color: #000 !important;
}

/* ================================
   Gutenberg Table Styling
================================== */
/* Package Table Minimal Styling */


.package-table table {
    width: 100%;
    border-collapse: collapse;
}

.package-table td,
.package-table th {
    padding: 14px 20px; /* 6px top/bottom, 10px left/right */
}

/* Force styling for Gutenberg table in .package-table */

.package-table {
    border-radius: 8px !important;
    overflow: hidden;
}

.package-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px !important;
    overflow: hidden;
}



/* Force removal of underlines in links inside table */
.package-table a,
.package-table td a,
.package-table th a {
    text-decoration: none !important;
}


/* Add left padding only to the first column */
.package-table td:first-child,





.package-table th:first-child {
    padding-left: 20px;
}


body a:not(.unit-card-link):not(.unit-card-link *):not(.mm-links a):not(.wp-block-button__link):not(.wpforms-submit):not(.ast-button):not(.menu-link):not(.uagb-tabs-list):not(.uagb-tabs-list *) {
    color: var(--ast-global-color-0);
}




/* Scope EVERYTHING to the grid wrapper so unit cards remain untouched */
.cards-white :where(.rt-holder) {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;          /* prevents grey peek-through at rounded corners */
  display: flex;
  flex-direction: column;
  height: 100%;              /* equal-height card foundation */
  box-shadow: 0 2px 6px rgba(0,0,0,.06); /* optional */
}

/* Ensure images don't create gaps and fill width */
.cards-white :where(.rt-img-holder img) {
  display: block;
  width: 100%;
  height: auto;
}

/* Let the text area expand to fill remaining height */
.cards-white :where(.rt-detail) {
  padding: 14px 16px;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
}

/* Make titles wrap nicely without shrinking the card */
.cards-white :where(.entry-title) {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.cards-white :where(.entry-title a) {
  text-decoration: none;
  color: inherit;
}

/* Equalize heights across the row regardless of title wrapping */
.cards-white {
  /* works whether the parent is grid or flex */
  align-items: stretch;
}

/* If the grid parent is FLEX, ensure children stretch */
.cards-white > * {
  align-self: stretch;  /* harmless for grid; helpful for flex */
}

/* If your grid is using CSS Grid, make sure items stretch */
.cards-white {
  /* Only applied if it's a grid; ignored otherwise */
  /* align-items: stretch; already included above */
}

body a:not(.unit-card-link):not(.unit-card-link *):not(.mm-links a):not(.wp-block-button__link):not(.wpforms-submit):not(.ast-button):not(.menu-link):not(.uagb-tabs-list):not(.uagb-tabs-list *):hover {
    color: var(--ast-global-color-1);
}





/* ================================
   Equal-height grids (scoped)
   Usage: <div class="equal-cards cards-white">…grid…</div>
   .equal-cards  -> equalizes heights
   .cards-white  -> white card styling
================================== */

/* ---- RadiusTheme Post Grid ---- */
.equal-cards .rt-row,
.equal-cards .rt-grid-default,
.equal-cards .rt-grid,
.equal-cards .rt-masonry {
  align-items: stretch;
}
.equal-cards .rt-col,
.equal-cards .rt-grid-item,
.equal-cards .rt-post-item {
  display: flex;
  align-items: stretch;
}
.equal-cards .rt-holder {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

/* ---- Spectra / UAGB Post Grid ---- */
.equal-cards .uagb-post-grid,               /* grid wrapper */
.equal-cards .uagb-post__items,             /* inner list */
.equal-cards .uagb-post__items-wrap {
  align-items: stretch;
}
.equal-cards .uagb-post__inner-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.equal-cards .uagb-post__image img {
  display: block; width: 100%; height: auto;
}

/* ---- Core Query Loop (wp:query / wp:post-template) ---- */
.equal-cards .wp-block-post-template {
  display: grid;            /* keeps your existing columns */
  align-items: stretch;     /* equal row heights */
}
.equal-cards .wp-block-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.equal-cards .wp-block-post-featured-image img {
  display: block; width: 100%; height: auto;
}

/* ---- Optional: make cards white & tidy (scoped) ---- */
.cards-white .rt-holder,
.cards-white .uagb-post__inner-wrap,
.cards-white .wp-block-post {
  background: #fff;

	
	/* ===== Spectra / UAG Post Grid — equal height + white cards (scoped) ===== */
/* Make the list act like a flex row so items stretch to the tallest */
.equal-cards .uagb-post-grid .uagb-post__items { 
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Each article behaves like a column container */
.equal-cards .uagb-post-grid .uagb-post__article {
  display: flex;
  align-items: stretch;
}

/* The actual card container fills the column height */
.equal-cards .uagb-post-grid .uagb-post__inner-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

/* White card styling (opt-in via .cards-white) */
.cards-white .uagb-post-grid .uagb-post__inner-wrap {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Image hygiene */
.cards-white .uagb-post-grid .uagb-post__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Let text area grow so heights equalize cleanly */
.cards-white .uagb-post-grid .uagb-post__text {
  padding: 14px 16px;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
}

/* Optional: tidy titles */
.cards-white .uagb-post-grid .uagb-post__title {
  margin: 0;
  line-height: 1.3;
  font-size: 1.05rem;
}
.cards-white .uagb-post-grid a { text-decoration: none; color: inherit; }
.cards-white .uagb-post-grid .uagb-post__inner-wrap:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
align-content
	
	
	
/* Hanging indent only when first char is a bullet (•) */
.wp-block-uagb-advanced-heading .uagb-heading-text.has-leading-bullet {
  text-indent: -0.6em;   /* pulls the bullet back out slightly */
  padding-left: 1.2em;   /* ensures wrapped lines line up after bullet */
  display: block;
  line-height: 1.5;
  white-space: normal;
}

