/* =============================================
   Custom Overrides — Partner Logos Grayscale
   ============================================= */

/* HomePage partners (owl-carousel) */
.partners-media img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.partners-media:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* About page partners (grid layout) */
.br-col-b1 {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.br-col-b1 img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    max-height: 120px;
    object-fit: contain;
}

.br-col-b1:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partners Load More — wrapper with peek & gradient */
.partners-wrapper {
    position: relative;
    max-height: 530px;
    overflow: hidden;
    transition: max-height 1.2s ease-in-out;
}

.partners-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.partners-wrapper.expanded {
    max-height: 5000px;
}


/* =============================================
   Portfolio Details — Behance Style
   ============================================= */

/* Hero Section */
.portfolio-hero {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.portfolio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.portfolio-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.portfolio-meta-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.portfolio-meta-item i {
    margin-right: 8px;
    opacity: 0.7;
}

/* Description */
.portfolio-description {
    padding: 60px 0 40px;
    background: #fff;
}

.portfolio-desc-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* Image Showcase */
.portfolio-showcase {
    padding: 0 0 40px;
    background: #f8f8f8;
}

.portfolio-image-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-image-item img {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Back Button */
.portfolio-back {
    padding: 40px 0 60px;
    background: #f8f8f8;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .portfolio-hero {
        height: 50vh;
        min-height: 350px;
    }

    .portfolio-hero-content h1 {
        font-size: 34px;
    }

    .portfolio-desc-content p {
        font-size: 16px;
    }
}

@media screen and (max-width: 575px) {
    .portfolio-hero {
        height: 40vh;
        min-height: 280px;
    }

    .portfolio-hero-overlay {
        padding-bottom: 30px;
    }

    .portfolio-hero-content h1 {
        font-size: 26px;
    }

    .portfolio-meta {
        gap: 15px;
    }

    .portfolio-meta-item {
        font-size: 13px;
    }

    .portfolio-description {
        padding: 40px 0 20px;
    }

    .portfolio-image-item {
        border-radius: 4px;
        margin-bottom: 15px;
    }
}