/* =============================================
   SERVICE PAGE STYLES — service.css
   Shared styles (header, nav, footer) are in shared.css
   ============================================= */

body {
    background: url('logo/s1.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Page Content */
.container {
    max-width: 1100px;
    margin: 100px auto 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.container h2 {
    margin-bottom: 25px;
    color: #0056b3;
    text-align: center;
    font-weight: 600;
    font-size: 2em;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

/* Service & Partner Lists */
.service-list,
.brands-list {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    padding-left: 0;
    list-style-type: none;
    gap: 20px;
}

.service-list li,
.brands-list li {
    flex: 1 1 calc(33.333% - 20px);
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #333;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-list li:hover,
.brands-list li:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.service-list li strong,
.brands-list li strong {
    font-weight: 600;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #004085;
}

.title-icon {
    width: 200px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.service-desc,
.partner-desc {
    font-size: 1em;
    line-height: 1.5;
    color: #555;
    margin-top: 10px;
}

/* ─── Seamless Infinite Ticker ──────────────────
   The wrapper clips overflow. The track is moved
   by JS (requestAnimationFrame), not CSS animation,
   so there is never a visible restart/jump.
   ─────────────────────────────────────────────── */
.ticker-wrapper {
    overflow: hidden;
    position: relative;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 18px 0;
    margin: 20px 0 40px;
    /* Soft fade edges so logos appear to glide in/out */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

.ticker-track {
    display: flex;
    /* No transition — JS moves it directly via translateX */
    will-change: transform;
    white-space: nowrap;
}

.logo-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 14px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-width: 150px;
    margin: 0 10px;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-item:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.logo-item img {
    max-width: 110px;
    max-height: 55px;
    height: auto;
    object-fit: contain;
    display: block;
    /* Subtle greyscale that lifts on hover */
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* =============================================
   SERVICE PAGE MEDIA QUERIES
   ============================================= */

@media (max-width: 768px) {
    .container {
        margin: 90px auto 30px;
        padding: 20px;
    }

    .service-list li,
    .brands-list li {
        flex: 1 1 100%;
        padding: 20px;
    }

    .title-icon { width: 150px; height: 75px; }
    .container h2 { font-size: 1.8em; }

    .logo-item {
        min-width: 120px;
        padding: 10px 14px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 90px auto 20px;
        padding: 15px;
    }

    .service-list li,
    .brands-list li {
        padding: 15px;
        margin-bottom: 20px;
    }

    .title-icon { width: 120px; height: 60px; }
    .container h2 { font-size: 1.5em; }
    .service-desc, .partner-desc { font-size: 0.95em; }

    .logo-item { min-width: 100px; padding: 8px 12px; }
    .logo-item img { max-height: 40px; }
}

@media (max-width: 360px) {
    .container { padding: 10px; }
    .container h2 { font-size: 1.3em; margin-bottom: 20px; }

    .service-list li,
    .brands-list li { padding: 12px; }

    .title-icon { width: 100px; height: 50px; }

    .service-list li strong,
    .brands-list li strong { font-size: 1.1em; }

    .service-desc, .partner-desc { font-size: 0.9em; }

    .logo-item { min-width: 80px; }
    .logo-item img { max-height: 32px; }
}