/* Datom Vogue Wellness Feature Card Widget Styles */

.datom-fc-card-wrap {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Base Card Container */
.datom-fc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Image Container and Image */
.datom-fc-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.datom-fc-bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transform-origin: center center;
}

/* Card Overlay */
.datom-fc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Badge/Tag Styles */
.datom-fc-badge {
    position: absolute;
    z-index: 4;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.2;
}

.datom-fc-badge-top-left {
    top: 20px;
    left: 20px;
}

.datom-fc-badge-top-right {
    top: 20px;
    right: 20px;
}

.datom-fc-badge-bottom-left {
    bottom: 20px;
    left: 20px;
}

.datom-fc-badge-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Content Area */
.datom-fc-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    pointer-events: auto;
    box-sizing: border-box;
    /* Flex alignment properties will be controlled by selectors via Elementor */
}

/* Title Styles */
.datom-fc-title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.datom-fc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Description Styles */
.datom-fc-desc {
    margin: 0;
    padding: 15px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    border: 1px solid #E0B0FF; /* Soft lavender/pink border box */
    box-sizing: border-box;
}

/* Button Styles */
.datom-fc-btn-wrap {
    margin-top: 15px;
    width: auto;
}

.datom-fc-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 25px;
    border: 1px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

/* Full Card Link Overlay */
.datom-fc-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* ==========================================
   HOVER INTERACTIONS & ANIMATIONS
   ========================================== */

/* Float Up Effect */
.datom-fc-hover-float {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.datom-fc-hover-float:hover {
    transform: translateY(-10px);
}

/* Zoom In Effect */
.datom-fc-hover-zoom .datom-fc-bg-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.datom-fc-hover-zoom:hover .datom-fc-bg-img {
    transform: scale(1.08);
}

/* Lift and Shadow Shift Effect */
.datom-fc-hover-lift {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.datom-fc-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
}

/* 3D Interactive Tilt (Controlled by JS) */
.datom-fc-hover-tilt {
    transition: transform 0.15s ease-out, box-shadow 0.5s ease;
}

.datom-fc-hover-tilt:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.55);
}

/* DESCRIPTION REVEAL ON HOVER ANIMATIONS */

/* Slide Up and Fade In */
.datom-fc-desc-reveal-up {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease, 
                max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s ease;
    overflow: hidden;
}

.datom-fc-card:hover .datom-fc-desc-reveal-up {
    max-height: 250px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Restores padding and border widths dynamically on hover */
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border-top-width: 1px !important;
    border-bottom-width: 1px !important;
}

/* Fade In */
.datom-fc-desc-fade-in {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.datom-fc-card:hover .datom-fc-desc-fade-in {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   ALIGNMENTS & LAYOUT POSITIONS
   ========================================== */

/* Horizontal Flex Alignments */
.datom-fc-align-left .datom-fc-content {
    align-items: flex-start;
}
.datom-fc-align-left .datom-fc-desc {
    margin-right: auto;
    margin-left: 0;
}

.datom-fc-align-center .datom-fc-content {
    align-items: center;
}
.datom-fc-align-center .datom-fc-desc {
    margin-left: auto;
    margin-right: auto;
}

.datom-fc-align-right .datom-fc-content {
    align-items: flex-end;
}
.datom-fc-align-right .datom-fc-desc {
    margin-left: auto;
    margin-right: 0;
}

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
    .datom-fc-align-tablet-left .datom-fc-content {
        align-items: flex-start;
    }
    .datom-fc-align-tablet-left .datom-fc-desc {
        margin-right: auto;
        margin-left: 0;
    }

    .datom-fc-align-tablet-center .datom-fc-content {
        align-items: center;
    }
    .datom-fc-align-tablet-center .datom-fc-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .datom-fc-align-tablet-right .datom-fc-content {
        align-items: flex-end;
    }
    .datom-fc-align-tablet-right .datom-fc-desc {
        margin-left: auto;
        margin-right: 0;
    }
}

/* Mobile Breakpoint (max-width: 767px) */
@media (max-width: 767px) {
    .datom-fc-align-mobile-left .datom-fc-content {
        align-items: flex-start;
    }
    .datom-fc-align-mobile-left .datom-fc-desc {
        margin-right: auto;
        margin-left: 0;
    }

    .datom-fc-align-mobile-center .datom-fc-content {
        align-items: center;
    }
    .datom-fc-align-mobile-center .datom-fc-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .datom-fc-align-mobile-right .datom-fc-content {
        align-items: flex-end;
    }
    .datom-fc-align-mobile-right .datom-fc-desc {
        margin-left: auto;
        margin-right: 0;
    }
}

/* Vertical Flex Alignments */
.datom-fc-valign-top .datom-fc-content {
    justify-content: flex-start;
}
.datom-fc-valign-middle .datom-fc-content {
    justify-content: center;
}
.datom-fc-valign-bottom .datom-fc-content {
    justify-content: flex-end;
}

/* ==========================================
   SYNCED FIT & POSITION ON CARD CONTAINER BACKGROUND
   ========================================== */

/* Sync Image Fit to card background-size (scoped selector for specificity) */
.elementor-widget-datom_feature_card.datom-fc-fit-cover .datom-fc-card {
    background-size: cover;
}
.elementor-widget-datom_feature_card.datom-fc-fit-contain .datom-fc-card {
    background-size: contain;
}
.elementor-widget-datom_feature_card.datom-fc-fit-fill .datom-fc-card {
    background-size: 100% 100%;
}

/* Sync Image Position to card background-position (scoped selector for specificity) */
.elementor-widget-datom_feature_card.datom-fc-position-center-center .datom-fc-card { background-position: center center; }
.elementor-widget-datom_feature_card.datom-fc-position-center-top .datom-fc-card { background-position: center top; }
.elementor-widget-datom_feature_card.datom-fc-position-center-bottom .datom-fc-card { background-position: center bottom; }
.elementor-widget-datom_feature_card.datom-fc-position-left-center .datom-fc-card { background-position: left center; }
.elementor-widget-datom_feature_card.datom-fc-position-left-top .datom-fc-card { background-position: left top; }
.elementor-widget-datom_feature_card.datom-fc-position-left-bottom .datom-fc-card { background-position: left bottom; }
.elementor-widget-datom_feature_card.datom-fc-position-right-center .datom-fc-card { background-position: right center; }
.elementor-widget-datom_feature_card.datom-fc-position-right-top .datom-fc-card { background-position: right top; }
.elementor-widget-datom_feature_card.datom-fc-position-right-bottom .datom-fc-card { background-position: right bottom; }
