/* --- Styles for Single Service Page (single-florence_service.php) --- */

.service-single-page .entry-header {
    text-align: center;
    /* margin-bottom: 2em; */
}

.service-single-page .entry-title {
    color: var(--color-brand-accent);
}

.service-single-page .entry-content {
    max-width: 950px; /* For better readability */
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    /* line-height: 1.8; */
}

.service-single-page .entry-footer {
    text-align: center;
    margin-top: 3em;
}

/* 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;
    margin-top: 1em;
    font-size: 0.9em;
}

.edit-link-service a,
.edit-link-tab a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.edit-link-service a:hover,
.edit-link-tab a:hover {
    color: var(--color-brand); /* Change color on hover */
}

.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 */
}

/* Adjust padding for the main content area on service pages to give more space around the edit links */
.service-single-page.page-consultations-content {
    padding-top: 1.75em;
    padding-bottom: 1.75em;
}

/* 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: 1.75em;
    margin-bottom: 1.75em;
}

.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 ol,
.service-single-page .entry-content ul.wp-block-list,
.service-single-page .entry-content ol.wp-block-list {
    margin-left: 2em;
    margin-bottom: 1.5em;
    line-height: 1.2;
    list-style: none !important; /* Remove default bullets */
    padding-left: 0;
}

.service-single-page .entry-content li {
    margin-bottom: 0.5em;
    position: relative;
    padding-left: 1em;
    /* font-size: 14px; */
}

.service-single-page .entry-content li::before {
    content: "\2022"; /* Unicode for a bullet point */
    color: var(--color-text-dark); /* Dark color for the bullet */
    font-weight: bold;
    font-size: larger;
    display: inline-block;
    width: 1em;
    margin-left: -0.5em;
    position: absolute;
    left: 0;
    top: -0.15em;
}

.service-single-page .entry-content ol li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
}

/* --- Styles for Galleries (used for Partner Logos) within Service Pages --- */
.service-single-page .entry-content .wp-block-gallery {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));  */
    /* gap: 10px; */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 0; /* Override default gallery padding */
    list-style: none; /* Ensure no list bullets appear */
}

/* Target the figure element which wraps each image in the gallery */
.service-single-page .entry-content .wp-block-gallery .wp-block-image {
    height: 100%;
    margin: 0; /* Reset default margins on the figure */
    display: flex;
    justify-content: center;
    align-items: center; 
}

/* Target the image itself to control its size and fit */
.service-single-page .entry-content .wp-block-gallery .wp-block-image img {
    max-width: 150px; /* Consistent max-width for logos */
    max-height: 100px; /* Consistent max-height for logos */
    width: auto; 
    height: auto;
    object-fit: contain; /* Ensure logo is not distorted */
    margin: 0;
}

/* Suppression forcée des marges sur les conteneurs de logos pour l'alignement vertical */
.service-single-page .entry-content .wp-block-gallery > figure.wp-block-image {
    /* Suppression totale des marges avec !important pour écraser les styles de WordPress */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    
    /* Force la figure à s'étirer et à centrer son contenu (l'image) */
    height: 100%; 
    display: flex;
    justify-content: center;
    align-items: center; 
}

/* Assure que l'image à l'intérieur n'a pas non plus de marges inattendues */
.service-single-page .entry-content .wp-block-gallery .wp-block-image img {
    margin: 0; 
}