.ms-portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
}

.ms-portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 40px;
}

.ms-header-text {
    flex: 1;
}

.ms-breadcrumb {
    color: #e31e24;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.ms-header-text h1 {
    font-size: 48px;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1;
}

.ms-header-text h1 span {
    color: #e31e24;
    display: block;
}

.ms-header-description {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ms-icon-arrow {
    background: #e31e24;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ms-header-description p {
    color: #666;
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

/* Carousel Styles */
.ms-portfolio-carousel {
    flex: 2;
    position: relative;
    padding: 0 50px; /* Space for external arrows */
}

.ms-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.ms-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
}

.ms-highlight-item {
    flex: 0 0 calc(33.333% - 10px); /* 3 items per view */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 290px;
    height: 450px;
}

.ms-highlight-image, .ms-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-btn-saiba-mais {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e31e24;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    z-index: 5;
    transition: background 0.3s ease;
}

.ms-btn-saiba-mais:hover {
    background: #b3171b;
    color: white;
}

.ms-btn-saiba-mais i {
    font-size: 16px;
}

.ms-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.ms-carousel-controls button {
    background: #e31e24;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ms-carousel-controls button:hover:not(:disabled) {
    background: #b3171b;
    transform: scale(1.1);
}

.ms-carousel-controls button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Logos Grid */
.ms-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.ms-logo-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 180px;
    transition: transform 0.3s ease;
    overflow: hidden;
    margin: 0 auto;
}

.ms-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ms-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 992px) {
    .ms-portfolio-header {
        flex-direction: column;
    }
    .ms-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ms-highlight-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
