/* ========================================
 * SOLUTION DETAILS PAGE STYLES
 * ======================================== */

/* ===== BASE STYLES ===== */
.solution-detail-page {
    background: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Override breadcrumb spacing for solutions page */
body.single-solutions .breadcrumb, body.single-industries .breadcrumb, body.single-case-studies .breadcrumb {
    margin-bottom: 40px !important;
}

body.single-solutions .subheader-container, body.single-industries .subheader-container {
    padding: 2rem 1rem 0rem 1rem !important;
}

/* ===== HERO SECTION ===== */
.solution-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.solution-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 30%, rgba(24, 99, 150, 0.03) 30%, rgba(24, 99, 150, 0.03) 70%, transparent 70%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-summary {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.solution-excerpt {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 1.5rem 0;
    max-width: 600px;
}

/* Solution Tags */
.solution-tags {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: left;
}

.single-case-studies .solution-tags {
    justify-content: center !important;
}

.support-items button {
    border: 0px !important;
}

/* Solution Summary Stats */
.solution-summary-stats {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #186396;
    color: #186396;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.summary-stat:hover {
    background: #186396;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.summary-stat i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.summary-stat .stat-number {
    font-weight: 700;
    font-size: 0.9rem !important;
    color: inherit;
}

.summary-stat .stat-label {
    font-weight: 400;
    font-size: 0.9rem !important;
    color: inherit;
}

/* Hero Image with Slanted Treatment */
.hero-image {
    position: relative;
}

.slanted-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.slanted-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.slanted-image-container img {
    width: 100%;
    object-fit: fill;
    display: block;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #186396 0%, #0d4a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
}

/* Sticky nav styles centralized in css/sticky-nav.css */

/* Ensure subheader stays static */
body.single-solutions .subheader-container {
    position: static !important;
}

body.single-solutions .solution-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    width: 500px;
}

body.single-solutions .solution-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.single-solutions .solution-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-solutions .placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

body.single-solutions .solution-title-nav h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ===== OVERVIEW SECTION ===== */
.solution-overview {
    padding: 5rem 10px;
    background: #fff;
    position: relative;
}

.solution-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.products-experts-layout .solution-overview::before {
    display: none !important;
}

.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative;
    z-index: 2;
}

.solution-overview .overview-description img {
    margin-right: 10px;
}

.case-study-overview-section .overview-content {
    grid-template-columns: 1fr;
}

.overview-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.overview-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Overview Benefits Section */
.overview-benefits {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(24, 99, 150, 0.15);
    border-left: 4px solid #186396;
}

.overview-benefits h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    text-align: center;
    padding-bottom: 1rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
}

.benefits-list .benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.benefits-list .benefit-item i {
    color: #28a745;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.benefits-list .benefit-item span {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.overview-image {
    position: relative;
}

.schematic-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.schematic-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SECTION HEADERS ===== */
.solution-overview .section-header,
.products-section .section-header,
.parts-section .section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.solution-overview .section-header h2,
.products-section .section-header h2,
.parts-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.solution-overview .section-header p,
.products-section .section-header p,
.parts-section .section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* ===== PRODUCTS AND EXPERTS LAYOUT ===== */
.products-experts-layout {
    padding: 5rem 0 0 0;
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 10;
    background-color: #fff !important;
    background-image: none !important;
}

.section-container {
    max-width: 1320px;
    margin: 0 auto;
    background: #fff;
    background-image: none !important;
}

.products-experts-layout .layout-container {
    display: grid !important;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    margin: 0;
    align-items: start;
    background: #fff;
    background-image: none !important;
}

/* Left Column: Products */
.products-column {
    width: 100%;
    background: #fff;
    background-image: none !important;
}

.products-column .section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.products-column .section-header h2 {
    text-align: left;
}

.products-column .section-header p {
    text-align: left;
}

.products-column .products-grid {
    display: block; /* Remove grid since we're using category-products for layout */
}

/* ===== PRODUCTS & PARTS SECTIONS ===== */
.products-section,
.parts-section {
    margin-bottom: 3rem;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 2rem 0;
}

.category-group {
    margin-bottom: 2rem;
}

.category-heading {
    font-size: 1.3rem;
    font-weight: 500;
    color: #186396;
    margin: 0 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid #186396;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.products-experts-layout .experts-column {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

.experts-container .section-header {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.experts-container .section-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
}

.experts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experts-list .expert-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.experts-list .expert-card:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
}

.experts-list .expert-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #186396;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.experts-list .expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.experts-list .expert-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    border: none;
}

.experts-list .expert-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.experts-list .expert-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.experts-list .expert-expertise {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.experts-list .expert-info h4 a {
    color: #186396;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s ease;
}

.experts-list .expert-info h4 a:hover {
    color: #186396 !important;
    text-decoration: underline !important;
}

.experts-list .expert-expertise a {
    color: #186396;
    font-weight: normal !important;
    transition: text-decoration 0.3s ease;
    text-transform: lowercase;
}

.experts-list .expert-expertise a:hover {
    color: #186396 !important;
    text-decoration: underline !important;
}

.expert-connect-btn {
    display: inline-block;
    background: #fff;
    color: #186396;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    border: 2px solid #186396;
    transition: all 0.3s ease;
}

.expert-connect-btn:hover {
    background: #186396;
    color: #fff;
    text-decoration: none;
}

/* ===== SEARCH RESULTS TABS ===== */
.search-results-tabs {
    display: flex;
    align-items: flex-end;
    margin: 2rem 0 1.5rem 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
}

.search-results-tabs .tab-link {
    margin-left: 0 !important;
    border: none;
    background: none;
    padding: 0.5rem 1.2rem;
    font: inherit;
    cursor: pointer;
    position: relative;
    color: #222;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    outline: none;
    box-shadow: none;
    line-height: 1.2;
}

.search-results-tabs .tab-link .tab-label {
    display: block;
    line-height: 1.2;
    background: none;
    color: #222;
    border-radius: 0;
    padding: 10px 0;
    font-weight: 600;
}

.search-results-tabs .tab-link.tab-disabled {
    color: #bbb;
    font-weight: 400;
    cursor: not-allowed;
    pointer-events: none;
}

.search-results-tabs .tab-link.tab-disabled .tab-label {
    color: #bbb;
    font-weight: 400;
}

.search-results-tabs .tab-link.active .tab-underline {
    background: #FFD34E;
}

.search-results-tabs .tab-link .tab-underline {
    display: block;
    height: 5px;
    background: #FFD34E;
    width: 100%;
}

.search-results-tabs .tab-link.active .tab-label {
    background: #186396;
    color: #fff;
    border-radius: 3px 3px 0 0;
    padding: 10px 24px;
}

.search-results-tabs .tab-link:first-child { 
    margin-left: 0 !important; 
    padding-left: 0 !important; 
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experts-container {
        position: static;
        top: auto;
    }
    
    .products-column .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experts-list .expert-card {
        flex-direction: row;
        text-align: left;
    }
    
    .experts-list .expert-avatar {
        margin: 0 1rem 0 0;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-summary {
        text-align: left;
    }
    
    .solution-summary-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-content .overview-description img {
        max-width: 100%;
    }
    
    .overview-benefits {
        padding: 1.5rem;
    }
    
    .benefits-list .benefit-item {
        padding: 0.5rem;
    }
    
    .products-column .products-grid {
        grid-template-columns: 1fr;
    }
    .products-experts-layout .layout-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .slanted-image-container {
        transform: rotate(0deg);
    }
}

/* ===== UTILITY CLASSES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.filter-btn:focus,
.product-link:focus,
.carousel-link:focus,
.resource-link:focus {
    outline: 2px solid #186396;
    outline-offset: 2px;
}

/* ===== GALLERY SYSTEM ===== */
/* Gallery styles are now unified in gallery-shared.css */

/* Case Studies Carousel Section */
.case-studies-carousel {
    padding: 60px 0px 60px 10px !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.case-studies-carousel .heading-style-2 {
    max-width: 1320px;
    margin: 0 auto;
}

.case-studies-carousel .heading-style-2 .data span {
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.case-studies-carousel h3 {
    color: #186396;
}

.case-studies-carousel .heading-style-2 .data h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.case-studies-carousel .prj-slider {
    height: 472px;
    overflow: hidden;
}

.case-studies-carousel .proj-data {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.case-studies-carousel .proj-data .h3 {
    margin-bottom: 1rem;
}

.case-studies-carousel .proj-data .h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Synchronize all case studies carousel transitions */
.case-studies-carousel .proj-data,
.case-studies-carousel .proj-data *,
.case-studies-carousel .proj-image,
.case-studies-carousel .proj-image * {
    transition: all 0.3s ease !important;
}

/* Override Owl Carousel transitions for case studies */
.case-studies-carousel .owl-item,
.case-studies-carousel .owl-stage,
.case-studies-carousel .owl-stage-outer {
    transition: all 0.3s ease !important;
}

/* Force immediate text transitions */
.case-studies-carousel .proj-data .h3,
.case-studies-carousel .proj-data p,
.case-studies-carousel .proj-data .loc-date {
    transition: none !important;
}

/* Fade transition for case studies carousel */
.case-studies-carousel .owl-item {
    transition: opacity 0.3s ease !important;
}

/* Support for fade transition */
.case-studies-carousel .owl-stage {
    transition: none !important;
}

.case-studies-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* Fix text overlap during case study transitions */
.case-studies-carousel .proj-data {
    transition: all 0.3s ease !important;
}

.case-studies-carousel .proj-data .h3,
.case-studies-carousel .proj-data p,
.case-studies-carousel .proj-data .loc-date {
    transition: all 0.3s ease !important;
}

/* Ensure old content is hidden during transitions */
.case-studies-carousel .owl-item:not(.active) .proj-data {
    opacity: 0 !important;
    visibility: hidden !important;
}

.case-studies-carousel .owl-item.active .proj-data {
    opacity: 1 !important;
    visibility: visible !important;
}

.case-studies-carousel .proj-data .h3 a:hover {
    color: #186396;
}

.case-studies-carousel .proj-data p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-studies-carousel .loc-date {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.case-studies-carousel .loc-date div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.case-studies-carousel .loc-date span:first-child {
    color: #186396;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.case-studies-carousel .loc-date span:last-child {
    font-weight: 500 !important;
}

.project-completed .proj-data .loc-date {
    margin-top: 0px !important;
}

.case-studies-carousel .team-slider-nav {
    text-align: right;
  }

.case-studies-carousel .team-slider-nav button {
    width: 50px;
    height: 80px;
    margin-right: 3px;
    background: transparent;
    position: relative;
    border: 0;
  }

.case-studies-carousel .proj-image figure img {
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 472px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-studies-carousel .proj-image figure {
  width: 100%;
  height: 100%;
  max-height: 472px;
  margin: 0;
  padding: 0;
}

.case-studies-carousel .proj-image {
  width: 100%;
  height: 100%;
  max-height: 472px;
  display: flex;
  align-items: stretch;
}


.case-studies-carousel .col-lg-6 {
  display: flex;
  flex-direction: column;
}

.case-studies-carousel .col-lg-6:first-child {
  justify-content: center;
}

.case-studies-carousel .col-lg-6:last-child {
  padding: 0;
}

.case-studies-carousel .row {
  display: flex;
  align-items: stretch;
}

.case-studies-carousel .team-slider-nav button::before {
    content: "";
    width: 100% !;
    height: 100%;
    border: 1px solid #c1c1c1 !important;
    transform: skew(-23deg, 0deg);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: all 0.3s ease;
}

.case-studies-carousel .team-slider-nav button:hover::before {
    background: #186396 !important;
    border-color: #186396 !important;
}

.case-studies-carousel .team-slider-nav button:hover {
    color: #ffffff !important;
}

.case-studies-carousel .team-slider-nav button i {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .case-studies-carousel .heading-style-2 .data h2 {
        font-size: 2rem;
    }
    
    .case-studies-carousel .proj-data {
        padding: 1.5rem;
    }
    
    .case-studies-carousel .proj-data .h3 a {
        font-size: 1.3rem;
    }
    
    .case-studies-carousel .proj-image {
        min-height: 250px;
    }
}

#resources .section-header, .solution-main #gallery .section-header, .solution-main #related .section-header, .product-related-section .section-header, .single-case-studies .product-gallery-section .section-header {
    margin-bottom: 4rem !important;
}

.solution-overview li {
    list-style: disc !important;
    margin-left: 20px !important;
    padding-left: 10px !important;
}

/* ========================================
   CASE STUDY CHALLENGE/SOLUTION/IMPACT SECTIONS
   ======================================== */

/* Challenge/Solution/Impact Grid */
.case-study-main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "challenge solution"
        "impact impact";
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(24, 99, 150, 0.15);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.challenge-section {
    border-left: 4px solid #dc3545;
    grid-area: challenge;
}

.solution-section {
    border-left: 4px solid #28a745;
    grid-area: solution;
}

.impact-section {
    border-left: 4px solid #186396;
    grid-area: impact;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.challenge-section .section-icon i {
    color: #dc3545;
}

.solution-section .section-icon i {
    color: #28a745;
}

.impact-section .section-icon i {
    color: #186396;
}

.section-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

/* Responsive for Challenge/Solution/Impact */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "challenge"
            "solution"
            "impact";
        gap: 40px;
    }
    
    .content-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }
    
    .section-icon {
        margin: 0 auto;
    }
    
    .case-study-main-content {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .content-grid {
        gap: 30px;
    }
    
    .case-study-main-content {
        padding: 40px 0;
    }
    
    .section-content h2 {
        font-size: 24px;
    }
}

/* ========================================
   CASE STUDY HERO MODIFICATIONS
   ======================================== */

/* Override hero-content grid for case studies */
.solution-hero .hero-content:has(.hero-text-full) {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Full width hero text when no image */
.hero-text-full {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* ===== CASE STUDY OVERVIEW SECTION ===== */
.case-study-overview-section {
    padding: 4rem 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.case-study-overview-section .container {
    padding: 0 !important;
    margin: 0 auto;
    max-width: 1200px;
}

.case-study-overview-section {
    padding: 4rem 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.overview-content {
    padding: 0;
    margin: 0;
}

.case-study-overview-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.overview-text {
    padding: 0;
    margin: 0;
}

.overview-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #495057;
    padding: 0;
    margin: 0;
}

.overview-description p {
    margin-bottom: 1.5rem;
}

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

.overview-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(24, 99, 150, 0.15);
    margin: 0;
    padding: 0;
}

.overview-featured-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.overview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    margin: 0;
    padding: 0;
}

.overview-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.overview-placeholder span {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Responsive for overview section */
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .overview-text {
        order: 1;
        width: 100%;
    }
    
    .overview-image {
        order: 2;
        width: 100%;
    }
    
    .overview-text h2 {
        font-size: 2rem;
    }
    
    .overview-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Section Separator */
.section-separator {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4rem 0;
}


/* Horizontal layout for tags and stats */
.tags-and-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tags-and-stats .solution-tags {
    margin: 0;
}

.tags-and-stats .solution-summary-stats {
    margin: 0;
}

/* Responsive for tags and stats */
@media (max-width: 768px) {
    .tags-and-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-text-full {
        text-align: left;
    }
}

/* Case Study Carousel Layout Fix for Single Link Wrapper */
.case-studies-carousel .owl-item .row > a {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    min-height: 400px !important; /* Ensure minimum height for content */
}

.case-studies-carousel .owl-item .row > a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.case-studies-carousel .owl-item .row > a:focus {
    outline: 2px solid #186396 !important;
    outline-offset: 2px !important;
}

.case-studies-carousel .owl-item .row > a .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    min-height: 400px !important; /* Ensure minimum height for columns */
}

/* Ensure the image maintains its aspect ratio */
.case-studies-carousel .owl-item .row > a .proj-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Maintain the existing carousel transition styles */
.case-studies-carousel .owl-item .row > a {
    transition: all 0.3s ease !important;
}

/* Ensure proper spacing and alignment */
.case-studies-carousel .owl-item .row > a .proj-data {
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 400px !important; /* Ensure minimum height for content area */
}

.case-studies-carousel .owl-item .row > a .proj-image {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    min-height: 400px !important; /* Ensure minimum height for image area */
}

.case-studies-carousel .owl-item .row > a .proj-image figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.case-studies-carousel .owl-item .row > a .proj-image figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Prevent cloned slides from being visible */
.case-studies-carousel .owl-item.cloned {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure single case study displays properly without carousel */
.case-studies-carousel .prj-slider:not(.owl-loaded) .row {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 400px !important; /* Ensure minimum height */
    overflow: visible !important; /* Allow content to be visible */
}

/* Fix overflow issue for case study rows */
.case-studies-carousel .row.g-0.overflow-hidden {
    overflow: visible !important; /* Override the overflow hidden */
    min-height: 400px !important;
}

/* Override Bootstrap overflow-hidden class for case studies */
.case-studies-carousel .overflow-hidden {
    overflow: visible !important;
}

/* Ensure case study content is always visible */
.case-studies-carousel .row {
    overflow: visible !important;
    min-height: 200px !important;
}

/* Specific override for the case study link wrapper */
.case-studies-carousel .row > a {
    overflow: visible !important;
    display: flex !important;
    min-height: 400px !important;
}

/* Ensure the case study content areas are visible */
.case-studies-carousel .proj-data,
.case-studies-carousel .proj-image {
    overflow: visible !important;
    min-height: 400px !important;
}

/* Override Owl Carousel display:none rule */
.case-studies-carousel .owl-carousel {
    display: block !important;
}

.case-studies-carousel .prj-slider {
    display: block !important;
}

/* Ensure carousel items are visible */
.case-studies-carousel .owl-carousel .owl-item {
    display: block !important;
}

/* Force visibility for case study content */
.case-studies-carousel .container-fluid.prj-slider {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any Owl Carousel display:none rules */
.case-studies-carousel .owl-carousel,
.case-studies-carousel .owl-carousel.owl-item,
.case-studies-carousel .owl-carousel .owl-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the carousel container and all its children are visible */
.case-studies-carousel .prj-slider,
.case-studies-carousel .prj-slider * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific override for the row and link elements */
.case-studies-carousel .prj-slider .row,
.case-studies-carousel .prj-slider .row > a {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Accessibility improvements for navigation buttons */
.case-studies-carousel .team-slider-nav button {
    transition: all 0.3s ease !important;
}

/* Ensure proper tabindex handling */
.case-studies-carousel .owl-item .row > a[tabindex] {
    outline: none !important;
}

.case-studies-carousel .owl-item .row > a[tabindex]:focus {
    outline: 2px solid #186396 !important;
    outline-offset: 2px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .case-studies-carousel .owl-item .row > a {
        min-height: 300px !important;
    }
    
    .case-studies-carousel .owl-item .row > a .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-height: 300px !important;
    }
    
    .case-studies-carousel .owl-item .row > a .proj-data {
        min-height: 200px !important;
        padding: 1.5rem !important;
    }
    
    /* Hide case study images on mobile for better performance and UX */
    .case-studies-carousel .proj-image {
        display: none !important;
    }
    
    .case-studies-carousel .owl-item .row > a .proj-image {
        display: none !important;
    }
    
    /* Adjust the layout to use full width for the text content */
    .case-studies-carousel .col-lg-6:first-child {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .case-studies-carousel .col-lg-6:last-child {
        display: none !important;
    }
    
    .case-studies-carousel .prj-slider:not(.owl-loaded) .row {
        min-height: 300px !important;
    }
    
    .case-studies-carousel .row.g-0.overflow-hidden {
        min-height: 300px !important;
    }
    .case-studies-carousel {
        padding: 40px 0px 0px 10px !important;
        max-height: 540px;
    }
}

/* Ensure the entire case studies section is visible */
.case-studies-carousel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.case-studies-carousel * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override Bootstrap overflow-hidden class for case studies */
.case-studies-carousel .overflow-hidden {
    overflow: visible !important;
}

/* Hide duplicate Owl Carousel navigation buttons */
.case-studies-carousel .owl-nav {
    display: none !important;
}

.case-studies-carousel .owl-dots {
    display: none !important;
}

/* Ensure proper slide transitions */
.case-studies-carousel .owl-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-studies-carousel .owl-item.active {
    opacity: 1;
}

/* Prevent content bleeding during transitions */
.case-studies-carousel .owl-stage {
    transition: transform 0.3s ease !important;
}

/* Ensure only active slide is visible */
.case-studies-carousel .owl-item:not(.active) {
    visibility: hidden !important;
    opacity: 0 !important;
}

.case-studies-carousel .owl-item.active {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure carousel stage doesn't show multiple slides */
.case-studies-carousel .owl-stage {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.case-studies-carousel .owl-stage-outer {
    overflow: hidden !important;
}

/* Ensure proper slide positioning */
.case-studies-carousel .owl-item {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Prevent slide content from being visible outside the container */
.case-studies-carousel .owl-stage-outer {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

.case-studies-carousel .loc-date {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.case-studies-carousel .loc-date div {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

/* More specific override for any conflicting styles */
.case-studies-carousel .proj-data .loc-date {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.case-studies-carousel .proj-data .loc-date div {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

/* Force the icon and text to be inline */
.case-studies-carousel .loc-date i,
.case-studies-carousel .loc-date span {
    display: inline !important;
    vertical-align: middle !important;
}

/* Force the loc-date to be flex and display icon/text on same line */
.case-studies-carousel .loc-date {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

/* Override any conflicting display rules */
.case-studies-carousel .proj-data .loc-date {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

/* Force inline display for icon and text */
.case-studies-carousel .loc-date i,
.case-studies-carousel .loc-date span {
    display: inline !important;
    vertical-align: middle !important;
}

/* Ensure the icon and text are on the same line */
.case-studies-carousel .loc-date > * {
    display: inline !important;
    vertical-align: middle !important;
}

/* Very specific override for the tag structure */
.case-studies-carousel .loc-date i.fas.fa-tag,
.case-studies-carousel .loc-date span {
    display: inline !important;
    vertical-align: middle !important;
    float: none !important;
    clear: none !important;
}

/* Force the container to be inline-flex */
.case-studies-carousel .loc-date {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    white-space: nowrap !important;
}



