/* ==========================================================================
   Services Grid & Slider - Premium Style
   ========================================================================== */

.editing-services-widget-container {
    display: flow-root !important;
    width: 100%;
    position: relative;
    z-index: 1;
    background: transparent;
    margin-bottom: 50px !important;
}

/* Header Section */
.editing-services-widget-container .services-header {
    text-align: center;
    margin-bottom: 40px !important;
}

.editing-services-widget-container .services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #09223e;
    margin-bottom: 10px;
}

.editing-services-widget-container .services-subheading {
    font-size: 1.1rem;
    font-weight: 500;
    color: #dfc15d;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.editing-services-widget-container .services-header p {
    font-size: 1.1rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Divider */
.editing-services-widget-container .services-divider {
    width: 80px;
    height: 2px;
    background-color: #dfc15d;
    margin: 0 auto 30px auto;
    border: none;
}

/* ==========================================================================
   Card Styling (Navy & Gold Theme)
   ========================================================================== */

.editing-services-widget-container .service-card {
    display: flex;
    flex-direction: column;
    background: #09223e; /* Navy Blue Card Background */
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%; /* For equal height in sliders/grids */
}

.editing-services-widget-container .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(9, 34, 62, 0.25);
}

/* Image Container */
.editing-services-widget-container .service-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* Aspect ratio 16:10 */
    height: 0;
    padding-bottom: 62.5%; 
    background-color: #051426;
}

.editing-services-widget-container .service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.editing-services-widget-container .service-card:hover .service-image-container img {
    transform: scale(1.06);
}

/* Card Content Area */
.editing-services-widget-container .service-content {
    display: flex;
    flex-direction: column;
    padding: 24px 10px 10px 10px;
    text-align: center;
    flex-grow: 1; /* Pushes content and button to fill space */
}

.editing-services-widget-container .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dfc15d; /* Premium Gold Title */
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.editing-services-widget-container .service-description {
    font-size: 0.95rem;
    color: #ffffff; /* White text for legibility */
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
    flex-grow: 1; /* Pushes button to bottom of equal height cards */
}

/* Card Button */
.editing-services-widget-container .service-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.editing-services-widget-container .service-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dfc15d; /* Gold Button Background */
    color: #09223e; /* Navy Text */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.editing-services-widget-container .service-btn:hover {
    background-color: #ffffff;
    color: #09223e;
    transform: translateY(-2px);
}

/* ==========================================================================
   Layout - Grid
   ========================================================================== */

.editing-services-widget-container .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* ==========================================================================
   Layout - Slider (Swiper)
   ========================================================================== */

.editing-services-widget-container.layout-slider {
    padding-left: 20px;
    padding-right: 20px;
}

.editing-services-widget-container .services-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Room for dots at bottom */
}

.editing-services-widget-container .services-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
}

/* Swiper Slide */
.editing-services-widget-container .swiper-slide {
    flex-shrink: 0;
    height: auto; /* Required for equal height cards */
}

/* Swiper Arrows */
.editing-services-widget-container .swiper-button-prev,
.editing-services-widget-container .swiper-button-next {
    color: #ffffff !important;
    background-color: rgba(9, 34, 62, 0.7);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: absolute !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: calc(50% - 30px) !important;
}

.editing-services-widget-container .swiper-button-prev {
    left: 10px !important;
}

.editing-services-widget-container .swiper-button-next {
    right: 10px !important;
}

.editing-services-widget-container .swiper-button-prev:hover,
.editing-services-widget-container .swiper-button-next:hover {
    background-color: #dfc15d;
    color: #09223e !important;
}

.editing-services-widget-container .swiper-button-prev::after {
    content: '\276E' !important;
    font-size: 16px !important;
    font-weight: 700;
}
.editing-services-widget-container .swiper-button-next::after {
    content: '\276F' !important;
    font-size: 16px !important;
    font-weight: 700;
}

/* Swiper Dots */
.editing-services-widget-container .swiper-pagination-bullets {
    bottom: 15px !important;
}

.editing-services-widget-container .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: #cccccc !important;
    opacity: 0.5 !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.editing-services-widget-container .swiper-pagination-bullet-active {
    background: #dfc15d !important;
    opacity: 1 !important;
    width: 12px !important;
    border-radius: 6px !important;
}

/* ==========================================================================
   Footer Button
   ========================================================================== */

.editing-services-widget-container .services-footer-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.editing-services-widget-container .services-footer-btn {
    display: inline-block;
    padding: 14px 45px;
    background-color: #dfc15d; /* Gold Background */
    color: #09223e; /* Navy Text */
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(223, 193, 93, 0.15);
    transition: all 0.3s ease;
}

.editing-services-widget-container .services-footer-btn:hover {
    background-color: #09223e;
    color: #dfc15d;
    border: 1px solid #dfc15d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 34, 62, 0.25);
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .editing-services-widget-container .services-header h2 {
        font-size: 2.1rem;
    }
}

@media (max-width: 767px) {
    .editing-services-widget-container {
        margin-bottom: 30px !important;
    }
    
    .editing-services-widget-container .services-header {
        margin-bottom: 25px !important;
        padding: 0 15px;
    }

    .editing-services-widget-container .services-header h2 {
        font-size: 1.8rem;
    }

    .editing-services-widget-container .service-card {
        padding: 20px;
        border-radius: 15px;
    }

    .editing-services-widget-container .service-title {
        font-size: 1.3rem;
    }

    .editing-services-widget-container .service-description {
        font-size: 0.9rem;
    }
    
    /* Make arrows slightly smaller on mobile */
    .editing-services-widget-container .swiper-button-prev,
    .editing-services-widget-container .swiper-button-next {
        width: 36px !important;
        height: 36px !important;
    }
    
    .editing-services-widget-container .swiper-button-prev::after,
    .editing-services-widget-container .swiper-button-next::after {
        font-size: 14px !important;
    }
}


