/* Custom CSS Overrides */

:root {
    /* Caladrius Custom Colors */
    --cal-orange: #FDBA74;
    --cal-purple: #8B5CF6;
}

/* Restore Footer Background */
.crp-footer-bg {
    background-color: #5D2F60 !important;
}

/* Button Overrides to ensure variables are used */
.tp-btn-black.btn-cal-orange-bg .tp-btn-black-text,
.tp-btn-black.btn-cal-orange-bg .tp-btn-black-circle {
    background-color: var(--cal-orange) !important;
    color: #000 !important;
}

/* Add any other missing custom styles here */
/* Fix dark text visibility in 'Everything you need' section */
.design-project-area .design-project-title-box h4,
.design-project-area .design-project-title-box p,
.design-project-area .design-project-content h4,
.design-project-area .design-project-content p {
    color: #ffffff !important;
}

/* Ensure the area itself has the dark background if the inline style fails, though inline is present */
.design-project-area {
    color: #ffffff;
}

/* Fix shrunk description text width */
.design-project-title-box p,
.design-project-2-style .design-project-title-box p {
    max-width: 800px !important;
}

/* Fix button arrow alignment */
.tp-btn-black .tp-btn-black-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.tp-btn-black .tp-btn-black-circle svg {
    margin: 0 !important;
    transform: none !important;
}

/* Fix button hover area */
.tp-btn-black-filter {
    margin: 0 !important;
    /* Ensure filter doesn't expand layout box excessively if that was the cause */
}

.tp-btn-black {
    /* Ensure the link wraps content tightly */
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

/* Customize 'Let's Discuss' footer button */
.crp-footer-big-text {
    background-color: #00000030 !important;
    color: var(--cal-orange) !important;
}

.crp-footer-big-text i svg path {
    fill: var(--cal-orange) !important;
}

/* Customizable footer copyright and legal links */
.crp-copyright-text p a span {
    color: var(--cal-orange) !important;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a,
.legal-links span {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff !important;
}

/* Standardize footer text color and font */
.crp-footer-widget p,
.crp-footer-widget-title,
.crp-footer-widget-menu ul li a,
.crp-footer-widget-info a,
.crp-copyright-text {
    color: #ffffff !important;
    font-family: var(--tp-ff-body) !important;
    /* Ensure headings don't retain the Teko letter-spacing */
    letter-spacing: normal !important;
}

.crp-footer-widget-title {
    /* Adjust font size if standard font makes it look too small/big, but standardizing usually implies using same family */
    text-transform: none !important;
}

/* Smaller font for Headquarters text */
.hq-text {
    font-size: 1rem !important;
}

/* Fix mobile hamburger menu visibility on light-themed pages */
.header-theme-light .tp-header-bar button i {
    background-color: var(--tp-common-black) !important;
}

.header-theme-light .tp-header-bar button {
    color: var(--tp-common-black) !important;
}

/* Fix bottom padding for design-project-area on laptop/smaller resolutions */
@media (max-width: 1366px) {
    .design-project-area.design-project-2-style {
        padding-bottom: 60px !important;
    }

    /* Fix text overflow and alignment in project area */
    .design-project-area .design-project-title-box h4,
    .design-project-area .design-project-content h4 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Ensure content columns align properly */
    .design-project-area .design-project-item .row {
        align-items: center !important;
    }

    /* Make images responsive */
    .design-project-area .design-project-thumb img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Remove excessive left padding that causes text overflow */
    .design-project-content {
        padding-left: 0 !important;
    }
}

/* Fix integrations section 3-column layout for 1200-1400px range */
@media (min-width: 1200px) and (max-width: 1399px) {

    /* Force all three columns to be equal width (33%) */
    .cr-feature-2-area .row.g-0>.col-xxl-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    /* Fix ordering: left icons = 1, center heading = 2, right icons = 3 */
    .cr-feature-2-area .row.g-0>.col-xxl-4.col-xl-6:first-child {
        order: 1 !important;
    }

    .cr-feature-2-area .row.g-0>.col-xxl-4.order-xl-12 {
        order: 2 !important;
    }

    .cr-feature-2-area .row.g-0>.col-xxl-4.col-xl-6:last-child {
        order: 3 !important;
    }
}

/* Style select dropdowns to match input fields in contact forms */
.tp-contact-form-input select {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background-color: #F5F5F5;
    font-size: 16px;
    font-weight: 400;
    color: #111;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
}

.tp-contact-form-input select:focus {
    border-bottom-color: var(--cal-orange);
}

.tp-contact-form-input select option {
    padding: 10px;
    background: #fff;
    color: #111;
}

/* Hide the magic cursor black dot */
#magic-cursor,
#ball {
    display: none !important;
    visibility: hidden !important;
}

/* About page - Who We Are and Our Mission section paragraph font size */
.tp-about-area .tp-about-text p {
    font-size: 2.5rem;
    line-height: 1.4;
}

/* Team member photo cards - add frame and reduce size */
.dgm-team-thumb {
    max-width: 240px;
    margin: 0 auto;
}

.dgm-team-thumb .tp--hover-img {

    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dgm-team-thumb .tp--hover-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Center align team member text and social icons */
.dgm-team-content {
    text-align: center;
    margin-top: 1.2rem;
}

.dgm-team-social {
    justify-content: center;
}