/*
 Theme Name:   Satsang Child
 Theme URI:    https://satsang.hu/
 Description:  Satsang Child Theme
 Author:       the WeDesignTech team
 Author URI:   https://wedesignthemes.com/
 Template:     kriya-yoga-el
 Version:      1.0.0
 Text Domain:  satsang-child
*/

/* Hide search widget in sidebar */
.widget_search,
.widget.widget_search,
.widget_block.widget_search {
    display: none !important;
}

/* Video Grid Widget Hover Effect */
.video-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

.video-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 10 !important;
}

/* Watched Video Checkmark */
.watched-checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    border-radius: 4px;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.watched-checkmark:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.watched-checkmark.watched {
    background-color: #28a745;
    /* Green */
    border-color: #28a745;
}

.watched-checkmark.watched::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Fejléc háttérszín módosítása és minta visszaállítása (Normál állapot) */
#header-wrapper,
#header-wrapper #header:only-child .wdt-no-header-builder-content,
#header-wrapper #header:only-child .wdt-no-header-builder-content:before,
.wdt-custom-height-header:before,
.wdt-custom-height-header2:before,
.main-title-section-wrapper>.main-title-section-bg:after {
    background-color: #55745d !important;
    /* Kért zöld szín */
    background-image: url('../kriya-yoga-el/assets/images/pattern-chakras-white.png') !important;
    /* Minta visszaállítása */
    background-repeat: repeat !important;
}



/* Scroll to Top Button Override */
#back-to-top {
    background-color: #55745d !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    /* Ensure no border interferes */
}

/* Ensure the icon inside is white */
#back-to-top i {
    color: #fff !important;
}

/* Preloader Background Override */
.wdt-loader-container,
.wdt-loader-inner,
.custom_loader,
#loader-wrapper,
.wdt-loader,
.wdt-site-loader,
.site-loader,
.custom-loader {
    background-color: #55745d !important;
}

/* Carousel Item Styling (Items 5-8) */
/* Item 5 - Red */
.wdt-custom-image-box-1 .wdt-column:nth-child(5) .wdt-content-item .wdt-content-title h5 a {
    color: #cb0020;
}

.wdt-custom-image-box-1 .wdt-column:nth-child(5) .wdt-content-item .wdt-content-image>a {
    border-color: #cb0020;
}

/* Item 6 - Green */
.wdt-custom-image-box-1 .wdt-column:nth-child(6) .wdt-content-item .wdt-content-title h5 a {
    color: #55745d;
}

.wdt-custom-image-box-1 .wdt-column:nth-child(6) .wdt-content-item .wdt-content-image>a {
    border-color: #55745d;
}

/* Item 7 - Gold */
.wdt-custom-image-box-1 .wdt-column:nth-child(7) .wdt-content-item .wdt-content-title h5 a {
    color: #b8860b;
}

.wdt-custom-image-box-1 .wdt-column:nth-child(7) .wdt-content-item .wdt-content-image>a {
    border-color: #b8860b;
}

/* Item 8 - Blue */
.wdt-custom-image-box-1 .wdt-column:nth-child(8) .wdt-content-item .wdt-content-title h5 a {
    color: #201fbe;
}

.wdt-custom-image-box-1 .wdt-column:nth-child(8) .wdt-content-item .wdt-content-image>a {
    border-color: #201fbe;
}

/* Footer Background Fix - Applied globally */
.elementor-element.elementor-element-222a166 {
    background-image: url('/wp-content/uploads/2025/12/testimonial-bg.png') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Ensure footer background overlay is visible with green color - Maximum specificity */
body.page-id-11634 .elementor-element.elementor-element-222a166>.elementor-background-overlay {
    background-color: #55745d !important;
    opacity: 0.85 !important;
    display: block !important;
}

/* Force all footer text to white on registration page */
body.page-id-11634 .elementor-element.elementor-element-222a166 h1,
body.page-id-11634 .elementor-element.elementor-element-222a166 h2,
body.page-id-11634 .elementor-element.elementor-element-222a166 h3,
body.page-id-11634 .elementor-element.elementor-element-222a166 h4,
body.page-id-11634 .elementor-element.elementor-element-222a166 h5,
body.page-id-11634 .elementor-element.elementor-element-222a166 h6,
body.page-id-11634 .elementor-element.elementor-element-222a166 p,
body.page-id-11634 .elementor-element.elementor-element-222a166 span,
body.page-id-11634 .elementor-element.elementor-element-222a166 li,
body.page-id-11634 .elementor-element.elementor-element-222a166 a,
body.page-id-11634 .elementor-element.elementor-element-222a166 div {
    color: #ffffff !important;
}

/* Force separator borders to white */
body.page-id-11634 .elementor-element.elementor-element-222a166 .elementor-divider-separator {
    border-top-color: #ffffff !important;
}

/* Force all icons to white */
body.page-id-11634 .elementor-element.elementor-element-222a166 i,
body.page-id-11634 .elementor-element.elementor-element-222a166 svg,
body.page-id-11634 .elementor-element.elementor-element-222a166 .elementor-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Sat Sandesh Widget Hover Effect */
.sat-sandesh-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

.sat-sandesh-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 10 !important;
}

/* News Page (Blog Entry) Curved Lift Effect */
.blog-entry {
    transition: transform 0.3s ease !important;
    position: relative !important;
    background-color: #fffcf3;
    /* Ensure content covers the shadow */
    z-index: 1;
}

/* The shadow element */
.blog-entry::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 15px;
    border-radius: 50%;
    /* Creates the curve */
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.3s ease !important;
    opacity: 0;
}

/* Hover State */
.blog-entry:hover {
    transform: translateY(-5px) !important;
    /* Gentle physical lift */
}

.blog-entry:hover::after {
    bottom: -10px;
    /* Push shadow down */
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.5) !important;
    /* The curved shadow */
    opacity: 1;
}

/* Universal Hover Effect for Grids (Books, Shop, Posts) */
.wdt-listings-item-wrapper,
.wdt-content-item,
.wdt-portfolio-item,
ul.products li.product,
.elementor-post,
.elementor-portfolio-item,
.blog-entry {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    border-radius: 4px;
    /* Ensure somewhat consistent rounding */
}

/* Hover State */
.wdt-listings-item-wrapper:hover,
.wdt-content-item:hover,
.wdt-portfolio-item:hover,
ul.products li.product:hover,
.elementor-post:hover,
.elementor-portfolio-item:hover,
.blog-entry:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 10 !important;
}

/* Fix for background transparency issues on some elements */
ul.products li.product,
.elementor-post {
    background-color: #fff;
}

/* Custom Books Grid Structure (Applied via script fix) */
.book-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
}

.custom-book-item {
    width: 250px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    /* Standard radius */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
    /* Very subtle border */
    position: relative;
    /* Ensure transition applies to transform and shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ensure images inside custom items behave well */
.custom-book-item img {
    margin-top: auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* Ensure text inside custom items is styled */
.custom-book-item p {
    width: 100%;
    margin-bottom: 5px;
}

/* Specific Hover for these items - LIFT ONLY */
.custom-book-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8) !important;
    border-color: #f0f0f0 !important;
    /* Keep border same */
}

/* UNIVERSAL SLIDER ARROW REPLACEMENT (VERIFIED) */
/* Target Smart Slider (Nextend), Elementor, Swiper, Slick */
.nextend-arrow,
.nextend-arrow-previous,
.nextend-arrow-next,
.n2-ss-widget-arrow-previous,
.n2-ss-widget-arrow-next,
.elementor-swiper-button,
.swiper-button-prev,
.swiper-button-next,
.slick-prev,
.slick-next {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Hide inner content & pseudo-backgrounds */
.nextend-arrow *,
.nextend-arrow img,
.nextend-arrow svg,
.n2-ss-widget-arrow-previous *,
.elementor-swiper-button *,
.swiper-button-prev::after,
.swiper-button-next::after,
.slick-prev::before,
.slick-next::before {
    display: none !important;
    background: transparent !important;
    content: none !important;
}

/* Draw NEW White Arrow - PREVIOUS */
.nextend-arrow-previous::after,
.n2-ss-widget-arrow-previous::after,
.elementor-swiper-button-prev::after,
.swiper-button-prev::after,
.slick-prev::after {
    content: '\2039' !important;
    /* < */
    color: white !important;
    font-size: 60px !important;
    line-height: 1 !important;
    display: block !important;
    font-family: inherit !important;
    font-weight: 300 !important;
}

/* Draw NEW White Arrow - NEXT */
.nextend-arrow-next::after,
.n2-ss-widget-arrow-next::after,
.elementor-swiper-button-next::after,
.swiper-button-next::after,
.slick-next::after {
    content: '\203A' !important;
    /* > */
    color: white !important;
    font-size: 60px !important;
    line-height: 1 !important;
    display: block !important;
    font-family: inherit !important;
    font-weight: 300 !important;
}

/* FIX: Reduce header menu padding and unify font size to prevent wrapping */
.wdt-header-menu .wdt-primary-nav>li>a {
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 18px !important;
}

/* --- Satsang Team Widget Shortcode Styles --- */

/* Force Description and its parent to fill the container and remove overlapping padding */
.wdt-custom-team-style-01 .wdt-content-detail-group {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    /* Remove bottom space so white bg touches border */
    width: 100% !important;
}

.wdt-custom-team-style-01 .wdt-content-description,
.elementor-widget-wedesigntech-team .wdt-content-description {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    /* Ensure no bottom gap */
    padding-bottom: 15px !important;
    /* Optional: keep some internal padding if needed, but ensure bg extends */
}

.satsang-team-cols {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin-top: 15px;
    transform: none;
    padding: 0;
}

.satsang-team-col {
    flex: 0 1 auto;
    width: auto;
    text-align: center;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove previous padding hacks */
.satsang-team-col:first-child .satsang-team-col-icon,
.satsang-team-col:last-child .satsang-team-col-icon {
    padding: 0;
}

.satsang-team-col-icon {
    margin-bottom: 10px;
    width: 100%;
}

.satsang-team-col-icon img {
    display: block;
    margin: 0 auto;
    max-width: 48px;
    /* Default size, changeable via CSS override */
    height: auto;
}

/* Responsive: Stack on mobile */
@media (max-width: 767px) {
    .satsang-team-cols {
        flex-direction: column;
        gap: 25px;
    }
}

/* Style for Font Awesome Icons in Team Cols */
.satsang-team-col-icon i {
    font-size: 32px;
    color: #667eea;
    /* Adjust to match theme */
    margin-bottom: 10px;
    display: inline-block;
}

/* Fix Icon Color and Spacing */
.satsang-team-col-icon i {
    color: #333333 !important;
    /* Force Black/Dark Grey */
    margin-bottom: 5px;
    line-height: 1;
}

/* Fix paragraph spacing inside columns */
.satsang-team-col-content p {
    margin-top: 0;
    margin-bottom: 5px;
}

/* Typography for Statsang Team Columns */
.satsang-team-col-wrapper {
    display: inline-block;
    /* Center this block within the parent column */
    text-align: left;
    /* Align everything inside (Icon + Text) to the left */
    max-width: 100%;
}

.satsang-team-col-content {
    font-family: 'Times New Roman', Times, serif;
    /* Removed !important to allow overrides */
    /* text-align is now handled by wrapper */
    display: block;
    color: #333;
    max-width: 100%;
    /* Prevent overflow */
}

/* Title/Label style (e.g. "Helyszín") */
.satsang-team-col-content strong,
.satsang-team-col-content b {
    display: block;
    /* Force new line */
    font-weight: bold;
    font-size: 18px;
    /* Default title size */
    margin-bottom: 5px;
    text-align: left;
    /* Reset to left alignment matching wrapper */
}

/* Ensure Icon aligns left too */
.satsang-team-col-icon {
    text-align: left;
    margin-bottom: 10px;
    width: 100%;
}

/* Regular content style */
.satsang-team-col-content,
.satsang-team-col-content p,
.satsang-team-col-content span,
.satsang-team-col-content div {
    font-size: 16px;
    /* Default content size, user can override inline */
    line-height: 1.4;
}

/* Link Styling within Team Columns */
.satsang-team-col-content a {
    color: inherit !important;
    /* Keep text color same as surrounding text */
    text-decoration: none !important;
    /* Remove underline */
    transition: color 0.3s ease;
}

.satsang-team-col-content a:hover {
    color: #b8860b !important;
    /* Golden hover effect */
}

/* Remove borders from Team Widget */
.elementor-widget-wedesigntech-team,
.elementor-widget-wedesigntech-team .elementor-widget-container,
.elementor-widget-wedesigntech-team .dt-sc-team-item {
    border: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Remove 'swapping border' effect from Custom Team Style 01 */
.wdt-custom-team-style-01 .wdt-content-item::before,
.wdt-custom-team-style-01 .wdt-content-item::after,
.wdt-custom-team-style-01 .wdt-content-item:hover::before,
.wdt-custom-team-style-01 .wdt-content-item:hover::after {
    display: none !important;
    border: none !important;
    transform: none !important;
    content: none !important;
}

/* Add custom 2px dark golden border to the user's specific team style */
.wdt-custom-team-style-01 .wdt-content-item {
    border: 2px solid #b8860b !important;
    /* Dark Golden Rod */
    border-radius: 0 !important;
    /* Optional: if they want sharp corners, or keep default */
    margin: 2px;
    /* Ensure no overlap clipping */
}

/* Ensure specific explicit colored links in Team Col Content are respected */
.satsang-team-col-content a[style*="color"] {
    color: inherit !important;
}

.satsang-team-col-content a {
    /* Ensure regular links are clickable and visible */
    pointer-events: auto;
    position: relative;
    z-index: 2;
    /* Bring above the wrapper link if needed */
}

/* Fix for the blue links specifically if they are being overridden */
.satsang-team-col-content a[href^="tel:"],
.satsang-team-col-content a[href^="mailto:"] {
    color: #0000FF !important;
}

/* --- Fix for Footer Map Icon Overlap (Mobile) --- */
@media (max-width: 767px) {
    .satsang-team-col-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 10px !important;
        /* Add explicit gap between icon and text */
        box-sizing: border-box !important;
        width: 100% !important;
        position: relative !important;
        /* Ensure normal flow, not absolute */
    }

    .satsang-team-col-icon {
        flex: 0 0 auto !important;
        /* Don't grow or shrink */
        flex-shrink: 0 !important;
        /* Prevent icon from shrinking */
        width: auto !important;
        max-width: 50px !important;
        min-width: 40px !important;
        margin: 0 !important;
        margin-top: 4px !important;
        /* Optical adjustment */
        margin-right: 10px !important;
        /* Explicit spacing */
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
        position: static !important;
        /* Ensure not positioned absolutely */
    }

    .satsang-team-col-icon i,
    .satsang-team-col-icon img {
        margin: 0 !important;
        display: inline-block !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .satsang-team-col-content {
        flex: 1 1 auto !important;
        /* Take remaining space */
        flex-grow: 1 !important;
        /* Ensure it grows to fill space */
        width: auto !important;
        min-width: 0 !important;
        /* Allow flex item to shrink below content size */
        max-width: calc(100% - 60px) !important;
        /* Reserve space for icon */
        text-align: left !important;
        position: static !important;
        /* Ensure normal flow */
        z-index: 1 !important;
        padding-left: 0 !important;
        /* Gap handled by flex gap and margin-right */
        margin-left: 0 !important;
        /* Ensure no negative margin */
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        /* Prevent text overflow */
        word-wrap: break-word !important;
    }
}
