/**
Theme Name: TLI - Child 
Author: The Leaders Institute
Author URI: http://wpastra.com/about/
Description: TLI Theme 2025 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tli-child
Template: astra
*/

/* =============================================================================
   TYPOGRAPHY & CONTENT STYLING
   ============================================================================= */
.entry-content :where(h1,h2,h3,h4,h5,h6) {margin-top: 1em;margin-bottom: 1em;
}
h1, h2, h3, h4 {margin-top: 1em;margin-bottom: 1em;padding:0px;}
p {margin-top: 1em; margin-bottom: 1em;padding: 0px;}
.single-post .entry-content h2, .single-post .entry-content h3 {margin-top:    1.5em !important; margin-bottom: 1.5em !important;}

/* ========================= IMAGE VIDEO BUTTON STYLING ========================== */
/* Default: All images get basic styling, rounded corners, box shadow */
.entry-content img {border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}
/* No shadow Class Added to Images that don't need it */
.entry-content img.no-shadow, .entry-content .no-shadow img, .ast-article-single img.no-shadow, .logo-wrapper img, .map-wrapper-enhanced img {border-radius: 0px; box-shadow: none;}
/* Video embeds and iframes with .img-standard class */
.img-standard iframe, .entry-content .img-standard iframe, iframe.img-standard, .wp-block-video video {border-radius: 10px; box-shadow: 0 0 6px 0px #8e8e8e;}
/* Center the buttons in the team building activity flter. */
.wp-block-column .wp-block-button {text-align:center;margin-bottom:15px;margin-top:15px;}
/* ========================= LISTS AND ICON STYLING ========================== */
/* Icon Lists on Activity Pages - Used if small screen size makes the line wrap */
.txt-indent {padding-left:2em;text-indent:-2em;margin-bottom: 0px!important;line-height:1.5em!important;margin-block-start: 6px;}
/* ========================= Logo Slide Code ================================= */
    .logo-marquee {
      overflow: hidden;
      background: #fff;
      padding: 2rem 0;
      position: relative;
      -webkit-mask-image: linear-gradient(to right, transparent 0, #fff 80px, #fff calc(100% - 80px), transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #fff 80px, #fff calc(100% - 80px), transparent 100%);
    }
    .logo-marquee-track {
      display: flex;
      align-items: center;
      gap: 8rem;
      width: fit-content;
      min-width: 200vw;
      animation: marquee 40s linear infinite;
      will-change: transform;
    }
    @keyframes marquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .logo-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 150px;
      height: 150px;
      flex-shrink: 0;
    }
    .logo-wrapper img {
      height: 100%;
      width: auto;
      max-width: none;
      object-fit: contain;
      filter: grayscale(100%);
      transition: filter 0.3s ease;
    }
    .logo-wrapper img:hover {
      filter: grayscale(0%);
    }
    @media (max-width: 767px) {
      .logo-marquee-track {
        gap: 2rem;
        animation-duration: 28s;
        min-width: 300vw;
      }
      .logo-wrapper {
        width: 90px;
        height: 90px;
      }
    }

/* =============================================================================
   ACTIVITY CARD OVERRIDES - FIX RED BORDER ISSUE & MATCH OLD THEME STYLING
   ============================================================================= */

/* Override red border from Additional CSS .product class for activity cards */
.card.product,
.activities-grid-3x3 .card.product,
.activity-card-grid-2025 .card.product {
    border: none !important;
    background-color: #fff !important;
}

/* Restore proper activity card styling that was being overridden */
.activities-grid-3x3 .card.product {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease !important;
    cursor: pointer !important;
    font-size: inherit !important;
    align-items: stretch !important;
    padding: 0 !important;
}

/* Hover effect for activity cards */
.activities-grid-3x3 .card.product:hover {
    transform: translateY(-8px) !important;
}

/* Activity card images */
.activities-grid-3x3 .card.product img {
    width: 100% !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

/* Activity card content area */
.activities-grid-3x3 .card.product .card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Activity card titles */
.activities-grid-3x3 .card.product .card-content h3 {
    font-size: 1.25rem !important;
    color: #9d301b !important;
    margin-bottom: 0.25rem !important;
    text-align: left !important;
    font-weight: bold !important;
}

/* Activity card descriptions */
.activities-grid-3x3 .card.product .card-content p {
    font-weight: normal !important;
    color: #000000 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
    font-size: inherit !important;
    padding: 0 !important;
}

/* Learn more text styling */
.activities-grid-3x3 .card.product .learn-more-text {
    margin-top: auto !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #a43224 !important;
    text-align: left !important;
}

/* Learn more arrow */
.activities-grid-3x3 .card.product .learn-more-text::after {
    content: "→" !important;
    margin-left: 0.5rem !important;
    transition: margin-left 0.3s ease !important;
}

/* Learn more arrow hover effect */
.activities-grid-3x3 .card.product:hover .learn-more-text::after {
    margin-left: 0.75rem !important;
}

li {
    line-height: 1.8;
}

ul,
ol {
    font-size: 18px;
}

ol li, ul li {
    margin: 0px 15px!important;
}

blockquote {
    font-style: italic;
    letter-spacing: .4px;
}

/* =============================================================================
   BLOG CALLOUTS
   ============================================================================= */

.blogcallout {
    background-color: #9d301b;
    color: #fff !important;
    padding: 25px !important;
    border-radius: 17px;
    box-shadow: 0 0 6px 0 #8e8e8e;
    width: 100%;
    overflow: hidden;
    margin: 50px 0;
}

.blogcallout a:not(wp-block-button__link) {
    color: #fff;
    text-decoration: underline;
}

.blogcallout img {
    margin-bottom: 0;
    width: 100px;
    height: 100px;
}

.blogcallout_2 {
    background-image: linear-gradient(to bottom right, #d4a029, #d0452a);
}

.blogcallout_2 p {
    font-size: 16px;
    line-height: 1.5;
    margin: 1.5em 0;
}

.blogcallout_2 .wp-block-button__link {
    border: 2px solid #fff;
    text-decoration: none;
}

.blogcallout_2 .blogcallout_2__title {
    margin: 0;
    padding: 0;
    font-size: 26px;
    text-align: left;
}

.blogcallout_2 figure,
.blogcallout_2 picture,
.blogcallout_2 img {
    width: 100%;
    height: auto;
    box-shadow: unset;
}

/* =============================================================================
   FOOTER STYLING
   ============================================================================= */

/* Make ONLY the nav menus in Footer Widgets 2–4 white */
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"] .menu,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] .menu,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-4"] .menu {
    --ast-global-color-0: #ffffff;
    --ast-global-color-1: #ffffff;
}

.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"] .menu a,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] .menu a,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-4"] .menu a {
    color: #ffffff !important;
    text-decoration: none;
}

.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"] .menu a:hover,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] .menu a:hover,
.site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-4"] .menu a:hover {
    color: #cccccc !important;
}

/* Desktop only: add spacing to Footer Widget 2 */
@media (min-width: 769px) {
    .site-footer .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"] {
        padding-left: 40px; /* adjust as needed */
    }
}

/* =============================================================================
   GET-A-PRICE COLUMNS
   ============================================================================= */

.col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    -moz-column-gap: 50px;
    column-gap: 50px;
    align-items: start;
    row-gap: 25px;
    padding: 25px 0;
}

.col-layout>div {
    height: -moz-fit-content;
    height: fit-content;
}

.col-layout>img,
.col-layout h1,
.col-layout h2,
.col-layout h3 {
    margin-top: 0;
}

/* =============================================================================
   BLOCKS AND MAIN CONTENT STYLING
   ============================================================================= */

/* Blocks and main content styling */
.hoverable-card .wp-block-cover__inner-container {
    transition: transform 0.3s ease;
}
.hoverable-card:hover .wp-block-cover__inner-container {
    transform: translateY(-5px);
}
/* =============================================================================
   SLIDER COMPONENTS
   ============================================================================= */

.uagb-slider-container .swiper-button-prev,
.uagb-slider-container .swiper-button-next {
    background: unset;
}
.uagb-slider-container .swiper-button-next,
.uagb-slider-container .swiper-button-prev {
    color: #bd8c0f !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 44px!important;
}
.uagb-ifb-content img {
    border-radius: 17px!important;
    box-shadow: 0 0 6px 0px #8e8e8e;
    width: 100%;
    height: auto;
}
.uagb-slider-container {
    max-width: 800px;
}
.slider-content img {
    width: 25%;
    display: block;
    margin: auto;
}
.slider-content p {
    text-align: center;
    margin: 0;
    font-size: 18px;
}

@media (min-width: 768px) {
    .slider-content {
        display: flex;
        align-items: center;
    }
    .slider-content img {
        margin-right: 50px;
        width: 20%;
    }
}

/* =============================================================================
   ACTIVITY FILTER STYLES
   ============================================================================= */

.product-filters,
.clear-filters {
    max-width: 845px;
    margin-left: auto;
    margin-right: auto;
}

.product-filters>div {
    flex-direction: column;
    display: flex;
    row-gap: 5px;
}

.product-filters input[type=submit] {
    background-color: #d0452a;
    border-radius: 10px;
    border: 1px solid #d0452a;
    color: #fff;
    display: block;
    font-weight: 900;
    margin: 25px auto 0;
    padding: 0 15px;
    height: 35px;
}

.product-filters select {
    background-color: #fff;
    border: 1px solid #d0452a;
    border-radius: 10px;
    color: #d0452a;
    font-weight: 900;
    padding: 5px 10px;
}

.product-filters label {
    color: dimgray;
    font-size: 14px;
    position: relative;
    width: -moz-fit-content;
    width: fit-content;
}

.product-filters label img {
    position: absolute;
    right: -20px;
    top: 0;
}

.card:has(.product-filters) {
    margin-bottom: 25px;
}

.clear-filters {
    color: dimgray;
    display: block !important;
    font-size: 14px;
    padding-left: 8px;
    width: 100%;
}

.clear-filters span {
    font-style: italic;
}

.clear-filters:has(span:not(:empty)) {
    margin-top: 25px;
}

.clear-filters button {
    border: 1px solid #d0452a;
    color: #d0452a;
    display: none;
    margin-left: 10px;
    background-color: #fff;
}

.products-no-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    margin: 50px auto 0;
}

/* =============================================================================
   GET-A-PRICE PRODUCT LIST GRID CODE (FROM ADDITIONAL CSS - PRIORITY VERSION)
   ============================================================================= */

.product-list {
    display: grid;
    row-gap: 35px;
    padding: 15px 0;
    position: relative;
}

.product-list .product:nth-child(n+5) {
    display: none;
}

.product-list_3 .product:nth-child(n+4) {
    display: none;
}

.product-list_all {
    min-height: 150px;
}

.product-list_all .product {
    background-color: unset;
    text-align: center;
}

.product-list_all .product a {
    color: #9d301b;
    margin-bottom: 5px;
}

.product-list_pricing .product span {
    align-self: center;
    display: block;
    z-index: 1;
    color: #fff;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3215686275), rgba(0, 0, 0, 0));
    text-align: center;
    padding: 25px 15px;
    font-size: 32px;
}

.product-list_pricing br {
    display: none;
}

.show-more-button {
    font-weight: 900;
    color: #d0452a;
    text-decoration: underline;
    font-size: 18px;
    grid-column: 1/-1;
    width: -moz-fit-content;
    width: fit-content;
    margin: auto;
}

.gradient-section .show-more-button {
    color: #fff;
}

.product-list_show-more .product:nth-child(n+5) {
    display: flex;
}

.product-list_show-more .show-more-button {
    display: none;
}

.product-list_show-more.product-list_3 .product:nth-child(n+4) {
    display: flex;
}

.product-list_random-charity .product {
    display: flex !important;
}

.product {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    align-items: center;
    padding: 0 0 15px;
    border: 3px solid #d0452a;
    border-radius: 10px;
    overflow: hidden;
    background-color: #d0452a;
    height: 100%;
}

.product a {
    display: flex;
    margin-top: 10px;
    color: #fff;
    height: -moz-fit-content;
    height: fit-content;
    align-items: center;
    padding: 0 5px;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.product a:has(img, picture) {
    margin: 0;
    padding: 0;
}

.product a:not(:has(img, picture)) {
    padding: 0 10px;
}

.product p {
    padding: 0 10px;
    font-size: 17px;
}

.product picture,
.product img,
.product picture img {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: unset;
}

.product img {
    aspect-ratio: 3/2;
    height: auto;
    -o-object-fit: cover !important;
    object-fit: cover !important;
}

.product>img {
    margin-bottom: 5px;
}

.product span {
    margin-top: 8px;
    padding: 0 10px;
}

.product-list_pricing .product_square {
    justify-content: center;
}

.product-list_pricing .product_square span {
    font-size: 32px;
}

.product-list_pricing>p {
    display: none;
}

.product_hidden {
    display: none;
}

.product_white {
    background-color: #fff;
}

.product_white a {
    color: #d0452a;
}

.product_podcast>a {
    font-size: 20px;
}

.product_podcast>span {
    color: #fff;
    font-size: 14px;
}

.product_city a {
    font-size: 20px;
}

.product_square {
    aspect-ratio: 1/1;
    position: relative;
    padding: 0;
}

.product_square img,
.product_square picture {
    width: 100%;
    height: 100%!important;
    position: absolute;
    left: 0;
    top: 0;
}

.product_square a {
    background-color: unset;
    height: 100%!important;
    width: 100%;
    color: #fff;
    z-index: 1;
    font-size: 32px;
    padding: 15px 10% 15%;
    margin: 0;
}

.price-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 25px;
}

.price-container img {
    display: block;
    border-radius: 17px;
    box-shadow: 0 0 6px 0px #8e8e8e;
    width: 100%;
    height: auto;
    margin: 10px auto;
}

.price-container picture.img-standard>img {
    border-radius: 17px;
    box-shadow: 0 0 6px 0px #8e8e8e;
    width: 100%;
    height: auto;
}

.products-loading {
    background-color: rgba(0, 0, 0, .316);
    background-image: url("./assets/loading.gif");
    background-size: 200px 200px;
    background-repeat: no-repeat;
    background-position: 50% 100px;
    display: none;
    height: 100%;
    position: absolute;
    width: 100%;
}

.grid-2-col,
.grid-3-col {
    display: grid;
    row-gap: 15px;
    margin: 50px 0 75px;
}

.grid-2-col img,
.grid-3-col img {
    display: block;
    max-height: 100px;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

.grid-2-col>br,
.grid-3-col>br {
    display: none;
}

.grid_editor img {
    max-width: unset;
    max-height: unset;
}

.grid_editor>p {
    display: none;
}

/* =============================================================================
   ACTIVITIES GRID 3x3 STYLES (FROM CHILD THEME)
   ============================================================================= */

#activities-section,
#activities-section *,
.activities-grid-3x3,
.activities-grid-3x3 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.activities-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 1rem 1rem;
}

.activities-grid-3x3 .card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.activities-grid-3x3 .card:hover {
    transform: translateY(-8px);
}

.activities-grid-3x3 .card img {
    width: 100%;
    display: block;
}

.activities-grid-3x3 .card-content {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activities-grid-3x3 .card-content h3 {
    font-size: 1.25rem;
    color: #9d301b;
    margin-bottom: 0.25rem;
    text-align: left;
}

.activities-grid-3x3 .card-content p {
    font-weight: normal;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.activities-grid-3x3 .learn-more-text {
    margin-top: auto;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    color: #a43224;
}

.activities-grid-3x3 .learn-more-text::after {
    content: "→";
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.activities-grid-3x3 .card:hover .learn-more-text::after {
    margin-left: 0.75rem;
}

/* =============================================================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================================================= */

@media (max-width: 992px) {
    .activities-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .activities-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
}

@media(min-width: 768px) {
    .posts-container {
        grid-template-columns: 1fr 1fr;
        -moz-column-gap: 35px;
        column-gap: 35px;
    }

    .product-list {
        grid-template-columns: 1fr 1fr;
        -moz-column-gap: 25px;
        column-gap: 25px;
        row-gap: 45px;
    }

    .product-list_3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid-2-col {
        -moz-column-gap: 25px;
        column-gap: 25px;
    }

    .grid-2-col>* {
        width: 100%;
    }

    .grid-2-col>br {
        display: none;
    }

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        row-gap: 25px;
        margin: 75px 0 125px;
    }

    .grid_editor {
        -moz-column-gap: 25px;
        column-gap: 25px;
        align-items: start;
    }

    .product-filters {
        align-items: center;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        -moz-column-gap: 43px;
        column-gap: 43px;
    }

    .product-filters input[type=submit] {
        grid-column: 1/3;
        margin: 25px auto 0;
        width: 170px;
    }

    .clear-filters {
        grid-row: 3/4;
    }
}

@media(min-width: 782px) {
    .wp-block-columns.locations-list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(min-width: 992px) {
    .posts-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .product-list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        row-gap: 60px;
    }

    .product-list .product:nth-child(n+5) {
        display: flex;
    }

    .product-list .show-more-button {
        display: none;
    }

    .product-list_3 .product:nth-child(n+4) {
        display: flex;
    }

    .product-list_3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .product-list_5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product_square a {
        font-size: 24px;
    }

    .product-list_pricing .product_square span {
        font-size: 24px;
    }

    .price-container {
        row-gap: 5px;
        justify-content: space-between;
    }

    .price-container>* {
        width: 48% !important;
    }

    .grid-3-col {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid_editor {
        -moz-column-gap: 50px;
        column-gap: 50px;
    }
}

@media(min-width: 1180px) {
    .wp-block-columns.locations-list {
        display: flex;
    }
}

@media(min-width: 1260px) {
    .product_square a {
        font-size: 28px;
    }

    .product-list_pricing span {
        font-size: 28px; 
        line-height: 1.1em;
    }
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

/* Reverse column stacking order for Astra/Spectra containers */
.uno-reverse .uagb-container-inner-blocks-wrap {
    display: flex !important;
    flex-direction: column-reverse !important;
}

/* For wider screens, maintain normal order */
@media (min-width: 769px) {
    .uno-reverse .uagb-container-inner-blocks-wrap {
        flex-direction: row !important;
    }
}

.d-none {
    display: none!important;
}