/* --- CORE VALUES WIDGET STYLES --- */
.toonz-core-values-wrapper {
    position: relative;
    width: 100%;
    padding: 100px 4%;
    background-color: #FAF8F5;
    /* Off-white background */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    /* Fallback */
}

/* Background Waves */
.tcv-bg-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.tcv-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 150px;
}

/* --- LEFT COLUMN --- */
.tcv-left-col {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tcv-subtitle-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.tcv-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E87722;
    margin: 0;
}

.tcv-orange-dash {
    width: 30px;
    height: 2px;
    background-color: #E87722;
}

.tcv-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #000000;
    margin: 0 0 30px 0;
}

.tcv-dot {
    color: #E87722;
}

.tcv-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    max-width: 85%;
    margin-bottom: 50px;
}

.tcv-footer-wrap {
    margin-top: 50px; /* Added to the 50px margin-bottom of desc to equal 100px */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tcv-footer {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #000000;
    margin: 0;
}

/* --- RIGHT COLUMN (GRID) --- */
.tcv-right-col {
    flex: 2 1 700px;
}

.tcv-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px;
}

/* Card 5 spans full width */
.tcv-card-5 {
    grid-column: 1 / -1;
}

/* --- CARD STYLES --- */
.tcv-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    min-height: 260px;
    display: flex;
    overflow: hidden;
    /* Sci-fi top-right cut */
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tcv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.tcv-card-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    z-index: 1;
    transform: scale(1);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tcv-card:hover .tcv-card-image {
    transform: scale(1.08);
}

/* Fade mask: white on left side blending into image on right side */
.tcv-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.7) 20%, transparent 100%);
}

.tcv-card-content {
    position: relative;
    z-index: 2;
    width: 65%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.tcv-card-num {
    font-size: 24px;
    font-weight: 300;
    color: #c0c0c0;
    margin-bottom: 5px;
}

.tcv-card-line {
    width: 25px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 20px;
}

.tcv-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.tcv-card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- STAGGERED ENTRANCE ANIMATIONS --- */

/* Left column elements */
.tcv-left-col>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.toonz-core-values-wrapper.is-visible .tcv-left-col>*,
.elementor-editor-active .tcv-left-col>* {
    opacity: 1;
    transform: translateY(0);
}

.toonz-core-values-wrapper.is-visible .tcv-subtitle-wrap {
    transition-delay: 0.1s;
}

.toonz-core-values-wrapper.is-visible .tcv-title {
    transition-delay: 0.2s;
}

.toonz-core-values-wrapper.is-visible .tcv-desc {
    transition-delay: 0.3s;
}

.toonz-core-values-wrapper.is-visible .tcv-footer-wrap {
    transition-delay: 0.4s;
}

/* Cards staggered */
.tcv-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.toonz-core-values-wrapper.is-visible .tcv-card,
.elementor-editor-active .tcv-card {
    opacity: 1;
    transform: translateY(0);
}

.toonz-core-values-wrapper.is-visible .tcv-card-1 {
    transition-delay: 0.3s;
}

.toonz-core-values-wrapper.is-visible .tcv-card-2 {
    transition-delay: 0.5s;
}

.toonz-core-values-wrapper.is-visible .tcv-card-3 {
    transition-delay: 0.7s;
}

.toonz-core-values-wrapper.is-visible .tcv-card-4 {
    transition-delay: 0.9s;
}

.toonz-core-values-wrapper.is-visible .tcv-card-5 {
    transition-delay: 1.1s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .tcv-cards-grid {
        grid-template-columns: 1fr;
    }

    .tcv-card-5 {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .tcv-card-content {
        width: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    }

    .tcv-card-image {
        width: 100%;
    }
}