/* --- 1. LOGO SHOWCASE: VISUAL BALANCE & SCALING --- */

.client-logos {
    padding: 1rem 0 !important;
    overflow: hidden;
}

.client-logos .container {
    max-width: 100% !important;
    padding: 0 5%;
}

.client-logos .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.client-logos .col-6, 
.client-logos .col-lg-3 {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 2rem !important;
}

/* Reset Card & AOS */
.client-logos .image-link {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
}

.client-logos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* THE FIX: Bounding Box for Logos */
.client-logos img {
    /* Set a strict 'visual container' size */
    max-height: 32px !important; 
    max-width: 130px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Forces logos to stay balanced within the box */
    
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile Logo Shrink */
@media (max-width: 767px) {
    .client-logos img {
        max-height: 22px !important; /* Smaller on mobile to fit the row better */
        max-width: 90px !important;
    }
    .client-logos .col-6 {
        padding: 0 1rem !important;
    }
    .client-logos .row {
        overflow-x: auto;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- 2. HERO: CLIPPING FIX & BUTTON HUGGING --- */

.page-home #carouselPageHeader .carousel-item {
    aspect-ratio: auto !important; /* Fixes content clipping */
    min-height: 600px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 5rem !important; /* Desktop gap from bottom */
}

@media (max-width: 767px) {
    .page-home #carouselPageHeader .carousel-item {
        /* On mobile, use padding to ensure buttons are hugged but not cut off */
        min-height: 100vh !important; 
        padding-bottom: 2.5rem !important; 
        justify-content: center !important; /* Centers text vertically for better mobile UI */
    }

    /* Force the button container to sit closer to the text */
    .page-home #carouselPageHeader .carousel-caption .d-inline.align-start {
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important; /* Tight spacing between stacked mobile buttons */
    }
}

/* --- 3. HERO: DYNAMIC HEIGHT & BUTTON HUGGING --- */

.page-home #carouselPageHeader .carousel-item {
    aspect-ratio: auto !important; 
    min-height: 600px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 5rem !important;
}

@media (max-width: 767px) {
    .page-home #carouselPageHeader .carousel-item {
        min-height: 100vh !important;
        padding-bottom: 2.5rem !important;
        justify-content: center !important;
    }

    /* Keep buttons tight to the paragraph above */
    .page-home #carouselPageHeader .carousel-caption .d-inline.align-start {
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

/* --- 2. HERO: DYNAMIC HEIGHT & BUTTON HUGGING --- */

.page-home #carouselPageHeader .carousel-item {
    aspect-ratio: auto !important; 
    min-height: 600px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 5rem !important;
}

@media (max-width: 767px) {
    .page-home #carouselPageHeader .carousel-item {
        min-height: 100vh !important;
        padding-bottom: 3rem !important;
        justify-content: center !important;
    }

    /* Buttons stack and stay close to the description */
    .page-home #carouselPageHeader .carousel-caption .d-inline.align-start {
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}
/* --- 2. HERO: CLIPPING FIX & BUTTON HUGGING --- */

.page-home #carouselPageHeader .carousel-item {
    aspect-ratio: auto !important; /* Fixes content clipping */
    min-height: 600px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 5rem !important; /* Desktop gap from bottom */
}

@media (max-width: 767px) {
    .page-home #carouselPageHeader .carousel-item {
        /* On mobile, use padding to ensure buttons are hugged but not cut off */
        min-height: 100vh !important; 
        padding-bottom: 2.5rem !important; 
        justify-content: center !important; /* Centers text vertically for better mobile UI */
    }

    /* Force the button container to sit closer to the text */
    .page-home #carouselPageHeader .carousel-caption .d-inline.align-start {
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important; /* Tight spacing between stacked mobile buttons */
    }
}

/* --- TESTIMONIAL SECTION: RESPONSIVE SPACING --- */

.md-testimonial-section {
    /* clamp(MIN, PREFERRED, MAX) */
    /* Scales from 3.5rem (56px) on mobile to 6.25rem (100px) on desktop */
    margin-top: clamp(3.5rem, 8vw, 6.25rem) !important;
    margin-bottom: clamp(3.5rem, 8vw, 6.25rem) !important;
    
    /* Ensure the section is treated as a block for margins to apply correctly */
    display: block;
    position: relative;
    clear: both;
}
*/

.carousel-page-top .carousel-item h2{
	max-width: 650px !important;
}

#carouselHomepageHeader .carousel-caption .md-paragraph-lg, #carouselPageHeader .carousel-caption h2{
	font-size: clamp(1.25rem, 1.071rem + 0.476vw, 1.5rem);
}

/* Target the buttons inside that specific wrapper */
.carousel-caption .d-inline.align-start a.btn {
    /* 1. Ensure they can actually take margins (inline elements sometimes don't) */
    display: inline-block !important; 
    
    /* 2. Reset existing Bootstrap margins that might be interfering */
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* 3. Apply the 1rem gap ONLY between the buttons */
.carousel-caption .d-inline.align-start a.btn + a.btn {
    margin-left: 1rem !important;
}

/* 4. Mobile adjustment: Stack them if the screen is too narrow */
@media (max-width: 575px) {
    .carousel-caption .d-inline.align-start a.btn {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 1rem !important; /* Space when stacked */
    }
}

/* --- 1. GLOBAL VARIABLES --- */
:root {
    --content-max-width: 56rem; /* 896px */
}

/* --- 2. HERO & SECTION HEADLINES --- */
#carouselBlogHeader.md-blog-hero .carousel-caption.md-blog-hero-caption h1.md-title { 
    font-size: clamp(2rem, 0.571rem + 3.81vw, 4rem); 
    text-wrap: balance;
}

/* Specific Badge for Hero only */
.md-blog-hero-caption .md-badge {
    font-size: 1rem !important;
    line-height: 1 !important;
}

/* Eyebrows / Pretitles (Related & CTA) - Restored to your preferred clamp */
.md-cta-blog__pretitle, 
.md-title-alt {
    font-size: clamp(1.375rem, 1.107rem + 0.714vw, 1.75rem) !important;
    line-height: 1.2;
}

/* Main Section Headings (Related & CTA) */
.md-cta-blog__title, 
.md-related-blogs-title {
    font-size: clamp(2rem, 1.554rem + 1.19vw, 2.625rem) !important;
    line-height: 1.2;
}

/* Body Headings */
.md-blog-body h2 {
    text-wrap: pretty;
    font-size: clamp(1.725rem, 1.529rem + 0.524vw, 2rem);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
}

.md-blog-body h3 {
    margin-bottom: 1.25rem;
}

.md-blog-hero-meta {
    font-size: 0.875rem;
}

/* --- HERO CONTAINER & ALIGNMENT --- */
.md-blog-hero .carousel-item {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end !important;
    height: auto !important;
    min-height: 42rem !important; 
    padding-top: 3rem !important; 
    padding-bottom: 1.5rem !important;
    background-size: cover !important;
    background-position: center !important;
}

.md-blog-hero .carousel-caption.md-blog-hero-caption {
    position: relative !important;
    left: 15.625% !important;
    transform: none !important;
    width: 100% !important;
    max-width: var(--content-max-width) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

@media (max-width: 61.99rem) {
    .md-blog-hero .carousel-caption.md-blog-hero-caption {
        left: 5% !important;
        max-width: 90% !important;
    }
    .md-blog-hero .carousel-item { min-height: 31.25rem !important; }
}

/* --- 3. TYPOGRAPHY: BODY CONTENT --- */
.md-blog-body p,
.md-blog-body.with-list-styles ul > li, 
.md-blog-body.with-list-styles ol > li {
    font-size: clamp(1.125rem, 1.036rem + 0.238vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.md-inline-cta__content, .md-inline-cta__content p, .md-inline-cta__content span, .md-inline-cta__content strong {
	font-size: clamp(1.125rem, 1.071rem + 0.143vw, 1.2rem);
    line-height: 1.6;
}

p.md-blog-post-intro, .md-cta-blog__body {
    font-size: clamp(1.25rem, 1.161rem + 0.238vw, 1.375rem);
    line-height: 1.5;
}

.md-blog-body.with-list-styles ul,  
.md-blog-body.with-list-styles ol { margin-bottom: 1.5rem; }

.md-blog-body a {
    color: #218AAB;
    text-decoration: underline;
}

/* --- 4. CARDS & BADGES --- */
.md-blog-card-title {
    font-size: 1.375rem;
    line-height: 1.25;
    margin-bottom: 0.375rem;
}

.md-blog-card-desc {
    font-size: 1rem;
    line-height: 1.5;
}

/* Featured / Latest post body text size */
.md-blog-panel-overlay p {
    font-size: 1.25rem;
}

/* Big Card (Panel) Padding Fix */
.md-blog-panel-body {
    padding-left: 3rem;   /* Adjust this value for left spacing */
    padding-bottom: 3rem; /* Adjust this value for bottom spacing */
}

/* --- 4. CARDS & PANELS: DESKTOP --- */
.md-blog-panel-overlay {
    padding: 2.25rem 1.5rem; /* 36px 24px converted to rem */
}

.md-overlay-content {
    position: absolute;
    right: 2.25rem;   /* 36px */
    left: 2.25rem;    /* 36px */
    bottom: 0;
    padding-bottom: 1.5rem; /* 24px */
}

.md-blog-panel-date {
    font-size: 0.875rem;
}

.md-blog-panel-title{
	font-size: clamp(1.375rem, 0.75rem + 1.667vw, 2.25rem);
}

.md-blog-panel-overlay p{
	font-size: clamp(1rem, 0.821rem + 0.476vw, 1.25rem);
}

/* Small Card Padding */
.md-blog-card-body {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
}

.md-blog-card-date {
    font-size: 0.875rem;
}

.md-blog-card .md-badge, 
.md-blog-panel .md-badge {
    font-size: 0.875rem;
    line-height: 100%;
}

/* --- 4. Unified Hover Logic (Fixed) --- */

/* 1. Prevent jumping/moving */
.md-blog-card:hover,
.md-blog-panel:hover {
    transform: none !important;
}

/* 2. Setup the Overlay Container */
/* We target the image wrapper for small cards and the panel itself for the big card */
.md-blog-card-image-wrap,
.md-blog-card-image-placeholder,
.md-blog-panel {
    position: relative;
    overflow: hidden;
}

/* 3. Create the Gradient Layer */
.md-blog-card-image-wrap::after,
.md-blog-card-image-placeholder::after,
.md-blog-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Your Brand Blue Gradient */
    background: linear-gradient(180deg, rgba(55, 107, 142, 0) 0%, rgba(55, 107, 142, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* Sit above the <img> tag */
    pointer-events: none; /* Ensure it doesn't block clicks */
}

/* 4. Trigger Hover on the Parent Card */
/* When the CARD is hovered, show the overlay on the IMAGE WRAP */
.md-blog-card:hover .md-blog-card-image-wrap::after,
.md-blog-card:hover .md-blog-card-image-placeholder::after,
.md-blog-panel:hover::after {
    opacity: 1;
}

/* 5. Ensure Text is always on top */
.md-blog-panel-overlay {
    z-index: 3;
}



/* --- 5. TABLES --- */
.md-blog-body table th, 
.md-blog-body table td {
    padding: 1.25rem;
    min-width: 11.25rem;
    line-height: 1.4;
}

.md-blog-body table td:last-child { min-width: 15.625rem; }

.md-blog-body figure.table {
    margin: 1.5rem 0 !important;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Tables */
.md-blog-body figure.table::-webkit-scrollbar { height: 6px; }
.md-blog-body figure.table::-webkit-scrollbar-thumb {
    background: #376B8E;
    border-radius: 10px;
}
.md-blog-body figure.table::-webkit-scrollbar-track { background: #f1f1f1; }

/* --- 6. MAIN LAYOUT & GRID --- */
.md-blog-body.col-lg-10,
.md-blog-content-layout.container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.md-blog-content-layout {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center;
    padding: 1rem 0;
}

@media (min-width: 90rem) { 
    .md-blog-content-layout {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 75rem !important;
    }
}

@media (min-width: 62rem) {
    div.col-lg-10.offset-lg-1.md-blog-body { margin-left: 0; }
}

/* --- 7. SHARING RAIL --- */
.md-blog-share-rail {
    margin-left: 1rem !important;
    position: sticky !important;
    top: 7.5rem !important;
    height: fit-content;
    z-index: 10;
}

.sharebtn__twitter, .sharebtn__linkedin, .sharebtn__whatsapp, .sharebtn__email, .sharebtn__copy {
    background-color: #376B8E !important;
}

/* --- 8. RESPONSIVE: TABLET & MOBILE --- */
@media (min-width: 48rem) and (max-width: 61.99rem) {
    .md-blog-content-layout { gap: 1.875rem !important; }
    .md-blog-content-main { max-width: calc(100% - 6.25rem) !important; }
    .md-blog-share-rail .sharebtn__container {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 47.93rem) {

    .md-blog-content-layout { flex-direction: column !important; }
    .md-blog-content-main { width: 100% !important; max-width: 100% !important; }

    /* Halved Heading Margins for Mobile */
    .md-blog-body h2, .md-blog-body h3 {
        margin-bottom: 0.625rem !important;
        margin-top: 2rem !important;
    }

    .md-blog-share-rail {
        position: static !important;
        order: 2;
        margin: 2.5rem 0 0 0 !important;
        width: 100% !important;
    }

    .md-blog-share-rail .sharebtn__container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .md-blog-body table td, .md-blog-body table th {
        padding: 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .md-blog-hero .carousel-item { min-height: 25rem !important; }

	/* Unclip Table Scroll for Mobile (Negative Margin) */
.md-blog-body figure.table {
    margin-left: -1rem !important; 
    margin-right: -1rem !important;
    width: calc(100% + 2rem) !important;
    padding-left: 1rem;
    padding-right: 1rem;
    display: block;
    overflow-x: auto;
}
}

/* Resetting the 1024px Theme Overrides */
@media screen and (max-width: 64rem) {
    .md-blog-panel-overlay span.md-blog-panel-date {
        font-size: 0.875rem !important; /* Keep it small like the other dates */
        margin-left: 0 !important;      /* Remove that 20px gap */
        padding-top: 0 !important;     /* Remove the 20px top padding */
        line-height: 1;
    }

    .md-blog-panel-intro {
        margin-left: 0 !important;
        font-size: 1.125rem; /* Slightly smaller for tablet/mobile */
    }

    /* Ensure the content container doesn't have extra padding shifting the text */
    .md-overlay-content {
        left: 1.5rem; 
        right: 1.5rem;
    }
}

/* Mobile specific (below 767px) */
@media (max-width: 47.93rem) {
    .md-overlay-content {
        left: 1rem;
        right: 1rem;
        padding-bottom: 1.25rem;
    }
    
    .md-blog-panel-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* --- 9. NAVBAR & LOGO --- */
@media (max-width: 61.99rem) {
    .navbar { padding: 0.75rem 0 !important; }
    .navbar-brand img { max-height: 2.25rem !important; }
}

.carousel-caption.md-align-left .d-inline.align-start {
    display: inline-block !important; /* Ensure margin-top works on an inline element */
    margin-top: 1rem !important;
}

.test-123 {
padding:0;
}