/**
 * Single Case Study Page Styles
 * 
 * Dedicated stylesheet for individual case study pages
 */

/* Hero Section */
.case-study-hero {
    background: linear-gradient(135deg, #111d31 0%, #273039 100%);
    text-align: center;
    position: relative;
    padding: 10rem 0 5rem;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.case-study-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(155, 89, 182, 0.7);
}

.case-study-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.project-type-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-title {
    background: #bdd653;
    color: #273039;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.case-study-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-duration {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Project Information Section */
.project-info-section {
    background: #f8f9fa;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-info-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-info-item h4 {
    color: #273039;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-tag {
    background: #bdd653;
    color: #273039;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Challenge and Solution Sections */
.challenge-section,
.solution-section {
    padding: 5rem 0;
}

.challenge-grid,
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.challenge-grid.no-image,
.solution-grid.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 2rem auto 0;
}

.challenge-grid .challenge-text,
.solution-grid .solution-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.challenge-image img,
.solution-image img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Results Section */
.results-section {
    background: #112739;
    color: white;
}

.results-section .section-title {
    color: white;
}

.results-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.results-description {
    max-width: 1000px;
    margin: 2rem auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.results-description ul,
.results-description ol {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.results-description li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.results-description li:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #bdd653;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
}

.results-description p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-description p:last-child {
    margin-bottom: 0;
}

.results-description strong {
    color: #bdd653;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: #bdd653;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Testimonial Section */
.testimonial-section {
    background: #f8f9fa;
}

.testimonial-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #273039;
}

.testimonial-author {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-author .author-name {
    color: #273039;
    margin-bottom: 0.5rem;
}

.testimonial-author .author-title {
    color: #273039;
    margin-bottom: 1rem;
}

.testimonial-rating .fa-star {
    color: #ffd700;
    margin: 0 0.1rem;
}

.testimonial-rating .fa-star.filled {
    color: #ffd700;
}

/* More Case Studies Section */
.more-case-studies-section {
    background: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-study-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.case-study-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.case-study-card-link:hover .case-study-card {
    transform: translateY(-5px);
}

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

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #273039, #1a2329);
    color: white;
    font-size: 2rem;
}

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

.case-study-excerpt {
    color: #273039;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-study-link {
    color: #273039;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.case-study-link:hover {
    color: #bdd653;
}

.case-study-link i {
    transition: transform 0.3s ease;
}

.case-study-link:hover i {
    transform: translateX(5px);
}

/* Related Items Section */
.related-items-section {
    background: #f8f9fa;
}

.related-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
}

.related-item-tag {
    background: #f5f5f5;
    color: #1a2329;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.related-item-tag:hover {
    background: #e8e8e8;
    color: #1a2329;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.industry-tag,
.service-tag,
.technology-tag,
.solution-tag {
    background: #f5f5f5;
    color: #1a2329;
    border: 1px solid #e0e0e0;
}

.industry-tag:hover,
.service-tag:hover,
.technology-tag:hover,
.solution-tag:hover {
    background: #e8e8e8;
    color: #1a2329;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-study-title {
        font-size: 2.5rem;
    }
    
    .challenge-grid,
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}
