/*
Theme Name: TheGem Elementor Child
Description: Multi-Purpose Wordpress Theme
Author: Codex Themes.
Theme URI: http://codex-themes.com/thegem/
Author URI: http://codex-themes.com/thegem/
Template: thegem-elementor
Version: 1.0
Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, dark, light
License: GNU General Public License
License URI: license.txt
*/

/* Single Case Study Page Styles */
.case-study-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.case-study-single .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.case-study-single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.client-testimonial {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.client-testimonial blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
}
.client-testimonial .client-info {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

.client-testimonial .client-name {
    font-weight: bold;
    font-style: normal; /* Make the name stand out, not italic */
}

.client-testimonial .client-separator {
    margin: 0 0.2rem; /* Add a little space around the comma */
}
.case-study-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    align-items: center;
}

.case-study-section .section-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.case-study-section .section-image {
    flex: 1;
    min-width: 300px;
}

.case-study-section .section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.case-study-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0073aa;
    position: relative;
    padding-bottom: 0.5rem;
}

.case-study-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0073aa;
}

.case-study-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f8ff;
    border-radius: 8px;
}

.case-study-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #005a87;
}

/* Case Study Archive Page Styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.case-study-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.case-study-thumbnail {
    height: 200px;
    overflow: hidden;
}

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

.case-study-card:hover .case-study-thumbnail img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-study-title a {
    color: #333;
    text-decoration: none;
}

.case-study-title a:hover {
    color: #0073aa;
}

.case-study-excerpt {
    margin-bottom: 1.5rem;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.read-more:hover {
    border-bottom-color: #0073aa;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .case-study-section {
        flex-direction: column;
    }
    
    .case-study-section .section-content,
    .case-study-section .section-image {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}