/* Services Marquee Section */
.services-marquee-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #F5F5F7;
    width: 100%;
}

/* Section Header */
.services-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 2rem;
    position: relative;
    /* Responsive Header Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .services-header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .marquee-controls {
        margin-left: auto;
        /* Push to right */
    }
}

.marquee-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .marquee-controls {
        margin-top: 0;
        margin-bottom: 8px;
    }
}


.services-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    padding-left: 0;
}

.services-eyebrow::before {
    content: none;
}

.services-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--btn-color);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--btn-color) 0%, #e5920d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}


.marquee-row {
    position: relative;
    display: flex;
    overflow: visible;
    margin-bottom: 24px;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 24px;
    padding-right: 24px;
    width: max-content;
    will-change: transform;
}

/* Base Card Styling (Homepage Pill Style) */
.service-card {
    position: relative;
    display: flex;
    /* Flex layout for icon + text + arrow */
    align-items: center;
    justify-content: flex-start;
    padding: 16px 24px 16px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(254, 214, 0, 0.07) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--btn-color);
    border-radius: 60px;
    /* Pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-left-width 0.2s ease;
    cursor: pointer;
    user-select: none;
    min-width: 300px;
    /* Original width */
    height: auto;
    transform-origin: center center;
    text-decoration: none;
    /* For <a> tag */
    color: inherit;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 214, 0, 0.12) 100%);
    border-left-width: 6px;
    z-index: 10;
}

/* Icon Styling (Base) */
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* Circle */
    margin-right: 20px;
    background-image: url('../images/services-sprite.webp');
    background-size: 400% 400%;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Text Styling (Base) */
.service-text,
.service-title-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Details Button (Homepage Cards) */
.service-details-btn {
    margin-left: auto;
    padding-left: 15px;
    flex-shrink: 0;
    display: inline-block;
    background: var(--btn-hover);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 6px 16px;
    border-radius: 50px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229, 146, 13, 0.35);
    margin-left: 16px;
}

.service-card:hover .service-details-btn {
    background: var(--btn-color);
    transform: translateX(2px) scale(1.06);
    box-shadow: 0 4px 14px rgba(254, 214, 0, 0.4);
}

/* Hide detailed elements by default */
.service-desc,
.service-btn {
    display: none;
}

/* --------------------------------------------------------- */
/* DETAILED CARD STYLING (For Services Page Only)            */
/* --------------------------------------------------------- */

.service-card.detailed-card {
    flex-direction: column;
    /* Vertical Layout */
    align-items: flex-start;
    justify-content: space-between;
    padding: 30px;
    border-radius: 24px;
    /* More rounded rect */
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-width: 380px;
    max-width: 380px;
    min-height: 280px;
    /* Matches new requirement */
    white-space: normal;
    /* Allow text wrapping */
}

.service-card.detailed-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(252, 163, 17, 0.3);
}

.service-card.detailed-card .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    /* Soft square */
    margin-bottom: 20px;
    margin-right: 0;
}

.service-card.detailed-card .service-title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.service-card.detailed-card .service-desc {
    display: -webkit-box;
    /* Show description */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card.detailed-card .service-btn {
    display: inline-block;
    /* Show button */
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-card.detailed-card .service-btn:hover {
    background: var(--btn-color);
    border-color: var(--btn-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.3);
}

/* --------------------------------------------------------- */
/* BUTTON STYLES (Global / Footer)                           */
/* --------------------------------------------------------- */

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: var(--btn-color);
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary-large:hover {
    background: #e5920d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 163, 17, 0.4);
    color: #fff;
}


/* --------------------------------------------------------- */
/* ICON MAPPINGS                                             */
/* --------------------------------------------------------- */

/* Row 1 */
.icon-visa {
    background-position: 0% 0%;
}

.icon-ticket {
    background-position: 33.33% 0%;
}

.icon-hotel {
    background-position: 66.66% 0%;
}

.icon-passport {
    background-position: 100% 0%;
}

/* Row 2 */
.icon-residency {
    background-position: 0% 33.33%;
}

.icon-company {
    background-position: 33.33% 33.33%;
}

.icon-car {
    background-position: 66.66% 33.33%;
}

.icon-medical {
    background-position: 100% 33.33%;
}

/* Row 3 */
.icon-jet {
    background-position: 0% 66.66%;
}

.icon-conference {
    background-position: 33.33% 66.66%;
}

.icon-ambulance {
    background-position: 66.66% 66.66%;
}

.icon-security {
    background-position: 100% 66.66%;
}

/* Row 4 */
.icon-vip {
    background-position: 0% 100%;
}

.icon-camp {
    background-position: 33.33% 100%;
}

.icon-insurance {
    background-position: 66.66% 100%;
}

.icon-group {
    background-position: 100% 100%;
}

/* --------------------------------------------------------- */
/* STATIC LAYOUT (Services Page — no animation)              */
/* --------------------------------------------------------- */

.services-static .marquee-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: 0 2rem;
    margin-bottom: 24px;
    white-space: normal;
}

.services-static .marquee-content {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0;
    gap: 24px;
}

.services-static .service-card.detailed-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 280px;
    max-width: 380px;
}

@media (max-width: 1200px) {
    .services-static .service-card.detailed-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .services-static .marquee-row {
        padding: 0 1rem;
    }

    .services-static .service-card.detailed-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: unset;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .marquee-row {
        margin-bottom: 20px;
    }

    /* Base Card Responsive */
    .service-card {
        padding: 12px 24px 12px 12px;
        min-width: 240px;
    }

    /* Detailed Card Responsive */
    .service-card.detailed-card {
        padding: 24px;
        min-width: 300px;
        max-width: 300px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
    }

    .service-card.detailed-card .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-text,
    .service-title-text {
        font-size: 15px;
    }

    .service-card.detailed-card .service-title-text {
        font-size: 1.25rem;
    }
}