/* 
CASE STUDIES - MODAL
Space Grotesk | No CSS Variables
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* MODAL OVERLAY */
.seriously-case-study-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.seriously-case-study-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL CONTENT */
.seriously-case-study-modal-content {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    max-width: 580px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* CLOSE BUTTON */
.seriously-case-study-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 300;
    color: #666;
    background: #f9f9f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.seriously-case-study-modal-close:hover {
    background: #de4854;
    color: #ffffff;
}

/* MODAL TITLE */
.seriously-case-study-modal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
    padding-right: 50px;
    line-height: 1.3;
}

/* BULLET POINTS */
.seriously-case-study-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.seriously-case-study-bullets li {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
}

.seriously-case-study-bullets li:last-child {
    margin-bottom: 0;
}

.seriously-case-study-bullets li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 172, 179, 0.1) 0%, rgba(79, 172, 179, 0.05) 100%);
    border-radius: 50%;
    color: #4facb3;
    font-size: 0.65rem;
}

/* Alternate colours */
.seriously-case-study-bullets li:nth-child(even)::before {
    background: linear-gradient(135deg, rgba(222, 72, 84, 0.1) 0%, rgba(222, 72, 84, 0.05) 100%);
    color: #de4854;
}

/* MODAL ACTIONS */
.seriously-case-study-modal-actions {
    display: flex;
    gap: 14px;
}

/* MODAL BUTTONS */
.seriously-case-study-modal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seriously-case-study-modal-btn:first-child {
    background: linear-gradient(135deg, #de4854 0%, #c43844 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(222, 72, 84, 0.3);
}

.seriously-case-study-modal-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(222, 72, 84, 0.4);
}

.seriously-case-study-modal-btn-secondary {
    background: linear-gradient(135deg, #4facb3 0%, #6bbcc2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 172, 179, 0.3);
}

.seriously-case-study-modal-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 179, 0.4);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* TABLET */
@media (max-width: 991px) {
    .seriously-case-study-modal-content {
        padding: 40px 35px;
        border-radius: 18px;
        max-width: 520px;
    }
    
    .seriously-case-study-modal-close {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
    }
    
    .seriously-case-study-modal-content h2 {
        font-size: 1.75rem;
        margin-bottom: 22px;
    }
    
    .seriously-case-study-bullets li {
        font-size: 0.95rem;
        margin-bottom: 12px;
        padding-left: 30px;
    }
    
    .seriously-case-study-bullets li::before {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .seriously-case-study-modal-btn {
        font-size: 0.95rem;
        padding: 13px 22px;
    }
    
    .seriously-case-study-modal-btn:first-child:hover,
    .seriously-case-study-modal-btn-secondary:hover {
        transform: none;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .seriously-case-study-modal-content {
        padding: 35px 28px;
        width: 92%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .seriously-case-study-modal-close {
        top: 14px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        border-radius: 6px;
    }
    
    .seriously-case-study-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-right: 45px;
    }
    
    .seriously-case-study-bullets {
        margin-bottom: 26px;
    }
    
    .seriously-case-study-bullets li {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-left: 28px;
    }
    
    .seriously-case-study-bullets li::before {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }
    
    .seriously-case-study-modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .seriously-case-study-modal-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .seriously-case-study-modal-content {
        padding: 30px 22px;
        border-radius: 14px;
    }
    
    .seriously-case-study-modal-close {
        top: 12px;
        right: 14px;
    }
    
    .seriously-case-study-modal-content h2 {
        font-size: 1.35rem;
        padding-right: 40px;
    }
    
    .seriously-case-study-bullets li {
        font-size: 0.875rem;
        padding-left: 26px;
    }
    
    .seriously-case-study-modal-btn {
        font-size: 0.875rem;
        padding: 13px 20px;
    }
}
