/*
Theme Name: Rally2Give
Description: Rally2Give Theme
Author: Smoking Gun Creative Agency
Author URI: https://nosmokenofire.com
Author Email: support@nosmokenofire.com
Version: 1.0.0
Text Domain: hello-elementor-child
Template: hello-elementor
*/

/* ========================================
   TABLE OF CONTENTS
   ========================================
   1. Utility Classes (Padding)
   2. Elementor Button Variants
   3. Contact Form 7 (CF7) Grid & Styling
   4. Navigation & Mobile Menu
   5. WooCommerce - Blocks & Cart
   6. WooCommerce - Product Gallery
   7. WooCommerce - Tabs & Reviews
   8. WooCommerce - Miscellaneous
   9. Flickr Album Plugin
   10. Elementor CTA & Loop Grid
   11. Element Pack (BDT) - Carousels & Arrows
   12. Owl Carousel
   13. Elementor N-Tabs & N-Menu
   14. Responsive Overrides & Fixes
   15. Miscellaneous / One-Offs
   ======================================== */


/* ========================================
   1. UTILITY CLASSES (PADDING)
   ======================================== */

/* Padding - All Sides */
.pad-s { padding: clamp(1rem, 0.8045rem + 0.0543vw, 1.5rem); }
.pad-m { padding: clamp(1.5rem, 1.3045rem + 0.0543vw, 2rem); }
.pad-l { padding: clamp(2rem, 1.6087rem + 0.1087vw, 3rem); }

/* Padding - Top & Bottom */
.pad-tb-s { padding: clamp(1.5rem, 1.1087rem + 0.1087vw, 2.5rem) 0; }
.pad-tb-m { padding: clamp(4rem, 3.6087rem + 0.1087vw, 5rem) 0; }
.pad-tb-l { padding: clamp(7rem, 6.6087rem + 0.1087vw, 8rem) 0; }

/* Padding - Top Only */
.pad-t-s { padding-top: clamp(1.5rem, 1.1087rem + 0.1087vw, 2.5rem); }
.pad-t-m { padding-top: clamp(4rem, 3.6087rem + 0.1087vw, 5rem); }
.pad-t-l { padding-top: clamp(7rem, 6.6087rem + 0.1087vw, 8rem); }

/* Padding - Bottom Only */
.pad-b-s { padding-bottom: clamp(1.5rem, 1.1087rem + 0.1087vw, 2.5rem); }
.pad-b-m { padding-bottom: clamp(4rem, 3.6087rem + 0.1087vw, 5rem); }
.pad-b-l { padding-bottom: clamp(7rem, 6.6087rem + 0.1087vw, 8rem); }


/* ========================================
   2. ELEMENTOR BUTTON VARIANTS
   ======================================== */

/* Base Button Transition */
.elementor-button {
    transition: filter 0.3s, background-color 0.3s;
}

.elementor-button:hover {
    filter: brightness(95%);
}

/* Button: Black */
.button-black .elementor-button {
    background-color: #000;
    color: #FFFFFF;
}

.button-black .elementor-button:hover {
    background-color: #858585;
}

/* Button: White (Outlined Primary) */
.button-white .elementor-button {
    background-color: #FFF;
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
}

.button-white .elementor-button:hover {
    background-color: #65809c;
    color: #FFFFFF;
}

/* Button: Bronze */
.button-bronze .elementor-button {
    background-color: #FFF;
    color: #837357;
    padding: 5px;
    outline: transparent;
    border: none;
}

.button-bronze .elementor-button:hover {
    background-color: #837357;
    color: #FFF;
    outline: transparent;
    border: none;
}

/* Button: Outline (Ghost) */
.button-outline .elementor-button {
    background-color: transparent;
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
}

.button-outline .elementor-button:hover {
    background-color: var(--e-global-color-primary);
    color: #FFF;
}

/* Elementor Kit Button Hover Reset */
.elementor-kit-12 button:hover {
    background: transparent;
}


/* ========================================
   3. CONTACT FORM 7 (CF7) GRID & STYLING
   ======================================== */

/* CF7 Flexbox Grid System */
.cf7-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.cf7-col-1, .cf7-col-2, .cf7-col-3, .cf7-col-4, .cf7-col-5, .cf7-col-6,
.cf7-col-7, .cf7-col-8, .cf7-col-9, .cf7-col-10, .cf7-col-11, .cf7-col-12 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 5px;
    padding-left: 5px;
}

@media (min-width: 576px) {
    .cf7-col-1  { -ms-flex: 0 0 8.333333%;  flex: 0 0 8.333333%;  max-width: 8.333333%;  }
    .cf7-col-2  { -ms-flex: 0 0 16.66667%;  flex: 0 0 16.66667%;  max-width: 16.66667%;  }
    .cf7-col-3  { -ms-flex: 0 0 25%;        flex: 0 0 25%;        max-width: 25%;        }
    .cf7-col-4  { -ms-flex: 0 0 33.33333%;  flex: 0 0 33.33333%;  max-width: 33.33333%;  }
    .cf7-col-5  { -ms-flex: 0 0 41.66667%;  flex: 0 0 41.66667%;  max-width: 41.66667%;  }
    .cf7-col-6  { -ms-flex: 0 0 50%;        flex: 0 0 50%;        max-width: 50%;        }
    .cf7-col-7  { -ms-flex: 0 0 58.33333%;  flex: 0 0 58.33333%;  max-width: 58.33333%;  }
    .cf7-col-8  { -ms-flex: 0 0 66.66667%;  flex: 0 0 66.66667%;  max-width: 66.66667%;  }
    .cf7-col-9  { -ms-flex: 0 0 75%;        flex: 0 0 75%;        max-width: 75%;        }
    .cf7-col-10 { -ms-flex: 0 0 83.33333%;  flex: 0 0 83.33333%;  max-width: 83.33333%;  }
    .cf7-col-11 { -ms-flex: 0 0 91.66667%;  flex: 0 0 91.66667%;  max-width: 91.66667%;  }
    .cf7-col-12 { -ms-flex: 0 0 100%;       flex: 0 0 100%;       max-width: 100%;       }

    .cf7-push-1  { margin-left: 8.333333%;  }
    .cf7-push-2  { margin-left: 16.66667%;  }
    .cf7-push-3  { margin-left: 25%;        }
    .cf7-push-4  { margin-left: 33.33333%;  }
    .cf7-push-5  { margin-left: 41.66667%;  }
    .cf7-push-6  { margin-left: 50%;        }
    .cf7-push-7  { margin-left: 58.33333%;  }
    .cf7-push-8  { margin-left: 66.66667%;  }
    .cf7-push-9  { margin-left: 75%;        }
    .cf7-push-10 { margin-left: 83.33333%;  }
    .cf7-push-11 { margin-left: 91.66667%;  }
}

/* CF7 Form Labels */
.wpcf7-form label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
}

/* CF7 Input Focus States */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline-color: #65809C !important;
    color: #333;
    box-shadow: 0 0 5px rgba(0, 123, 186, 0.3);
}


/* ========================================
   4. NAVIGATION & MOBILE MENU
   ======================================== */

/* Hide menu-highlight on desktop */
@media (min-width: 1025px) {
    .menu-highlight {
        display: none !important;
    }
}

/* Show & style menu-highlight on tablet/mobile */
@media (max-width: 1024px) {
    .menu-highlight {
        display: block !important;
        background-color: #e14242 !important;
        transition: background-color 0.3s ease, color 0.3s ease !important;
    }

    .menu-highlight a {
        color: #ffffff !important;
        transition: color 0.3s ease !important;
    }

    .elementor-nav-menu--dropdown .menu-highlight a:hover,
    .menu-highlight:hover,
    .menu-highlight:active {
        background-color: #cb3b3b !important;
    }

    .elementor-nav-menu--dropdown .menu-highlight a:hover,
    .menu-highlight:hover a,
    .menu-highlight:active a {
        color: #e6e6e6 !important;
    }
}

/* Elementor N-Menu Toggle Icon */
.elementor-widget-n-menu .e-n-menu-toggle[aria-expanded=true] svg {
    fill: #ffffff;
}

.elementor-widget-n-menu .e-n-menu-toggle:hover svg {
    fill: #ffffff;
}

/* Mobile N-Menu Width Constraint */
@media only screen and (max-width: 767px) {
    .elementor-element.elementor-element-7fff6bc.elementor-widget-mobile__width-auto.e-full_width.e-n-menu-layout-horizontal.e-n-menu-tablet.elementor-widget.elementor-widget-n-menu {
        max-width: 73px !important;
    }
}


/* ========================================
   5. WOOCOMMERCE - BLOCKS & CART
   ======================================== */

/* Proceed to Checkout Button - Hover Text Color Fix */
.wc-block-cart__submit-button.wc-block-components-button:not(.is-link):hover .wc-block-components-button__text,
.wc-block-cart__submit-button.wc-block-components-button:not(.is-link):active .wc-block-components-button__text {
    color: #ffffff !important;
}

/* Order Summary Product Name Font Size */
.wc-block-checkout__sidebar .wc-block-components-product-name {
    font-size: 1rem !important;
}

/* Hide WooCommerce Notices Wrapper */
.woocommerce-notices-wrapper {
    display: none;
}

/* Menu Cart Toggle Button Reset */
a#elementor-menu-cart__toggle_button {
    background: transparent;
    border: none;
    padding: 0;
}

/* Place Order Button - Hover/Active Darken Effect */
.wc-block-components-checkout-place-order-button.wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button.wc-block-components-button:active,
.wc-block-components-checkout-place-order-button.wc-block-components-button:focus {
    filter: brightness(90%);
    background-color: var(--e-global-color-primary) !important;
    color: #ffffff !important;
}

/* ========================================
   6. WOOCOMMERCE - PRODUCT GALLERY
   ======================================== */

/* Gallery Layout - Thumbnails Left, Main Image Right */
.woocommerce-product-gallery {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Main Image Container */
.woocommerce-product-gallery .flex-viewport {
    flex: 1 1 70%;
    max-width: 70%;
    overflow: hidden;
}

/* Thumbnail Column */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: flex;
    flex-direction: column;
    flex: 1 1 30%;
    max-width: 120px;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual Thumbnails */
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    transform: scale(1.05);
    border-color: #aaa;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #000;
}

/* Thumbnail Container Width Fix */
.woocommerce div.product div.images .flex-control-thumbs li {
    width: auto !important;
}

/* Product Gallery - Tablet/Mobile Stack */
@media (max-width: 1024px) {
    .woocommerce-product-gallery {
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
    }

    .woocommerce-product-gallery .flex-viewport,
    .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        max-width: 100%;
    }

    .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        flex-direction: row;
        justify-content: start;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .woocommerce-product-gallery .flex-control-thumbs li img {
        max-width: 80px;
    }

    ol.commentlist {
        padding: 0;
    }

    ul.tabs.wc-tabs {
        padding-left: 0 !important;
    }
}

/* Zoom Image Size Override */
.zoomImg {
    width: 800px !important;
    height: auto !important;
}


/* ========================================
   7. WOOCOMMERCE - TABS & REVIEWS
   ======================================== */

/* Center Tabs */
.woocommerce-tabs .wc-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.woocommerce-tabs .wc-tabs li {
    margin: 0 15px;
    float: none;
}

.woocommerce-tabs .wc-tabs li a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.woocommerce-tabs .wc-tabs li.active a {
    border-bottom: 2px solid #000;
    color: #000;
}

.woocommerce-tabs .wc-tabs li a:hover {
    color: #000;
    border-bottom: 2px solid #aaa;
}

/* Hide Review Title */
h2.woocommerce-Reviews-title {
    display: none;
}

/* Star Rating Colors */
.woocommerce .star-rating span::before {
    color: #F1C203;
}

.woocommerce p.stars a::before {
    color: #F1C203;
}

/* Hide Review Link */
a.woocommerce-review-link {
    display: none;
}

/* Hide Description Tab H2 */
div#tab-description h2 {
    display: none;
}


/* ========================================
   8. WOOCOMMERCE - MISCELLANEOUS
   ======================================== */

/* Hide Add to Cart Button on Archives */
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    display: none !important;
}

/* Product Data Tabs Full Width */
.elementor-element.elementor-element-84b9bea.elementor-widget.elementor-widget-woocommerce-product-data-tabs {
    width: 100%;
}

/* Mobile Add to Cart Centering */
@media (max-width: 767px) {
    :is(
        .elementor-widget-woocommerce-product-add-to-cart,
        .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
        .elementor-widget-wc-add-to-cart,
        .woocommerce div.product .elementor-widget-wc-add-to-cart
    ).elementor-add-to-cart--align-left:not([class*="--layout-stacked"]):not([class*="--layout-auto"]) form.cart.variations_form .woocommerce-variation-add-to-cart,
    :is(
        .elementor-widget-woocommerce-product-add-to-cart,
        .woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
        .elementor-widget-wc-add-to-cart,
        .woocommerce div.product .elementor-widget-wc-add-to-cart
    ).elementor-add-to-cart--align-left:not([class*="--layout-stacked"]):not([class*="--layout-auto"]) form.cart:not(.grouped_form):not(.variations_form) {
        justify-content: center;
        text-align: center;
    }

    .elementor-398 .elementor-element.elementor-element-c597b04 .cart button,
    .elementor-398 .elementor-element.elementor-element-c597b04 .cart .button {
        padding: 12px 60px;
    }
}


/* ========================================
   9. FLICKR ALBUM PLUGIN
   ======================================== */

[class^="awp-flickr-album-"] {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

[class^="awp-flickr-album-"] a[class*="single-album-"] {
    position: relative;
    width: 33.33%;
    padding: 5px;
}

[class^="awp-flickr-album-"] a[class*="single-album-"] img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    [class^="awp-flickr-album-"] a[class*="single-album-"] {
        width: 50%;
    }
}

@media (max-width: 480px) {
    [class^="awp-flickr-album-"] a[class*="single-album-"] {
        width: 100%;
    }
}


/* ========================================
   10. ELEMENTOR CTA & LOOP GRID
   ======================================== */

/* CTA Content Overlay Gradient */
div#rv .elementor-cta__content {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    min-height: 400px !important;
}

/* CTA Content Layout */
.elementor-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.elementor-cta__content-item {
    margin-bottom: 10px;
}

.elementor-cta__button-wrapper {
    margin-bottom: 0;
}

/* CTA Min Height */
.elementor-216 .elementor-element.elementor-element-24228fc {
    min-height: 400px;
}

/* Loop Grid Gap Override */
.elementor-element-645cc46 .elementor-loop-container.elementor-grid {
    row-gap: 10px !important;
    column-gap: 10px !important;
}

/* Hide Lightbox Slideshow */
div#elementor-lightbox-slideshow-single-img {
    display: none !important;
}

/* Blockquote Reset */
.elementor-blockquote--skin-border .elementor-blockquote {
    padding-inline-start: 0;
    margin-left: 0;
}


/* ========================================
   11. ELEMENT PACK (BDT) - CAROUSELS & ARROWS
   ======================================== */

/* Static Carousel Content Overlay */
#produdlly_slider .bdt-ep-static-carousel-content {
    padding: 20px;
    position: absolute;
    z-index: 1;
    bottom: 0px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Static Carousel Title */
.elementor-16 .elementor-element.elementor-element-a917f6b .bdt-ep-static-carousel-title {
    color: #FFFFFF;
    font-size: clamp(1.5rem, 2vw + 0.8rem, 1.5rem);
    font-weight: 800;
}

/* Static Carousel Readmore Icon */
.elementor-16 .elementor-element.elementor-element-a917f6b .bdt-ep-static-carousel-readmore .bdt-button-icon-align-right {
    margin-right: 8px;
    margin-top: 1px;
}

.bdt-button-icon-align-right {
    float: left;
}

/* Arrows - Hide on Desktop, Show on Mobile */
.bdt-arrows-container {
    display: none;
}

@media screen and (max-width: 768px) {
    .bdt-arrows-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


/* ========================================
   12. OWL CAROUSEL
   ======================================== */

.owl-carousel .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

@media (max-width: 480px) {
    .owl-carousel .owl-dots {
        bottom: -12px;
    }

    .owl-carousel .owl-dot span {
        width: 8px;
        height: 8px;
    }
}


/* ========================================
   13. ELEMENTOR N-TABS
   ======================================== */

.e-n-tabs-heading {
    display: flex;
}

.e-n-tab-title {
    flex: 1;
    min-width: 292px;
    padding: 10px 0;
    text-align: center;
}

@media (max-width: 768px) {
    button#e-n-tab-title-1753511122 {
        padding-left: 62px;
        padding-right: 62px;
    }
}


/* ========================================
   14. RESPONSIVE OVERRIDES & FIXES
   ======================================== */

/* Progress Bar Mobile Height */
@media (max-width: 768px) {
    .progress-bar-wrapper {
        height: 19px;
    }
}

/* Tablet Column Width Overrides */
@media (max-width: 1366px) and (min-width: 768px) {
    .elementor-302 .elementor-element.elementor-element-2819df9 {
        --width: 100% !important;
    }

    .elementor-302 .elementor-element.elementor-element-26ed777 {
        --width: 100% !important;
    }
}

/* RV Shortcode Typography */
#rv .elementor-shortcode {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}

@media only screen and (max-width: 767px) {
    #rv .elementor-shortcode {
        font-size: 18px;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    div#rv-post {
        display: -webkit-box;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .elementor-shortcode {
        font-size: 18px;
        font-weight: 500;
    }
}


/* ========================================
   15. MISCELLANEOUS / ONE-OFFS
   ======================================== */

/* Main Content Top Padding (Header Offset) */
main#content {
    padding-top: 141px;
}

/* Heading Widget Background Overrides */
.elementor-element.elementor-element-14b0fa4.elementor-widget.elementor-widget-heading,
.elementor-element.elementor-element-eed0124.elementor-widget.elementor-widget-heading,
.elementor-element.elementor-element-53cd3df.elementor-widget.elementor-widget-heading {
    background: #ebebeb;
}

/* Event Loop Item Top Padding */
.elementor.elementor-590.e-loop-item.e-loop-item-591.post-591.event.type-event.status-publish.has-post-thumbnail.hentry {
    padding-top: 30px;
}

/* Play Button Width */
.play-button {
    width: 94px !important;
}

/* Button Widget Text Color Fix */
.elementor-element.elementor-element-fbad222.elementor-mobile-align-center.elementor-widget.elementor-widget-button {
    color: white;
}