.mcs-loadmore-wrap{
    text-align:center;
    margin-top:40px;
}

.mcs-loadmore-btn{
    background-color:#FAA61B;
    font-family:"Poppins", Sans-serif;
    font-size:14px;
    font-weight:500;
    color:#000;
    border:1px solid #FAA61B;
    padding:14px 20px;
    cursor:pointer;
    border-radius:23px !important;
}

.mcs-loadmore-btn:hover,
.mcs-loadmore-btn:active,
.mcs-loadmore-btn:focus,
.mcs-loadmore-btn:focus-visible{
    background-color:#FAA61B;
    font-family:"Poppins", Sans-serif;
    font-size:14px;
    font-weight:500;
    color:#fff;
    border:1px solid #FAA61B;
    padding:14px 20px;
    cursor:pointer;
    border-radius:23px !important;
}
/* =========================================================
   FIX: EQUAL HEIGHT CARDS + READ MORE AT BOTTOM
   ========================================================= */

/* Grid should stretch children */
.mcs-wrapper {
    align-items: stretch;
}

/* Each card fills full grid height */
.mcs-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make clickable card a vertical container */
.mcs-card-link {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Keep top section natural height */
.mcs-card-top--above,
.mcs-thumb--below {
    flex-shrink: 0;
}

/* Body expands */
.mcs-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Text grows if needed */
.mcs-excerpt {
    flex-grow: 1;
}

/* Button pinned bottom */
.mcs-link {
    margin-top: auto;
    padding-top: 12px;
}

/* Remove conflicting old rule */
.mcs-item a {
    display: unset;
}



/* ===== GRID WRAPPER ===== */
.mcs-wrapper {
    display: grid;
    gap: 40px;
}

.mcs-grid.cols-4 { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
.mcs-grid.cols-3 { grid-template-columns: repeat(3, minmax(320px, 1fr)); }
.mcs-grid.cols-2 { grid-template-columns: repeat(2, minmax(350px, 1fr)); }
.mcs-grid.cols-1,
.mcs-list { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
    .mcs-grid.cols-4,
    .mcs-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mcs-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
}
/* ===== SECTION STRUCTURE ===== */
.mcs-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.mcs-section {
    margin-bottom: 80px;
}

.mcs-section:first-child {
    margin-top: 0;
}

.mcs-section-header {
    margin-bottom: 50px;
}

.mcs-section-title {
  font-size: 24px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  margin: 0;                     /* remove auto centering */
  position: relative;
  color: #000000;

  background: url("https://technokeens.in/AM-PB/wp-content/uploads/2025/12/Group-5-4.png") center no-repeat;
  background-size: contain;

  padding: 14px 48px;
  width: fit-content;
  text-align: left;             /* left text alignment */
}



/*.mcs-title-bar {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    width: 5px;*/
/*    height: 35px;*/
/*    background: linear-gradient(180deg, #ff9b32, #ff8c1a);*/
/*    border-radius: 3px;*/
/*}*/

/* ===== CARD ===== */
.mcs-item {
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 600px; /* Ensure card takes full height of grid cell */
    display: flex;
    flex-direction: column;
}

.mcs-item:hover {
    transform: translateY(-10px);
}

.mcs-item a {
    color: inherit;
    text-decoration: none !important;
    display: block;
}



/* ===== TOP BAR: LOGO + PILL (above image) ===== */
.mcs-card-top--above {
    position: relative;
    padding: 16px 0px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
}

/*.mcs-logo-wrap {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.mcs-logo {*/
/*    max-height: 25px;*/
/*    width: auto;*/
/*    border-radius: 6px;*/
/*}*/

/*.mcs-logo-placeholder {*/
/*    font-size: 11px;*/
/*    font-weight: 700;*/
/*    color: #888;*/
/*}*/

.mcs-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    text-decoration: none;
    color: #000000;
    font-size: 11px;
    font-weight: 600;
    font-family: Poppins;
    white-space: nowrap;
    background-color:#E5E5E5;
    border-radius:50px !important;
    corner-shape: squircle !important; 
}

/* ===== HERO IMAGE (below logo bar) ===== */
.mcs-thumb--below {
    position: relative;
    overflow: hidden;
}

.mcs-thumb--below img {
    width: 100%;
    height: 220px !important;
    padding: 0px 0px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius:50px !important;
    corner-shape: squircle !important; 
}

/*.mcs-item:hover .mcs-thumb--below img {*/
/*    transform: scale(1.05);*/
/*}*/

/* ===== BODY ===== */
.mcs-body {
    padding: 24px 0px 28px;
    position: relative;
    z-index: 2;
    flex: 1; /* Take available space */
    display: flex;
    flex-direction: column;
}

.mcs-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.mcs-date {
    color: #6B6B6B;
    text-decoration: none;
    font-family: Poppins;
}

.mcs-readtime {
    color: #6B6B6B;
    text-decoration: none;
    font-family: Poppins;
}

.mcs-title {
    font-family: Poppins;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    text-decoration: none;
    color:#121212;
    /* Ensure consistent title height - max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px; /* 2 lines * line-height */
}

.mcs-excerpt {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.88;
    margin: 0 0 16px;
    text-decoration: none;
    color:#6B6B6B;
    font-family: Poppins;
    /* Ensure consistent excerpt height - max 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1; /* Take remaining space but don't push beyond */
}

/* ===== READ MORE BUTTON - UPDATED TO STAY AT BOTTOM ===== */
.mcs-link {
    font-family: Poppins;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #FAA61B;
    padding: 8px 0;
    text-decoration: none;
    margin-top: auto; /* Push to bottom of flex container */
    
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.mcs-link:hover {
    color: #e09100;
    padding-left: 5px; /* Slight animation on hover */
}

/* Hide any old text-based logo from theme if present */
.mcs-logo-text { 
    display: none !important; 
}


/* ===== TABS FILTER ===== */
.mcs-tabs-wrapper {
    margin-bottom: 80px;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
}

.mcs-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mcs-tab-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5 !important;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 30px;
    corner-shape: squircle !important; 
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: capitalize;
}

.mcs-tab-btn:hover {
    background: #f5f5f5 !important;
    border: 1px solid #ddd;
    color: #000;
}

.mcs-tab-active {
    background: #FAA61B !important;
    color: #000000;
    border-color: #FAA61B;
}

.mcs-tab-active:hover {
        background: #FAA61B !important;
    color: #000000;
    border-color: #FAA61B;
}

/* ===== ITEM ANIMATION ===== */
.mcs-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mcs-item-show {
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

.mcs-item-hidden {
    opacity: 0;
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ===== SHOW MORE BUTTON ===== */
.mcs-show-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.mcs-show-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #ff9b32, #ff8c1a);
    color: #111111;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 155, 50, 0.3);
}

.mcs-show-more-btn:hover {
    background: linear-gradient(135deg, #ff8c1a, #ff7d00);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 155, 50, 0.4);
}

.mcs-show-more-btn:active {
    transform: translateY(0);
}

/* ===== SINGLE CASE STUDY PAGE ===== */
/* ===== HERO BANNER WITH OVERLAY ===== */
/* ===== HERO BANNER WITH OVERLAY (FULL WIDTH & HEIGHT) ===== */

.mcs-single-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.mcs-single-hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 700px;
    overflow: hidden;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mcs-single-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay gradient */
.mcs-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

/* Content overlay positioning - OVERLAYS THE IMAGE */
.mcs-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 80px 8vw 80px;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 100%;
}

/* Logo */
.mcs-banner-logo {
    margin-bottom: 30px;
    align-self: flex-start;
}

.mcs-banner-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.mcs-banner-logo-placeholder {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 24px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.mcs-banner-pill-wrap {
    min-width:510px;
  max-width: 580px;                 /* ✅ Fixed width */
 height: auto;
  background-image: url("https://technokeens.in/AM-PB/wp-content/uploads/2025/12/Group-5-4.png");
  margin: 0;
  padding: 0px 27px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-style: none;
  text-align: start;
  display: inline-block;
  text-align: center;          /* ✅ Center text */

  display: flex;               /* ✅ Center content */
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */

}

.mcs-banner-pill {
  display: inline-block;
     font-size: 28px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  margin: 0;                     /* remove auto centering */
  position: relative;
  color: #ffffff;

  padding: 14px 14px;
  width: fit-content;
  text-align: left;  
}

/* Title */
.mcs-banner-title {
    font-size: 64px;
    font-family: Poppins;
    font-weight: 400;
    margin: 0 0 35px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    max-width: 90%;
}

/* Meta info */
.mcs-banner-meta {
    display: flex;
    gap: 50px;
    font-size: 16px;
}

.mcs-banner-date {
    color: #e0e0e0;
    font-weight: 500;
}

.mcs-banner-readtime {
    color: #ff9b32;
    font-weight: 600;
}

/* ===== METRICS ROW (BELOW BANNER) ===== */
.mcs-single-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 45px;
    padding: 50px 80px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
margin: 0 calc(-50vw + 50%);
    width: 100vw;

}

.mcs-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;        /* center horizontally */
    justify-content: center;    /* center vertically */
    text-align: center;

    position: relative;
    padding: 12px 24px;         /* adjusted padding */

    background: url(https://technokeens.in/AM-PB/wp-content/uploads/2026/01/image-4.png)
                no-repeat center center;
    background-size: cover;   /* or cover if needed */
}


/*.mcs-metric-item::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    width: 5px;*/
/*    height: 60px;*/
/*    background: linear-gradient(180deg, #ff9b32, #ff8c1a);*/
/*    border-radius: 3px;*/
/*    box-shadow: 0 4px 12px rgba(255, 155, 50, 0.3);*/
/*}*/

.mcs-metric-value {
    font-size: 28px;
    font-weight: 500;
    color: #313131;
    margin-bottom: 10px;
    line-height: 1;
    font-family: Poppins;
}

.mcs-metric-label {
    font-size: 14px;
    color: #828282;
    font-weight: 400;
    text-transform: capitalize;
    font-family: Poppins;
}

/* ===== MAIN CONTENT SECTION ===== */
.mcs-single-content {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 80px 60px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mcs-single-content p {
    margin-bottom: 24px;
}

.mcs-single-content h2,
.mcs-single-content h3 {
    margin: 40px 0 20px;
    font-weight: 700;
    color: #111111;
}

.mcs-single-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mcs-single-hero-banner {
        height: 550px;
    }

    .mcs-banner-title {
        font-size: 48px;
    }

    .mcs-banner-logo-img {
        max-height: 60px;
    }

    .mcs-single-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 40px 6vw;
    }

    .mcs-metric-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .mcs-single-hero-banner {
        height: 450px;
        margin-bottom: 0;
    }

    .mcs-banner-content {
        padding: 60px 6vw 50px;
    }

    .mcs-banner-title {
        font-size: 36px;
        margin-bottom: 25px;
        max-width: 95%;
    }

    .mcs-banner-meta {
        gap: 30px;
        font-size: 14px;
    }

    .mcs-banner-logo {
        margin-bottom: 20px;
    }

    .mcs-banner-pill {
        margin-bottom: 20px;
        font-size: 13px;
        padding: 10px 20px;
    }

    .mcs-banner-logo-img {
        max-height: 50px;
    }

    .mcs-single-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 35px 6vw;
        margin-bottom: 40px;
    }

    .mcs-metric-item::before {
        height: 50px;
    }

    .mcs-metric-value {
        font-size: 24px;
    }

    .mcs-metric-label {
        font-size: 12px;
    }

    .mcs-single-content {
        padding: 0 6vw 40px;
    }
}

@media (max-width: 480px) {
    .mcs-single-hero-banner {
        height: 350px;
        margin-bottom: 0;
    }

    .mcs-banner-content {
        padding: 50px 5vw 40px;
    }

    .mcs-banner-title {
        font-size: 26px;
        margin-bottom: 15px;
        max-width: 100%;
    }

    .mcs-banner-pill {
        font-size: 11px;
        padding: 8px 16px;
        margin-bottom: 15px;
    }

    .mcs-banner-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .mcs-banner-logo {
        margin-bottom: 15px;
    }

    .mcs-banner-logo-img {
        max-height: 40px;
    }

    .mcs-banner-logo-placeholder {
        font-size: 14px;
        padding: 10px 16px;
    }

    .mcs-single-metrics {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 5vw;
        margin-bottom: 30px;
    }

    .mcs-metric-item::before {
        height: 45px;
    }

    .mcs-metric-value {
        font-size: 20px;
    }

    .mcs-metric-label {
        font-size: 11px;
    }

    .mcs-single-content {
        padding: 0 5vw 30px;
        font-size: 15px;
    }
}





/* ===== META INFO (BETWEEN BANNER & METRICS) ===== */
.mcs-banner-meta-separate {
    display: flex;
    flex-direction: column;   /* ⬅ stack items vertically */
    gap: 20px;                /* space between items */
    font-size: 16px;
    margin: 40px auto 0px;
    padding: 0 80px;
}

.mcs-banner-meta-separate .mcs-banner-date {
    color: #333333;
    font-weight: 500;
}

.mcs-banner-meta-separate .mcs-banner-readtime {
    color: #ff9b32;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mcs-banner-meta-separate {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
        margin: 30px auto;
    }
}

/* ===== RELATED CASE STUDIES SECTION ===== */
.mcs-related-section {
    margin: 80px auto;
    padding: 0 80px;
}

.mcs-related-title {
     font-size: 24px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  margin: 0;                     /* remove auto centering */
  position: relative;
  color: #000000;

  background: url("https://technokeens.in/AM-PB/wp-content/uploads/2025/12/Group-5-4.png") center no-repeat;
  background-size: contain;

  padding: 14px 48px;
  width: fit-content;
  text-align: left;  
}



.mcs-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mcs-related-item {
    background: #111111;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.mcs-related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.mcs-related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Header: Logo + Pill */
.mcs-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 10px;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mcs-related-logo {
    display: flex;
    align-items: center;
}

.mcs-related-logo-img {
    max-height: 35px;
    width: auto;
    border-radius: 4px;
}

.mcs-related-logo-placeholder {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    color: #888;
}

.mcs-related-pill {
    display: inline-block;
    padding: 5px 12px;
    background: #ff9b32;
    color: #111111;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* Thumbnail */
.mcs-related-thumb {
    height: 180px;
    overflow: hidden;
    background: #222;
}

.mcs-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mcs-related-item:hover .mcs-related-thumb img {
    transform: scale(1.08);
}

/* Body */
.mcs-related-body {
    padding: 18px 20px 20px;
}

.mcs-related-item-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #ffffff;
}

.mcs-related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

.mcs-related-date {
    color: #ccc;
}

.mcs-related-readtime {
    color: #ff9b32;
    font-weight: 600;
}



/* =========================================================
   RESPONSIVE FIXES
========================================================= */

@media (max-width: 1024px) {
    .mcs-banner-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {

    .mcs-single-hero-banner {
        height: 60vh;
    }

    .mcs-banner-content {
        padding: 40px 6vw;
    }

    .mcs-banner-title {
        font-size: 34px;
    }

    .mcs-banner-pill-wrap {
        max-width: 100%;
        width: 100%;
        padding: 0 16px;
    }

    .mcs-banner-pill {
        font-size: 16px;
        text-align: center;
    }

    .mcs-single-metrics {
        grid-template-columns: repeat(2, 1fr);
        padding: 35px 6vw;
    }

    .mcs-body {
        padding: 18px 0 22px;
    }

    .mcs-title {
        font-size: 16px;
    }

    .mcs-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .mcs-single-hero-banner {
        height: 55vh;
    }

    .mcs-banner-title {
        font-size: 26px;
    }

    .mcs-single-metrics {
        grid-template-columns: 1fr;
        padding: 30px 5vw;
    }

    .mcs-wrapper {
        gap: 20px;
    }
}

