/*
 * :is(#dc, .dc-…) keeps the ID-level specificity of the former inline #widget-id
 * styles, so these rules keep precedence over Elementor's generated widget CSS.
 */

:is(#dc, .dc-careers-cta) {
    --btn-hover: #c99432;
}

:is(#dc, .dc-careers-cta) * {
    box-sizing: border-box;
}

/* ==========================================
   MAIN CONTAINER
========================================== */
:is(#dc, .dc-careers-cta) .careers-cta {
    position: relative;
    background: var(--bg-color);
    padding: 100px 0;
    overflow: hidden;
}

:is(#dc, .dc-careers-cta) .careers-cta__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

:is(#dc, .dc-careers-cta) .careers-cta__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

:is(#dc, .dc-careers-cta--layout-right) .careers-cta__content {
    order: 2;
}
:is(#dc, .dc-careers-cta--layout-right) .careers-cta__media {
    order: 1;
}

/* ==========================================
   DECORATIVE ELEMENTS
========================================== */
:is(#dc, .dc-careers-cta) .careers-cta__decoration {
    position: absolute;
    pointer-events: none;
}

:is(#dc, .dc-careers-cta) .careers-cta__decoration--circle {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(227, 168, 59, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -100px;
    animation: rotate-slow 60s linear infinite;
}

:is(#dc, .dc-careers-cta) .careers-cta__decoration--circle-2 {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(157, 76, 19, 0.15);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
    animation: rotate-slow 45s linear infinite reverse;
}

:is(#dc, .dc-careers-cta) .careers-cta__decoration--glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 168, 59, 0.08), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

:is(#dc, .dc-careers-cta) .careers-cta__decoration--line {
    width: 1px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* Floating dots */
:is(#dc, .dc-careers-cta) .careers-cta__dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

:is(#dc, .dc-careers-cta) .careers-cta__dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.4;
}

:is(#dc, .dc-careers-cta) .careers-cta__dot:nth-child(1) { top: 15%; left: 10%; animation: float-dot 6s ease-in-out infinite; }
:is(#dc, .dc-careers-cta) .careers-cta__dot:nth-child(2) { top: 25%; right: 15%; animation: float-dot 8s ease-in-out 1s infinite; }
:is(#dc, .dc-careers-cta) .careers-cta__dot:nth-child(3) { bottom: 20%; left: 20%; animation: float-dot 7s ease-in-out 2s infinite; }
:is(#dc, .dc-careers-cta) .careers-cta__dot:nth-child(4) { bottom: 30%; right: 25%; animation: float-dot 9s ease-in-out 0.5s infinite; }
:is(#dc, .dc-careers-cta) .careers-cta__dot:nth-child(5) { top: 60%; left: 5%; animation: float-dot 5s ease-in-out 1.5s infinite; }

/* ==========================================
   CONTENT SECTION
========================================== */
:is(#dc, .dc-careers-cta) .careers-cta__content {
    position: relative;
    z-index: 2;
}

:is(#dc, .dc-careers-cta) .careers-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-color);
    font-family: 'Nothing You Could Do', cursive;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

:is(#dc, .dc-careers-cta) .careers-cta__eyebrow::before,
:is(#dc, .dc-careers-cta) .careers-cta__eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.5;
}

:is(#dc, .dc-careers-cta) .careers-cta__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 25px 0;
    line-height: 1.15;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

:is(#dc, .dc-careers-cta) .careers-cta__title span {
    background: #FFFFFF;
    font-family: 'Playfair Display', Georgia, serif;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:is(#dc, .dc-careers-cta) .careers-cta__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0 0 35px 0;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Highlights */
:is(#dc, .dc-careers-cta) .careers-cta__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

:is(#dc, .dc-careers-cta) .careers-cta__highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.4s ease;
}

:is(#dc, .dc-careers-cta) .careers-cta__highlight:hover {
    background: rgba(227, 168, 59, 0.1);
    border-color: rgba(227, 168, 59, 0.3);
    transform: translateX(5px);
}

:is(#dc, .dc-careers-cta) .careers-cta__highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

:is(#dc, .dc-careers-cta) .careers-cta__highlight-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* Button */
:is(#dc, .dc-careers-cta) .careers-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-color);
    color: #000000;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

:is(#dc, .dc-careers-cta) .careers-cta__btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 168, 59, 0.4);
}

:is(#dc, .dc-careers-cta) .careers-cta__btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   MEDIA SECTION
========================================== */
:is(#dc, .dc-careers-cta) .careers-cta__media {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInScale 1s ease 0.4s forwards;
}

:is(#dc, .dc-careers-cta) .careers-cta__media-wrapper {
    position: relative;
}

/* Framed style */
:is(#dc, .dc-careers-cta--framed) .careers-cta__media-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    opacity: 0.3;
    z-index: -1;
}

:is(#dc, .dc-careers-cta--framed) .careers-cta__media-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    opacity: 0.2;
    z-index: -1;
}

/* Floating style */
:is(#dc, .dc-careers-cta--floating) .careers-cta__media-wrapper {
    animation: float-media 6s ease-in-out infinite;
}

:is(#dc, .dc-careers-cta) .careers-cta__image,
:is(#dc, .dc-careers-cta) .careers-cta__video {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Video play button */
:is(#dc, .dc-careers-cta) .careers-cta__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 5;
}

:is(#dc, .dc-careers-cta) .careers-cta__play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

:is(#dc, .dc-careers-cta) .careers-cta__play-btn:hover {
    background: var(--btn-hover);
    transform: translate(-50%, -50%) scale(1.1);
}

:is(#dc, .dc-careers-cta) .careers-cta__play-btn svg {
    width: 28px;
    height: 28px;
    fill: #000;
    margin-left: 4px;
}

/* Decorative badge on media */
:is(#dc, .dc-careers-cta) .careers-cta__badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    padding: 20px 25px;
    background: var(--bg-color);
    border: 1px solid rgba(227, 168, 59, 0.3);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

:is(#dc, .dc-careers-cta) .careers-cta__badge-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

:is(#dc, .dc-careers-cta) .careers-cta__badge-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
}

:is(#dc, .dc-careers-cta) .careers-cta__badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
}

@keyframes float-media {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    :is(#dc, .dc-careers-cta) .careers-cta__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__content,
    :is(#dc, .dc-careers-cta) .careers-cta__media {
        order: unset !important;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__media {
        max-width: 500px;
        margin: 0 auto;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :is(#dc, .dc-careers-cta) .careers-cta {
        padding: 60px 0;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__container {
        padding: 0 20px;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__highlights {
        grid-template-columns: 1fr;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__badge {
        left: 20px;
        bottom: -20px;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__media-wrapper::before,
    :is(#dc, .dc-careers-cta) .careers-cta__media-wrapper::after {
        display: none;
    }
}

@media (max-width: 480px) {
    :is(#dc, .dc-careers-cta) .careers-cta__btn {
        width: 100%;
        justify-content: center;
    }

    :is(#dc, .dc-careers-cta) .careers-cta__highlight {
        padding: 12px 15px;
    }
}
