/* 1. Main Section - Added position: relative to anchor the buttons */
.service-selection-section {
    padding: 30px 30px;
    background-color: #7A0000;
    position: relative; /* IMPORTANT: This makes the buttons stick to this red box */
}

.service-selection-container {
    width: 100%;
}

.service-selection-container.swiper {
    width: 80%;
    padding: 0px 0;
    overflow: hidden; /* Prevent overflow cut-off */
}

.service-selection-wrapper {
    width: 100%; /* allow full width */
    padding: 10px 0px;
    margin: 0; /* no side margins */
    overflow: visible; /* let Swiper handle overflow */
}

.service-item {
    width: 50%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
}

.service-item.swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-selection-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

/* Note: This selector might conflict if not careful, assuming standard size */
.service-item {
    width: calc(240px - (var(--index) * 20px));
}

.service-selection-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    padding: 0 80px;
}

.service-selection-header span {
    color: #F4B400;
}

.service-selection-header h2 {
    color: #fff;
}

.service-item {
    margin-top: 5px;
}

/* 🔥 Service Button Container */
.service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;           /* control button width here */
    height: 80px;           /* control button height here */
    background-color: grey;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 25px;
}

.service-button button.active {
    background-color: #F4B400; /* Highlight color */
    color: white;
}

.service-button:hover {
    background-color: #F4B400;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* subtle black shadow */
}

/* Inner button: text only, no box styles */
.service-button button {
    background: transparent;
    width: 220px;           /* control button width here */
    height: 80px;           /* control button height here */
    border: none;
    color: #fff;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    cursor: inherit; /* matches parent cursor */
}

/* Swiper pagination bullets */
.swiper-pagination-bullet {
    background-color:  #ffffff !important; /* default (inactive) */
    opacity: 1 !important; /* keep them solid, not transparent */
}

/* Active bullet */
.swiper-pagination-bullet-active {
    background-color: #F4B400 !important;
}

/* =========================================
   NAVIGATION BUTTONS (NEXT / PREV)
   ========================================= */

.service-selection-next {
    position: absolute !important;
    top: 60% !important;
    transform: translateY(-50%);
    right: 100px!important; /* Adjusted to match your previous preference */
    
    height: 40px !important;
    width: 40px !important;
    border-radius: 50%;
    color: #fff !important;
    z-index: 100;
    background: linear-gradient(to right,  #F4B400, #C48F00);
    
    /* Flexbox to center the arrow icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;

    /* HIDDEN BY DEFAULT */
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; /* Smooth fade in/out */
}

.service-selection-prev {
    position: absolute !important;
    top: 60% !important;
    transform: translateY(-50%);
    left: 100px !important; /* Adjusted to match your previous preference */

    height: 40px !important;
    width: 40px !important;
    border-radius: 50%;
    color: #fff !important;
    z-index: 100;
    background: linear-gradient(to left, #F4B400, #C48F00);

    /* Flexbox to center the arrow icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;

    /* HIDDEN BY DEFAULT */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease; /* Smooth fade in/out */
}

/* =========================================
   HOVER EFFECT (Show buttons when Section is hovered)
   ========================================= */

/* When the main SECTION is hovered, make the NEXT button visible */
.service-selection-section:hover .service-selection-next {
    opacity: 1;
    visibility: visible;
    right: 30px; /* Optional: Small animation moving it slightly in */
}

/* When the main SECTION is hovered, make the PREV button visible */
.service-selection-section:hover .service-selection-prev {
    opacity: 1;
    visibility: visible;
    left: 30px; /* Optional: Small animation moving it slightly in */
}


/* =========================================
   ARROW ICONS & INDIVIDUAL BUTTON HOVER
   ========================================= */

.service-selection-next::before,
.service-selection-next::after,
.service-selection-prev::before,
.service-selection-prev::after {
    font-size: 20px !important; 
    color: #fff;
    display: flex;
}

/* Hover Effects for the buttons themselves (Lift effect) */
.service-selection-next:hover,
.service-selection-prev:hover {
    transform: translateY(calc(-50% - 3px)); 
    box-shadow: 0 8px 15px rgba(241, 151, 99, 0.3);
    background: linear-gradient(to right, #ffcc33, #e6a800); /* Slightly brighter on hover */
}

/* =========================================
   RESPONSIVENESS
   ========================================= */

/* Hides the buttons on Tablets (up to 1024px) and Mobile phones */
@media (max-width: 1024px) {
    .service-selection-next,
    .service-selection-prev {
        display: none !important;
    }
}