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

/* ==========================================================================
   Alea Case Studies Custom CSS
   ========================================================================== */

.alea-case-studies-wrapper {
    /* font-family: 'Outfit', sans-serif; */
    background-color: #020617;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.alea-hero-section {
    position: relative;
    padding: 160px 0 130px;
    background-color: #020617;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relative-z {
    position: relative;
    z-index: 5;
}

/* Glowing background shapes */
.alea-hero-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 80, 195, 0.18) 0%, rgba(2, 6, 23, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.alea-hero-glow-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(2, 6, 23, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.alea-hero-glow-3 {
    position: absolute;
    right: -15%;
    top: 5%;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.12);
    background: transparent;
    box-shadow: 0 0 150px rgba(59, 130, 246, 0.05) inset;
    pointer-events: none;
    z-index: 2;
}

/* Outer decorative arcs */
.alea-hero-section::before {
    content: '';
    position: absolute;
    right: -25%;
    bottom: -15%;
    width: 75vw;
    height: 75vw;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 250px rgba(99, 102, 241, 0.03) inset;
    pointer-events: none;
    z-index: 2;
}

.alea-hero-section::after {
    content: '';
    position: absolute;
    right: -5%;
    bottom: -25%;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.08);
    pointer-events: none;
    z-index: 2;
}

/* Hero Content */
.alea-hero-content {
    margin: 0 auto;
}

.alea-hero-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom highlight text styling matching mock */
.alea-hero-title .text-orange {
    color: #FF9E4B;
    background: linear-gradient(135deg, #FFAE63 0%, #FF8A22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.alea-hero-title .text-pink {
    color: #D65BF4;
    background: linear-gradient(135deg, #E879F9 0%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.alea-hero-title .text-indigo {
    color: #5D83FF;
    background: linear-gradient(135deg, #7DD3FC 0%, #3B82F6 50%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.alea-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 auto 40px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

/* Watermark Text */
.alea-hero-watermark {
    position: absolute;
    bottom: -4%;
    left: 50%;
    transform: translate(-50%, 15px);
    font-size: clamp(5rem, 10vw, 13rem);
    font-weight: 700;
    letter-spacing: -2px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
    text-transform: capitalize;
    background: linear-gradient(180deg, rgb(255 255 255 / 13%) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}

/* Premium Pill Action Button */
.alea-hero-action {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.alea-btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1E50C3 0%, #0A3BB0 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 8px 8px 26px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(30, 80, 195, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.alea-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.alea-btn-primary:hover::after {
    transform: translateX(100%);
}

.alea-btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.alea-btn-primary:active {
    transform: translateY(0);
}

.alea-btn-text {
    letter-spacing: 0.3px;
}

.alea-btn-icon {
    background: #ffffff;
    color: #0A3BB0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alea-btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.alea-btn-primary:hover .alea-btn-icon {
    background: #f8fafc;
}

.alea-btn-primary:hover .alea-btn-icon svg {
    transform: translateX(2px);
}

/* Hero Active States (Triggers transitions on page load) */
.alea-hero-section.alea-hero-active .alea-hero-title {
    opacity: 1;
    transform: translateY(0);
}

.alea-hero-section.alea-hero-active .alea-hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.alea-hero-section.alea-hero-active .alea-hero-action {
    opacity: 1;
    transform: translateY(0);
}

.alea-hero-section.alea-hero-active .alea-hero-watermark {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==================== BB Counter 3D Card Section ==================== */
.bb-counter-3d-section {
    padding: 50px 0;
    background: #000;
    /* Dark background as in image */
    overflow: hidden;
}

.bb-counter-3d-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.bb-counter-3d-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(270deg, #006eef 0, #000 100%);
}

/* 3D Highlight/Glow Effect */
.bb-counter-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 162, 255, 0.4), transparent 70%);
    border-radius: 20px;
    pointer-events: none;
}

.bb-counter-3d-card:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 162, 255, 0.3);
    border-color: rgba(0, 162, 255, 0.5);
}

.bb-counter-3d-card .card-content {
    position: relative;
    z-index: 1;
}

.bb-counter-3d-card .counter-val {
    font-size: 34px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.bb-counter-3d-card .counter-label {
    font-size: 16px;
    color: #f1f1f1;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bb-counter-3d-card {
        max-width: 240px;
    }
}

@media (max-width: 991px) {
    .bb-counter-3d-card {
        flex: 0 0 calc(50% - 20px);
        max-width: none;
    }
}

@media (max-width: 576px) {
    .bb-counter-3d-card {
        flex: 0 0 100%;
    }
}


/* ==========================================================================
   Process Steps Section
   ========================================================================== */
.alea-process-steps-section {
    padding: 50px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 6;
}

.alea-process-intro-text {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 500;
    color: #1e293b;
}

.alea-process-grid {
    margin-top: 20px;
}

.alea-process-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Left Accent Line */
.alea-process-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1E50C3;
}

.alea-process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 80, 195, 0.08);
    border-color: rgba(30, 80, 195, 0.15);
}

.alea-process-num {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 600;
    color: #1E50C3;
    line-height: 1;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.alea-process-card:hover .alea-process-num {
    transform: scale(1.05);
}

.alea-process-title {
    font-size: clamp(1.15rem, 2vw, 1.2rem);
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.alea-process-card:hover .alea-process-title {
    color: #1E50C3;
}

@media (max-width: 768px) {
    .alea-process-steps-section {
        padding: 60px 0;
    }

    .alea-process-card {
        padding: 30px;
    }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.alea-case-studies-content-area {
    background-color: #ffffff;
    color: #334155;
    position: relative;
    z-index: 10;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-top: -20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Case Studies AJAX Grid and Cards Section
   ========================================================================== */
.alea-cs-ajax-section {
    padding: 60px 0;
    background: #f1f5f9 !important;
    position: relative;
    z-index: 6;
}

/* Custom Filter Buttons */
.alea-cs-filters {
    margin-bottom: 40px;
}

.alea-cs-filters .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 30px;
    overflow: hidden;
    border: 1.5px solid #0e2a5b;
    padding: 0;
    box-shadow: 0 4px 15px rgba(14, 42, 91, 0.05);
}

.alea-cs-filters .btn {
    border: none;
    border-right: 1.5px solid #0e2a5b;
    background: transparent;
    color: #0e2a5b;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-shadow: none;
    box-shadow: none !important;
}

.alea-cs-filters .btn:last-child {
    border-right: none;
}

.alea-cs-filters .btn.active,
.alea-cs-filters .btn:hover {
    background: #0e2a5b;
    color: #ffffff !important;
}

/* Case Studies Premium Card Styling */
.alea-cs-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
}

.alea-cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12), 0 10px 20px -10px rgba(15, 23, 42, 0.04);
    border-color: rgba(37, 99, 235, 0.15);
}

.alea-cs-img-wrap {
    position: relative;
    padding-bottom: 65%;
    /* Sleeker aspect ratio for vertical layout cards */
    overflow: hidden;
    border-radius: 18px;
    margin: 16px;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Bottom shadow vignette overlay over the image */
.alea-cs-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.alea-cs-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.alea-cs-card:hover .alea-cs-img-wrap img {
    transform: scale(1.06) rotate(0.5deg);
}

.alea-cs-image-bottom-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 32px);
}

.alea-cs-image-bottom-label .label-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.95;
}

.alea-cs-image-bottom-label .label-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.alea-cs-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 0 !important;
}

.alea-cs-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    width: fit-content;
}

.alea-cs-badge .badge-dot {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
}

.alea-cs-card-title {
    font-size: 17px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.alea-cs-card-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.alea-cs-card-title a:hover {
    color: #2563eb;
}

.alea-cs-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #414141;
    margin-bottom: 20px;
}

.alea-cs-card-divider {
    height: 1px;
    background-color: #0080ff52;
    margin-top: auto;
    margin-bottom: 16px;
    width: 100%;
}

.alea-cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.alea-cs-industry-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alea-cs-industry-meta .meta-label {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alea-cs-industry-meta .meta-value {
    font-size: 12px;
    color: #0f172a;
    font-weight: 600;
}

.alea-cs-btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #2563eb;
    color: #2563eb !important;
    background: transparent;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.alea-cs-btn-readmore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.alea-cs-btn-readmore span,
.alea-cs-btn-readmore i {
    position: relative;
    z-index: 2;
}

.alea-cs-btn-readmore:hover {
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.alea-cs-btn-readmore:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.alea-cs-btn-readmore i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.alea-cs-btn-readmore:hover i {
    transform: translateX(3px);
}

/* AJAX Loading States */
.alea-cs-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Custom Pagination styles */
.alea-cs-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.alea-cs-pagination .page-link {
    border: 2px solid #0e2a5b;
    color: #0e2a5b;
    background: transparent;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
}

.alea-cs-pagination .page-item.active .page-link {
    background: #0e2a5b;
    color: #ffffff;
    border-color: #0e2a5b;
    box-shadow: 0 4px 10px rgba(14, 42, 91, 0.2);
}

.alea-cs-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.alea-cs-pagination .page-link:hover {
    background: #0e2a5b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(14, 42, 91, 0.2);
}

/* Centered AJAX Loader Spinner */
.alea-cs-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(14, 42, 91, 0.18);
    border: 1px solid rgba(14, 42, 91, 0.08);
}

.alea-cs-loading .spinner-border {
    width: 32px;
    height: 32px;
    color: #0e2a5b !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Industry Label Line */
.single-case-industry-name {
    font-size: 14px;
    font-weight: 700;
    color: #0e2a5b;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .alea-cs-card-body {
        padding: 8px 20px 20px 20px !important;
    }

    .alea-cs-img-wrap {
        margin: 12px;
    }
}

@media (max-width: 767px) {
    .alea-cs-img-wrap {
        margin: 12px 12px 0 12px;
    }

    .alea-cs-card-body {
        padding: 16px 20px 20px 20px !important;
    }

    .alea-cs-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 5px 15px;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 25px;
    }

    .alea-cs-filters::-webkit-scrollbar {
        display: none;
    }

    .alea-cs-filters .btn-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        border-radius: 30px !important;
        width: max-content;
        box-shadow: 0 4px 15px rgba(14, 42, 91, 0.05);
    }

    .alea-cs-filters .btn {
        width: auto !important;
        padding: 8px 18px !important;
        font-size: 14px !important;
        border-bottom: none !important;
        border-right: 1.5px solid #0e2a5b !important;
        display: inline-block;
        float: none;
    }

    .alea-cs-filters .btn:last-child {
        border-right: none !important;
    }
}

/* ==========================================================================
   Case Studies CTA Section
   ========================================================================== */
.alea-cs-cta-section {
    position: relative;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
}

/* Parallax scroll on desktop screens */
/* @media (min-width: 992px) {
    .alea-cs-cta-section {
        background-attachment: fixed;
    }
} */

.alea-cs-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(37 99 235 / 22%) 0%, rgb(30 64 175 / 13%) 100%);
    z-index: 1;
}

.alea-cs-cta-title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-transform: none;
}

.alea-cs-cta-desc {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
}

.alea-cs-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    background: transparent;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alea-cs-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.alea-cs-cta-btn:hover {
    color: #1e40af !important;
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.alea-cs-cta-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.alea-cs-cta-btn:active {
    transform: translateY(0);
}

.alea-cs-cta-btn span {
    position: relative;
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .alea-cs-cta-section {
        padding: 55px 0;
    }

    .alea-cs-cta-title {
        margin-bottom: 30px;
    }

    .alea-cs-cta-btn {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   Layout Switcher and AJAX Search Toolbar
   ========================================================================== */
.alea-cs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.alea-cs-toolbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.alea-cs-layout-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alea-cs-layout-switcher .switcher-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.alea-cs-layout-switcher .layout-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none !important;
    padding: 20px;
}

.alea-cs-layout-switcher .layout-btn:hover {
    background: #f8fafc;
    color: #2563eb;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.alea-cs-layout-switcher .layout-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.alea-cs-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alea-cs-sort-wrapper .sort-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alea-cs-sort-select {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2364748b%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: all 0.2s ease;
    height: 38px;
    line-height: 20px;
}

.alea-cs-sort-select:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.alea-cs-sort-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.12);
}

.alea-cs-search-wrapper {
    position: relative;
}

.alea-cs-search-wrapper .search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 30px;
    padding-left: 40px;
    padding-right: 40px;
    width: auto;
    height: 40px;
    transition: all 0.3s ease;
}

.alea-cs-search-wrapper .search-input-group:hover {
    border-color: #cbd5e1;
}

.alea-cs-search-wrapper .search-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.12);
}

.alea-cs-search-wrapper #alea-cs-search {
    width: 100%;
    border: none !important;
    background: transparent;
    outline: none !important;
    font-size: 13px;
    color: #1e293b;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.alea-cs-search-wrapper #alea-cs-search::placeholder {
    color: #94a3b8;
}

.alea-cs-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: #2563eb;
    font-size: 14px;
    pointer-events: none;
    top: auto;
}

.alea-cs-search-wrapper #alea-cs-search-clear {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    outline: none !important;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
}

.alea-cs-search-wrapper #alea-cs-search-clear:hover {
    color: #94a3b8;
}

/* ==========================================================================
   List View Card Styling
   ========================================================================== */
@media (min-width: 768px) {
    .alea-cs-card.list-view {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 290px;
    }

    .alea-cs-card.list-view .alea-cs-img-wrap {
        flex: 0 0 340px;
        width: 340px;
        max-width: 340px;
        height: auto;
        padding-bottom: 0 !important;
        margin: 16px 0 16px 16px;
        border-radius: 18px;
        position: relative;
    }

    .alea-cs-card.list-view .alea-cs-img-wrap img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    .alea-cs-card.list-view .alea-cs-card-body {
        flex: 1;
        padding: 24px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .alea-cs-card.list-view .alea-cs-card-divider {
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* Toolbar responsiveness */
@media (max-width: 1199px) {
.alea-hero-section {
    padding: 140px 0 100px;
}
.alea-hero-subtitle{
    font-size: 18px;
}
.alea-hero-watermark {
    font-size:8vw;
    bottom: -2%;
}
.bb-counter-3d-section {
    padding: 40px 0;
}
    .alea-cs-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 5px 15px;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 25px;
        scrollbar-width: thin;
    }

    .alea-cs-filters::-webkit-scrollbar {
        display: none;
    }
    .alea-cs-filters .btn-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        border-radius: 30px !important;
        width: max-content;
        box-shadow: 0 4px 15px rgba(14, 42, 91, 0.05);
    }
    .alea-cs-ajax-section,.alea-process-steps-section {
        padding: 45px 0;
    }
    .alea-process-intro-text {
        font-size: 18px;
    }
    .alea-process-num {
    font-size: 4vw;
}
.alea-process-title {
    font-size: 16px;
}
.alea-cs-cta-title {
    font-size: 30px;
}
.alea-cs-cta-desc {
    font-size: 18px;
}
.alea-cs-cta-btn {
    padding: 10px 36px;
    height: auto;
}
.alea-cs-card-title {
    font-size: 16px;
}
}
@media (max-width: 992px) {
        .alea-hero-section {
        padding: 124px 0 75px;
    }
    .alea-hero-title {
        font-size: 32px;
    }
    .alea-hero-subtitle {
        font-size: 16.5px;
    }
    .alea-btn-primary {
        padding: 5px 8px 5px 26px;
    }
    .bb-counter-3d-card .counter-val {
        font-size:8dvw;
    }
    .alea-cs-filters .btn {
        padding: 10px 24px;
        height: auto;
    }
    .alea-cs-filters {
        margin-bottom: 25px !important;
    }
    .alea-cs-excerpt {
        margin-bottom: 8px;
    }
    .alea-cs-cta-title {
        font-size: 28px;
    }
}
@media (max-width: 767px) {
    .alea-cs-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }

    .alea-cs-toolbar-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }

    .alea-cs-layout-switcher,
    .alea-cs-sort-wrapper {
        justify-content: space-between;
        width: 100%;
    }

    .alea-cs-sort-select {
        flex: 1;
        max-width: 200px;
    }

    .alea-cs-search-wrapper,
    .alea-cs-search-wrapper .search-input-group {
        width: 100%;
    }
    .alea-hero-title {
        font-size: 30px;
    }
    .alea-hero-subtitle {
        font-size: 16px;
        margin: 0 auto 28px;
    }
    .alea-hero-watermark {
        font-size: 12dvw;
        bottom: 0%;
    }
    .alea-hero-section {
        padding: 100px 0 60px;
    }
    h2.main-heading.text-white {
    font-size: 24px;
}
    .bb-counter-3d-card .counter-val {
        font-size:8dvw;
    }
    .alea-cs-ajax-section, .alea-process-steps-section {
        padding: 40px 0;
    }
    .alea-cs-layout-switcher .layout-btn {
        padding: 10px;
        width: 34px;
    height: 34px;
    }
    .alea-cs-pagination .page-link {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
        .alea-process-intro-text {
        font-size: 16px;
    }
    .alea-process-num {
        font-size:8dvw;
    }
    .alea-process-card {
        padding: 24px;
    }
        .alea-cs-cta-section {
        padding: 40px 0;
    }
        .alea-cs-cta-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
        .alea-cs-cta-desc {
        font-size: 15px;
    }
    .alea-cs-industry-meta .meta-label {
    font-size: 12px;
    font-weight: 700;
}
}