#main {
	padding-left: 0!important;
	padding-right: 0!important;
	padding-top: 10px!important;
}

#main .fusion-row{
	max-width: 100%!important;
}

/* Case Studies Page Styles */
.case-studies-header {
    width: 100%;
	min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-background {
    width: 100%;
	min-height: 480px;
    background:url('/wp-content/uploads/2025/10/case-study-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 100%;
    padding: 0 20px;
}

.header-content h1 {
	font-family: Lato;
font-weight: 700;
font-style: Bold;
font-size: 100px;
letter-spacing: 0%;
text-align: center;
	color: #fff;
	margin-bottom: 3rem;
}

.header-content h2 {
	font-family: Lato;
font-weight: 700;
font-style: Bold;
font-size: 61px;
letter-spacing: 0%;
text-align: center;
color: #91D3FF;
margin-bottom: 1.5rem;
}

.header-content p {
	font-family: Lato;
font-weight: 700;
font-style: Bold;
font-size: 28px;
letter-spacing: 0%;
text-align: center;
color: #fff;
}

/* Filter Navigation */
.filter-navigation {
    background: white;
    padding: 20px 0;
	margin-top: 2rem;
}

.filter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 0 13px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    position: relative;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: absolute;
    left: -2.5rem;
    top: 5px;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

.filter-dropdowns {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 50px;
}

/* Filter Dropdown Wrapper */
.filter-dropdown-wrapper {
    position: relative;
    width: 100%;
}

/* Filter Dropdown Buttons */
.filter-dropdown-btn {
    font-family: Lato;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 2px solid #569BBE;
    border-bottom: 2px solid #569BBE;
    border-right: 2px solid #569BBE;
    border-left: 2px solid #569BBE;
    border-radius: 11px;
    background: #E3F2FD;
    color: #03466C;
    font-size: 18px;
    font-weight: 600;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    
}

.filter-dropdown-btn:hover {
    background: #BBDEFB;
    border-color: #569BBE;
}

.filter-dropdown-btn.active {
    background: #E3F2FD;
    border-color: #569BBE;
    border-bottom: 2px solid #E3F2FD;
    border-radius: 11px 11px 0px 0px;
}

.filter-dropdown-btn.active .arrow-icon {
    transform: rotate(0deg);
}

.filter-dropdowns .filter-dropdown-wrapper{
    display: none;
    transition: all 0.3s ease;
}

.filter-dropdowns.active .filter-dropdown-wrapper{
    display: flex;
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #03466C;
}

/* Filter Dropdown Menus */
.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #E3F2FD;
    border-top: 0px solid #569BBE;
    border-bottom: 2px solid #569BBE;
    border-right: 2px solid #569BBE;
    border-left: 2px solid #569BBE;
    border-radius: 0px 0px 11px 11px;
    /* margin-top: 4px; */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 15px 0px;
}

.filter-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Filter Options */
.filter-option {
    font-family: Lato;
    display: flex;
    align-items: center;
    padding: 5px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #374151;
    font-size: 14px;
    font-weight: 400;
    text-wrap: nowrap;
    gap:10px;
}

.filter-option:hover {
    background: #BBDEFB;
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    min-width: 16px;
    height: 16px;
    border: 2px solid #569BBE;
    border-radius: 3px;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: #03466C;
    border-color: #03466C;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Hide dropdowns by default */
.services-menu,
.industries-menu,
.outcomes-menu {
    display: none;
}

.services-menu.show,
.industries-menu.show,
.outcomes-menu.show {
    display: block;
}

/* Case Studies Container */
.case-studies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0px 90px 0px;
}

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

/* Case Study Cards */
.case-study-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
	box-shadow: 0px 3px 23px 0px #00000029;
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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


/* Card Content */
.card-content {
    padding: 24px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    height: 200px;
}

.card-content h3 {
font-family: Lato;
font-weight: 900;
font-style: Black;
font-size: 24px;
line-height: 100%;
letter-spacing: 0%;
text-align: center;
color: #03466C;

}

.read-more-btn {
    font-family: Lato;
    background: white;
    border: 2px solid #EE8434 !important;
    color: #EE8434;
    padding: 10px 24px !important;
    border-radius: 6px;
    font-size: 16px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
	margin-top: 1.5rem;
    position: absolute;
    bottom: 2rem;
}

.read-more-btn:hover {
    background: #fb923c !important;
    color: white;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content h2 {
        font-size: 1.4rem;
    }
    
    .filter-container {
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-dropdowns {
        width: 100%;
        flex-direction: column;
		gap: 10px;
		z-index: 1;
    }
    
    .filter-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-studies-container {
        padding: 40px 15px;
    }
	
	.hamburger-menu {
		position: relative;
		left:0;
	}
	
	.clear-filter-btn {
		position: relative !important;
        right: 0 !important;
	}
	
	
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    .card-image {
        height: 180px;
    }
}

    .case-studies-grid {
        position: relative;
        min-height: 300px; /* ensures layout stability */
        transition: opacity 0.3s ease;
    }

    /* When loading starts */
    .case-studies-grid.loading {
        opacity: 0.4;
        pointer-events: none;
    }

    /* Centered loading overlay */
    .case-studies-grid.loading::after {
        content: "Loading case studies...";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 1rem 2rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 2;
        animation: fadePulse 1.5s ease-in-out infinite;
    }

    /* Simple pulsing animation */
    @keyframes fadePulse {
        0% { opacity: 1; }
        50% { opacity: 0.6; }
        100% { opacity: 1; }
    }

    /* Message styles */
    .no-results,
    .error-msg {
        text-align: center;
        color: #444;
        font-size: 1rem;
        font-weight: 500;
        margin-top: 2rem;
    }
    
    .clear-filter-btn {
        border: 1px solid #ccc;
        padding: 8px 16px;
        cursor: pointer;
        border-radius: 6px;
        font-size: 14px;
        transition: background 0.2s ease, opacity 0.2s ease;
        opacity: 0;
        pointer-events: none;
        position:absolute;
        right: -105px;
		background: transparent ;
		border: 0px !important;
		color: #569bbe;
		text-decoration: underline;
		text-underline-offset: 2px;
    }

    .clear-filter-btn.show {
        opacity: 1;
        pointer-events: auto;
    }

    .clear-filter-btn:hover {
        color: #569bbe;
		text-decoration: underline;
		text-underline-offset: 2px;
    }