/* 
SERIOUSLY DIGITAL - CASE STUDIES PAGE: CONSOLIDATED STYLESHEET
Space Grotesk | No CSS Variables

Merged sections (in order):
1. HERO SECTION   (cs-new-hero.css)
2. GRID SECTION   (cs-new-grid.css)
3. MODAL          (cs-new-modal.css)
*/

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


/* ============================================================
   SECTION SOURCE: cs-new-hero.css
   ============================================================ */

/* 
CASE STUDIES - HERO SECTION
Space Grotesk | No CSS Variables
*/


/* HERO SECTION */
.seriously-case-studies-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 116px;
    padding: 40px 0;
    overflow: hidden;
}

/* Gradient background */
.seriously-case-studies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #3d5558 0%, #2d3a3d 30%, #2a2d30 60%, #333638 100%);
    z-index: 1;
}

/* Dot pattern overlay */
.seriously-case-studies-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
    pointer-events: none;
}

/* Decorative glow */
.seriously-case-studies-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(79, 172, 179, 0.15) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Container */
.seriously-case-studies-hero .seriously-home-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* Heading */
.seriously-case-studies-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.seriously-case-studies-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4facb3 0%, #6bbcc2 100%);
    border-radius: 2px;
}

/* TABLET */
@media (max-width: 991px) {
    .seriously-case-studies-hero {
        min-height: 190px;
        margin-top: 106px;
        padding: 35px 0;
    }
    
    .seriously-case-studies-hero .seriously-home-container {
        padding: 0 32px;
    }
    
    .seriously-case-studies-hero h1 {
        font-size: 2.25rem;
        padding-bottom: 18px;
    }
    
    .seriously-case-studies-hero h1::after {
        width: 70px;
    }
    
    .seriously-case-studies-hero-overlay {
        width: 400px;
        height: 250px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .seriously-case-studies-hero {
        min-height: 160px;
        margin-top: 64px;
        padding: 32px 0;
    }
    
    .seriously-case-studies-hero .seriously-home-container {
        padding: 0 24px;
    }
    
    .seriously-case-studies-hero h1 {
        font-size: 1.9rem;
        padding-bottom: 16px;
    }
    
    .seriously-case-studies-hero h1::after {
        width: 60px;
        height: 2px;
    }
    
    .seriously-case-studies-hero-overlay {
        display: none;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .seriously-case-studies-hero {
        min-height: 140px;
        margin-top: 60px;
        padding: 28px 0;
    }
    
    .seriously-case-studies-hero .seriously-home-container {
        padding: 0 20px;
    }
    
    .seriously-case-studies-hero h1 {
        font-size: 1.65rem;
    }
    
    .seriously-case-studies-hero h1::after {
        width: 50px;
    }
}

/* ============================================================
   SECTION SOURCE: cs-new-grid.css
   ============================================================ */

/* 
CASE STUDIES - GRID SECTION
Space Grotesk | No CSS Variables
*/


/* GRID SECTION */
.seriously-case-studies-grid-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.seriously-case-studies-grid-section .seriously-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* GRID CONTAINER */
.seriously-case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CASE STUDY CARD */
.seriously-case-study-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Accent bar */
.seriously-case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facb3 0%, #6bbcc2 100%);
    z-index: 3;
}

.seriously-case-study-card:nth-child(even)::before {
    background: linear-gradient(90deg, #de4854 0%, #c43844 100%);
}

.seriously-case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 172, 179, 0.15);
}

.seriously-case-study-card:nth-child(even):hover {
    box-shadow: 0 20px 50px rgba(222, 72, 84, 0.15);
}

/* IMAGE CONTAINER */
.seriously-case-study-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.seriously-case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Gradient overlay on image */
.seriously-case-study-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.seriously-case-study-card:hover .seriously-case-study-image::after {
    opacity: 1;
}

.seriously-case-study-card:hover .seriously-case-study-image img {
    transform: scale(1.08);
}

/* Service icon badge */
.seriously-case-study-image::before {
    content: '\f0ac';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facb3 0%, #6bbcc2 100%);
    color: #ffffff;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(79, 172, 179, 0.4);
    z-index: 2;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.seriously-case-study-card:nth-child(even) .seriously-case-study-image::before {
    background: linear-gradient(135deg, #de4854 0%, #c43844 100%);
    box-shadow: 0 4px 15px rgba(222, 72, 84, 0.4);
}

.seriously-case-study-card:hover .seriously-case-study-image::before {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* CONTENT CONTAINER */
.seriously-case-study-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    position: relative;
}

.seriously-case-study-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.seriously-case-study-card:hover .seriously-case-study-content h2 {
    color: #4facb3;
}

.seriously-case-study-card:nth-child(even):hover .seriously-case-study-content h2 {
    color: #de4854;
}

/* Service tags */
.seriously-case-study-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
    padding: 10px 14px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #4facb3;
}

.seriously-case-study-card:nth-child(even) .seriously-case-study-content p {
    border-left-color: #de4854;
}

/* BUTTON */
.seriously-case-study-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #4facb3 0%, #6bbcc2 100%);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 172, 179, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.seriously-case-study-card:nth-child(even) .seriously-case-study-btn:hover {
    box-shadow: 0 8px 25px rgba(222, 72, 84, 0.4);
}

/* TABLET */
@media (max-width: 991px) {
    .seriously-case-studies-grid-section {
        padding: 64px 0;
    }
    
    .seriously-case-studies-grid-section .seriously-home-container {
        padding: 0 32px;
    }
    
    .seriously-case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .seriously-case-study-card {
        border-radius: 14px;
    }
    
    .seriously-case-study-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }
    
    .seriously-case-study-card:hover .seriously-case-study-image img {
        transform: none;
    }
    
    .seriously-case-study-card:hover .seriously-case-study-image::after {
        opacity: 0;
    }
    
    .seriously-case-study-card:hover .seriously-case-study-image::before {
        opacity: 0;
    }
    
    .seriously-case-study-card:hover .seriously-case-study-content h2 {
        color: #333;
    }
    
    .seriously-case-study-image {
        height: 200px;
    }
    
    .seriously-case-study-content {
        padding: 24px;
    }
    
    .seriously-case-study-content h2 {
        font-size: 1.15rem;
    }
    
    .seriously-case-study-content p {
        font-size: 0.95rem;
        padding: 8px 12px;
    }
    
    .seriously-case-study-btn {
        font-size: 0.95rem;
        padding: 11px 22px;
    }
    
    .seriously-case-study-btn:hover {
        transform: none;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .seriously-case-studies-grid-section {
        padding: 56px 0;
    }
    
    .seriously-case-studies-grid-section .seriously-home-container {
        padding: 0 24px;
    }
    
    .seriously-case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seriously-case-study-card {
        border-radius: 12px;
    }
    
    .seriously-case-study-image {
        height: 200px;
    }
    
    .seriously-case-study-content {
        padding: 22px;
    }
    
    .seriously-case-study-content h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .seriously-case-study-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
        padding: 8px 12px;
        text-align: left;
    }
    
    .seriously-case-study-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .seriously-case-studies-grid-section {
        padding: 48px 0;
    }
    
    .seriously-case-studies-grid-section .seriously-home-container {
        padding: 0 20px;
    }
    
    .seriously-case-studies-grid {
        gap: 18px;
    }
    
    .seriously-case-study-card {
        border-radius: 10px;
    }
    
    .seriously-case-study-image {
        height: 180px;
    }
    
    .seriously-case-study-content {
        padding: 20px;
    }
    
    .seriously-case-study-content h2 {
        font-size: 1.05rem;
    }
    
    .seriously-case-study-content p {
        font-size: 0.875rem;
        padding: 8px 10px;
    }
    
    .seriously-case-study-btn {
        font-size: 0.875rem;
        padding: 13px 22px;
    }
}

/* ============================================================
   SECTION SOURCE: cs-new-modal.css
   ============================================================ */

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


/* 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;
    }
}
