.case-study-container {
    padding: 20px;
    border-radius: 20px;
    margin: 30px 0;
    background-color: #DCE0E3;
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}
.case-study-container.case-study-container p:nth-last-of-type(2) {
    margin-bottom: 0 !important;
}
.case-study-container p:last-of-type {
    display: none;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
    color: #2A3B4C !important;
}

.case-study-header h3 {
    font-size: 18px !important;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1em;
    color: #2A3B4C !important;
}

.case-study-header svg {
    width: 22px;
    height: 22px;
}

.case-study-header-left {
    display: flex;
    gap: 6px;
    align-items: center;
}

.case-study-close {
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.case-study-icon {
    display: inline-flex !important; /* Use inline-flex to keep the icon inline but also make it a flex container */
    background-color: #DCE0E3;
    border-radius: 100px;
    height: 24px;
    width: 24px;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
    position: relative; /* Ensure the tooltip is positioned relative to this container */
}

.case-study-icon:hover {
    cursor: pointer;
    background-color: #DCE0E3;
}

/* Tooltip (hidden by default) */
.case-study-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #2A3B4C;
    padding: 0 10px;
    background-color: #DCE0E3;
    color: #2A3B4C;
    font-size: 14px;
    border-radius: 12px;
    font-family: 'Inter Tight';
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

/* Show the tooltip on hover */
.case-study-icon:hover::after {
    opacity: 1; /* Make tooltip visible */
    visibility: visible; /* Make tooltip visible */
}

.case-study-svg {
    width: 22px;
    height: 22px;
}