/* --- Styles for Single Service Page (single-thememodele_service.php) --- */

.service-single-page .entry-header {
    text-align: center;
    margin-bottom: 2em;
}

.service-single-page .entry-title {
    color: var(--site-color-text);
}
.service-single-page .section-title {
    text-align: center;
    /* margin-top: 1.5em;  */
    margin-bottom: 1em;
}

/* Limit width for service pages container */
/* .service-single-page .container {
    max-width: 1000px;
} */

.service-single-page article.page {
    max-width: 800px;
    margin: 0 auto;
}

.service-single-page .entry-content {
    max-width: 800px; /* For better readability */
    margin-left: auto;
    margin-right: auto;
    color: var(--site-color-text);
    line-height: 1.8;
    margin-top: 2em;
}

.service-single-page .entry-footer {
    text-align: center;
    margin-top: 2em;
}

/* Style for the "Contactez-moi" button on the service pages */
.contact-me-button-wrapper {
    text-align: center; 
    margin-top: 2em;
    margin-bottom: 2em; 
}

/* Styles for the edit links */
.edit-link-service,
.edit-link-tab-wrapper {
    display: block; /* Make them block level */
    text-align: center;
     color: var(--site-color-text);
     /* text-decoration: underline; */
     transition: color 0.3s ease;
}

.edit-link-tab a:hover {
     color: var(--site-color-text); /* Change color on hover */
    font-size: 0.9em;
}


.edit-link-tab a {
    color: var(--site-color-text);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.edit-link-tab-wrapper {
    margin-top: 2em; /* Add more space below the content of each tab/section */
    margin-bottom: 1em; /* Space before the next section */
}

/* Ensure the edit link for the main service title is well-placed */
.service-single-page .entry-header .edit-link-service {
    margin-top: 0.5em;
    margin-bottom: 0;
}

/* Adjust edit link for tabs to be right-aligned within their content */
.tab-pane .edit-link-tab-wrapper, .service-single-page .entry-content .edit-link-tab-wrapper { /* This rule targets edit links inside tab panes and general service content */
    text-align: center; /* Align edit link to the right within the tab content */
    margin-top: 1em;
    margin-bottom: 0;
}

/* Styles for partner logos in the dedicated partners section */
.partners-section .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 20px; 
    justify-items: center;
    align-items: center; 
    margin-top: 2em;
    margin-bottom: 2em;
}

.partners-section .partner-item {
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 10px; 
    /* border: 1px solid #eee; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.partners-section .partner-item img {
    max-width: 150px; 
    max-height: 100px; 
    width: auto; 
    height: auto;
    object-fit: contain; 
    display: block; 
    margin-top: 0.5em; 
    margin-bottom: 0.5em;
}

/* --- List Styling for ALL Service Pages --- */
.service-single-page .entry-content ul,
.service-single-page .entry-content ul.wp-block-list {
    margin-left: 2em;
    margin-bottom: 1.5em;
    line-height: 1.7;
    list-style: none; /* Remove default bullets for UL only */
    counter-reset: list-item;
    padding-left: 0;
}

.service-single-page .entry-content ol,
.service-single-page .entry-content ol.wp-block-list {
    margin-left: 2em;
    margin-bottom: 1.5em;
    line-height: 1.7;
    list-style: decimal; /* Keep numbers for ordered lists */
    padding-left: 2.2em; /* Ensure numbers are not cut off */
}

.service-single-page .entry-content li {
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 1em;
}

/* ----- Rules for service thumbnail ----- */
.service-single-page .post-thumbnail {
    max-width: 700px;    /* Limit the width of the image container (reduced for service details) */
    width: 100%;
    margin: 1.5em auto;  /* Center and add vertical spacing */
}

.service-single-page .post-thumbnail img {
    display: block;
    width: 100%;         /* The image takes the width of the container (responsive) */
    height: auto;        /* Preserve ratio */
    max-height: 300px;   /* Reduce max height to avoid overly large images */
    object-fit: cover;   /* Slightly crop if needed to maintain a clean layout */
    border-radius: var(--site-image-border-radius);
}

/* If featured image is portrait, avoid cropping faces */
.service-single-page .post-thumbnail.is-portrait img {
    object-fit: contain;
    height: auto; /* keep natural height within max-height constraints */
}
.service-single-page .post-thumbnail.is-landscape img {
    object-fit: cover;
}

/* Note: do not force block gallery display — we want Gutenberg native behavior. */

/* Adjustments for small screens */
@media (max-width: 600px) {
    .service-single-page .post-thumbnail {
        max-width: 100%;
        margin: 1em auto;
    }
    .service-single-page .post-thumbnail img {
        max-height: none;
        object-fit: contain;
    }
}

.service-single-page .entry-content .wp-block-gallery {
    margin-top: 2.5em;
}




