/* Services Page Specific Styles */
.services-page .services-hero {
    background: linear-gradient(135deg, #19166a 0%, #2d1b69 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-page .services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.services-page .hero-content {
    position: relative;
    z-index: 2;
}

.services-page .hero-title-services {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
}

.services-page .hero-subtitle-services {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f59e0b;
}

.services-page .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

/* Stacked Cards Container */
.services-page .stacked-cards-container {
    position: relative;
    padding: 100px 0;
    padding-bottom: 0;
    margin-bottom: -2rem;
    background: linear-gradient(180deg, #141253 0%, #19166a 100%);
}

.services-page .stacked-card {
    background: linear-gradient(135deg, #19166a 0%, #2d1b69 100%);
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(25, 22, 106, 0.3);
    position: sticky;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    color: white;
}

/* Different top positions for each card to create proper stacking */
.services-page .stacked-card[data-card="1"] {
    top: 120px;
    z-index: 1;
}

.services-page .stacked-card[data-card="2"] {
    top: 130px;
    z-index: 2;
}

.services-page .stacked-card[data-card="3"] {
    top: 135px;
    z-index: 3;
}

/* When cards are shrunk, adjust their top positions to show all numbers */
.services-page .stacked-card[data-card="1"].shrunk {
    top: 120px;
}

.services-page .stacked-card[data-card="2"].shrunk {
    top: 125px;
}

.services-page .stacked-card[data-card="3"].shrunk {
    top: 130px;
}

.services-page .stacked-card.shrinking {
    transform: scale(0.96);
}

.services-page .stacked-card.shrunk {
    transform: scale(0.92);
}

/* Ensure card number and title remain visible during shrinking */
.services-page .stacked-card.shrinking .card-number,
.services-page .stacked-card.shrunk .card-number {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(25, 22, 106, 0.3);
}

.services-page .stacked-card.shrinking .card-title,
.services-page .stacked-card.shrunk .card-title {
    transform: scale(1.03);
    font-weight: 800;
}

/* Make sure titles are always visible */
.services-page .stacked-card .card-title {
    position: relative;
    z-index: 10;
}

.services-page .card-number {
    display: flex;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #19166a, #2d1b69);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(25, 22, 106, 0.2);
}

.services-page .card-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-page .card-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.services-page .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.services-page .activity-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    backdrop-filter: blur(10px);
}

.services-page .activity-title {
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.services-page .activity-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.services-page .kpis-section {
    background: linear-gradient(135deg, #19166a, #2d1b69);
    padding: 30px;
    border-radius: 16px;
    color: white;
}

.services-page .kpis-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #f59e0b;
}

.services-page .kpis-list {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Service CTA Section */
.service-cta-section {
    background: linear-gradient(135deg, #2f2d67 0%, #2f2d67 100%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-primary,
.cta-button-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button-primary:hover,
.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    color: white;
}

/* Tablet view - disable stack card effect */
@media (max-width: 1024px) {
    .services-page .stacked-card {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 40px;
    }

    .services-page .stacked-card[data-card="1"],
    .services-page .stacked-card[data-card="2"],
    .services-page .stacked-card[data-card="3"] {
        top: auto !important;
    }

    .services-page .stacked-card.shrinking,
    .services-page .stacked-card.shrunk {
        transform: none !important;
    }

    .services-page .stacked-card.shrinking .card-number,
    .services-page .stacked-card.shrunk .card-number,
    .services-page .stacked-card.shrinking .card-title,
    .services-page .stacked-card.shrunk .card-title {
        transform: none !important;
    }
}

/* Mobile view - disable stack card effect */
@media (max-width: 768px) {
    .services-page .hero-title {
        font-size: 2.5rem;
    }

    .services-page .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-page .hero-description {
        font-size: 1rem;
    }

    .services-page .stacked-card {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        padding: 40px 30px;
        margin-bottom: 30px;
    }

    .services-page .stacked-card[data-card="1"],
    .services-page .stacked-card[data-card="2"],
    .services-page .stacked-card[data-card="3"] {
        top: auto !important;
    }

    .services-page .stacked-card.shrinking,
    .services-page .stacked-card.shrunk {
        transform: none !important;
    }

    .services-page .stacked-card.shrinking .card-number,
    .services-page .stacked-card.shrunk .card-number,
    .services-page .stacked-card.shrinking .card-title,
    .services-page .stacked-card.shrunk .card-title {
        transform: none !important;
    }

    .services-page .card-title {
        font-size: 2rem;
    }

    .services-page .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-title {
        font-size: 1.8rem !important;
    }

    .cta-subtitle {
        font-size: 1rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Marketplaces Section */
.marketplaces-section {
    background: #251969;
    padding: 80px 0;
}

.marketplaces-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.marketplace-slider {
    margin: 0 auto;
    max-width: 1200px;
}

.marketplace-item {
    padding: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.marketplace-item img {
    width: 180px;
    height: 120px;
    background: #fff;
    padding: 15px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.marketplace-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.marketplace-slider .slick-dots {
    bottom: -40px;
}

.marketplace-slider .slick-dots li button:before {
    color: #fff;
    opacity: 0.5;
}

.marketplace-slider .slick-dots li.slick-active button:before {
    color: #f59e0b;
    opacity: 1;
}

.marketplace-slider .slick-prev,
.marketplace-slider .slick-next {
    width: 40px;
    height: 40px;
    z-index: 10;
}

.marketplace-slider .slick-prev {
    left: -50px;
}

.marketplace-slider .slick-next {
    right: -50px;
}

.marketplace-slider .slick-prev:before,
.marketplace-slider .slick-next:before {
    font-size: 40px;
    color: #fff;
    opacity: 0.5;
}

.marketplace-slider .slick-prev:hover:before,
.marketplace-slider .slick-next:hover:before {
    opacity: 1;
}

@media (max-width: 768px) {
    .marketplace-slider .slick-prev {
        left: 0;
    }

    .marketplace-slider .slick-next {
        right: 0;
    }

    .marketplace-item img {
        max-width: 100px;
        max-height: 60px;
    }
}