/* Smooth scroll to anchors */
html { scroll-behavior: smooth; }

/* Base font size */
body {
    font-size: 1.125rem;
}

/* LP twocol/fourcol layout: stack columns below 1024px */
@media screen and (max-width: 1023px) {
    .layout__region--first,
    .layout__region--second {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }

    .layout--twocol > .layout__region,
    .layout--fourcol > .layout__region {
        margin-bottom: 1.5rem;
    }

    .layout--twocol > .layout__region:last-child,
    .layout--fourcol > .layout__region:last-child {
        margin-bottom: 0;
    }
}

/* LP layout region: act as Bootstrap row when containing team members or icon-box-2 */
.layout__region--content:has(.team-section-wrap),
.layout__region--content:has(.icon-box-2) {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

/* Top Bar Styles */
.top-bar-right {
    background-color: var(--primary-color);
    padding: 10px 0;
    color: var(--white);
}

.top-bar-right .top-contact-info a {
    color: var(--white);
    margin-right: 20px;
    font-size: 0.875rem;
}

.top-bar-right .top-contact-info a i {
    margin-right: 5px;
}

.top-bar-right .social-icons a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1rem;
}

/* Language Selector Styles */
.language-selector select {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sticky-language-selector {
    background-color: var(--primary-color) !important;
    border-radius: 4px;
    padding: 3px 10px !important;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sticky-language-selector .lang-btn {
    color: var(--white) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0 3px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sticky-language-selector .lang-btn.active {
    opacity: 1;
}

.sticky-language-selector .lang-btn:hover {
    opacity: 1;
    color: #6b4a36 !important;
}

.sticky-language-selector .lang-divider {
    color: var(--bistre-color) !important; /* Divider en Bistre */
    margin: 0 2px;
    font-size: 0.85rem;
}

/* Language Container Styles */
#sticky-language-container {
    display: flex;
    align-items: center;
}

#sticky-language-container:hover .nav-link,
#sticky-language-container .nav-link:hover {
    background-color: var(--cadet-color) !important;
    color: inherit !important;
}

/* Navbar Language Selector Interactions */
.navbar-nav li:hover #sticky-language-container .sticky-language-selector, .navbar-nav .nav-item:hover #sticky-language-container .nav-link, .navbar-nav #sticky-language-container .nav-link:hover, .navbar-nav li:hover #sticky-language-container .sticky-language-selector:hover, .navbar-nav #sticky-language-container .nav-link:hover .sticky-language-selector, .navbar-nav .sticky-language-selector:hover {
    background-color: var(--cadet-color) !important;
    color: #6b4a36 !important;
}

/* Updated Language Selector */
.language-selector {
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.language-selector .lang-btn {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0 3px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.language-selector .lang-btn.active {
    opacity: 1;
}

.language-selector .lang-btn:hover {
    opacity: 1;
    color: var(--white);
}

.language-selector .lang-divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
    font-size: 0.85rem;
}

/* Sticky Donation Button */
.sticky-donation-btn {
    position: fixed;
    bottom: auto;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.sticky-donation-btn.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-donation-btn .btn {
    border-radius: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5A26C;
    border-color: #F5A26C;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 60px;
    height: 140px;
}

.sticky-donation-btn .btn:hover {
    width: 65px;
}

.sticky-donation-btn .donate-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 0;
    color: var(--white);
    letter-spacing: 1px;
}

.sticky-donation-btn .heart-icon {
    background-color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sticky-donation-btn .heart-icon i {
    color: #F5A26C;
    font-size: 20px;
}

/* Video Section Styles */
.video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 20px 0;
}

.video-poster {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/*.video-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}*/

.video-poster:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.play-button i {
    color: var(--white);
    font-size: 30px;
}

.video-poster:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.15);
}

.callout-style-1 {
    position: relative;
    background-color: #f1f5f9;
    padding: 60px 0;
}

.callout-style-1 .heading-main {
    margin-bottom: 20px;
    color: #333;
}

.callout-style-1 .heading-main small {
    color: var(--primary-color);
}

.callout-style-1 .heading-main.light-mode small {
    color: var(--white);
}

.callout-style-1 p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.callout-style-1.light-mode p {
    color: var(--white);
}

/* Light-mode on section cascades to child headings */
section.light-mode .heading-main {
    color: var(--white);
}
section.light-mode .heading-main small {
    color: var(--white);
}
section.light-mode .heading-main small::after {
    background: var(--white);
}

.callout-style-1 .btn {
    padding: 12px 25px;
}

.callout-style-1 .btn i {
    transition: all 0.3s ease;
}

.callout-style-1 .btn:hover i {
    transform: translateX(5px);
}

/* Partners Section Styles */
.partners-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.partners-section .heading-main {
    margin-bottom: 40px;
    text-align: center;
}

.partners-logo {
    background-color: transparent; /* Supprime le fond blanc */
    border-radius: 0; /* Supprime l'arrondi */
    box-shadow: none; /* Supprime l'ombre */
    padding: 15px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
    transition: all 0.3s ease;
}

.partners-logo:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

.partners-logo img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.partners-logo.dark-bg {
    background-color: transparent; /* Supprime le fond coloré */
    border: none; /* Supprime la bordure */
}

.partners-logo img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

/*.partners-logo.dark-bg img {
    filter: brightness(0) saturate(100%) invert(14%) sepia(75%) saturate(3042%) hue-rotate(315deg) brightness(100%) contrast(96%);
}*/

@media (max-width: 767px) {
    .partners-logo {
        height: 140px;
        padding: 20px;
    }
    
    .partners-logo img {
        max-height: 100px;
    }
}

@media (max-width: 991px) {
    .video-wrapper {
        margin-top: 40px;
    }
}

/* Instagram Feed Styles */
.instagram-feed-section {
    padding: 80px 0;
}

.instagram-feed-section .testimonials {
    color: #888;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 500;
}

.instagram-feed-section .heading-main {
    color: var(--primary-color);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

.instagram-carousel .row {
    display: flex;
    flex-wrap: nowrap;
}

.instagram-carousel .col {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.insta-img {
    display: block;
    position: relative;
    overflow: hidden;
    height: 240px;
}

.insta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-img i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.insta-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(165, 25, 90, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.insta-img:hover img {
    transform: scale(1.1);
}

.insta-img:hover::before {
    opacity: 1;
}

.insta-img:hover i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 767px) {
    .instagram-carousel .row {
        flex-wrap: wrap;
    }
    
    .instagram-carousel .col {
        width: 50%;
    }
    
    .insta-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .instagram-carousel .col {
        width: 100%;
    }
}

/* EKL Sidebar Styling */
.ekl-styled-widget {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* border-top: 20px solid #C47994; */
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
    background: #fff url(../images/border.jpeg) repeat-x top center;
}

.ekl-styled-widget:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ekl-styled-widget .widget-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

.ekl-styled-widget .widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #7A9A5B, #A5195A);
}

.ekl-styled-widget-yellow {
    background: #fff url(../images/border-yellow.jpeg) repeat-x top center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding-top: 15px;
}

.theme-ekl li a {
    color: #333;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.theme-ekl li:last-child a {
    border-bottom: none;
}

.theme-ekl li a:hover {
    color: #A5195A;
    padding-left: 5px;
}

.ekl-image-border {
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ekl-image-border:hover {
    border-color: #7A9A5B;
}

.ekl-link {
    color: #333;
    transition: all 0.3s ease;
}

.ekl-link:hover {
    color: #A5195A;
}

.ekl-date {
    color: #7A9A5B;
    font-weight: 500;
}

.popular-post li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.popular-post li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.causes-wrap .skillbar {
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.causes-wrap .tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Video Block Styling */
.video-block {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-poster {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-content {
    text-align: center;
    padding: 20px;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.play-icon i {
    color: white;
    font-size: 24px;
}

.video-content h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #A5195A;
}

.video-btn:hover {
    background-color: #A5195A;
    color: white;
    transform: translateY(-3px);
}

.video-block:hover .play-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Breadcrumb Page Backgrounds */
/* Nous connaître */
.breadcrumbs-page.nous-connaitre-vision {
    background-image: url('../images/education/DSC09501.jpg');
}

.breadcrumbs-page.nous-connaitre-histoire {
    background-image: url('../images/team/IMG_2229.jpg');
}

.breadcrumbs-page.nous-connaitre-partenaires {
    background-image: url('../images/famille/IMG_2789.JPG');
}

.breadcrumbs-page.nous-connaitre-gouvernance {
    background-image: url('../images/team/DSCF1196.JPG');
}

/* Impacts */
.breadcrumbs-page.impacts-education {
    background-image: url('../images/education/P1080724.jpg');
}

.breadcrumbs-page.impacts-sante {
    background-image: url('../images/alimentation/DSC09479.jpg');
}

.breadcrumbs-page.impacts-familles {
    background-image: url('../images/famille/IMG_2789.JPG');
}

.breadcrumbs-page.impacts-arts {
    background-image: url('../images/sport/IMG_2752.jpg');
}

/* Agir */
.breadcrumbs-page.agir-don {
    background-image: url('../images/causes/cause-education.jpg');
}

.breadcrumbs-page.agir-partenaire {
    background-image: url('../images/team/DSCF1196.JPG');
}

.breadcrumbs-page.agir-rejoindre {
    background-image: url('../images/team/IMG_2229.jpg');
}

.breadcrumbs-page.agir-cagnottes {
    background-image: url('../images/causes/cause-library.jpg');
}

.breadcrumbs-page.agir-autres {
    background-image: url('../images/callout_bg.jpg');
}

/* Ressources */
.breadcrumbs-page.ressources-actualites {
    background-image: url('../images/blog_post_1.jpg');
}

.breadcrumbs-page.ressources-newsletters {
    background-image: url('../images/blog_post_2.jpg');
}

.breadcrumbs-page.ressources-rapports {
    background-image: url('../images/blog_post_3.jpg');
}

.breadcrumbs-page.ressources-autres {
    background-image: url('../images/callout_bg.jpg');
}

/* Default background if no class specified */
.breadcrumbs-page {
    background-image: url('../images/callout_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Blog Post Image Ratio 208:139 (1.496:1) */
.post-wrap .post-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.post-wrap .post-img a {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 66.83%; /* 139/208 = 0.6683 = 66.83% */
    overflow: hidden;
}

.post-wrap .post-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.post-wrap:hover .post-img img {
    transform: scale(1.05);
}

/* Support moderne avec aspect-ratio pour les navigateurs récents */
@supports (aspect-ratio: 208 / 139) {
    .post-wrap .post-img a {
        padding-bottom: 0;
        aspect-ratio: 208 / 139;
        display: block;
        height: auto;
    }

    .post-wrap .post-img img {
        position: relative;
    }
}

/* Document download list inside icon-box-2 */
.doc-download-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-download-list li:last-child {
    border-bottom: none;
}

.doc-download-list li a {
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.doc-download-list li a:hover {
    color: #a5195a;
}

.doc-download-list li a .icofont-download {
    color: #a5195a;
    font-size: 12px;
}

.doc-download-list .doc-size {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* Rapport covers */
.rapport-cover {
    aspect-ratio: 210 / 297;
    overflow: hidden;
    background-color: #f8f9fa;
}

.rapport-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#donationModal {
    z-index: 9999;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   Webform Embed: Orange variants (partenariat + candidature)
   Drupal renders inputs with .form-text, .form-select,
   .form-textarea — NOT .form-control. Target both.
   ============================================================ */
.become-volunteers .form-text,
.become-volunteers .form-select,
.become-volunteers .form-textarea,
.become-volunteers .form-email,
.become-volunteers .form-tel,
.become-volunteers .form-control {
    font-size: 0.9375rem;
    outline: none;
    color: #131313;
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 0px 0px 147px 0px rgba(0, 0, 0, 0.07);
    border: none;
    width: 100%;
    padding: 0.6rem 1rem;
    display: block;
}
.become-volunteers .form-text:disabled,
.become-volunteers .form-select:disabled,
.become-volunteers .form-textarea:disabled {
    opacity: 0.6;
}
.become-volunteers .form-text::placeholder,
.become-volunteers .form-textarea::placeholder {
    color: #5b5b5b;
}

/* Custom template labels (white bold) */
.become-volunteers .form-group > label {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: block;
}

/* Hide Drupal-generated labels inside .form-item —
   our custom templates provide their own <label><strong> */
.become-volunteers .form-item > label {
    display: none;
}

/* Remove default form-item margin since .form-group handles spacing */
.become-volunteers .form-item {
    margin-bottom: 0;
}
.become-volunteers .form-group {
    margin-bottom: 1.5rem;
}

/* Submit button: btn-outline-light style */
.become-volunteers .webform-actions input[type="submit"],
.become-volunteers .form-actions input[type="submit"],
.become-volunteers .form-submit {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 5px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.become-volunteers .webform-actions input[type="submit"]:hover,
.become-volunteers .form-actions input[type="submit"]:hover,
.become-volunteers .form-submit:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* File upload inputs in orange context */
.become-volunteers .js-form-managed-file {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}
.become-volunteers input[type="file"] {
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 100%;
    border-radius: 5px;
}

/* CTA bar below the orange box */
.become-volunteers + .container {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

/* ============================================================
   Webform Embed: Contact variant (white, sidebar layout)
   ============================================================ */

/* Style Drupal form elements as .form-control equivalent */
.contact-wrap .form-text,
.contact-wrap .form-select,
.contact-wrap .form-textarea,
.contact-wrap .form-email,
.contact-wrap .form-tel,
.contact-wrap .form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}
.contact-wrap .form-text:focus,
.contact-wrap .form-select:focus,
.contact-wrap .form-checkbox:focus,
.contact-wrap .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(165, 25, 90, 0.15);
}



/* Contact uses placeholders — hide Drupal-generated labels */
.contact-wrap .form-item > label {
    display: none;
}
.contact-wrap .form-item.form-item-newsletter > label {
    display: inline;
}

/* Spacing */
.contact-wrap .form-item {
    margin-bottom: 0;
}
.contact-wrap .form-group {
    margin-bottom: 1rem;
}

/* Submit button: btn btn-default style */
.contact-wrap .webform-actions input[type="submit"],
.contact-wrap .form-actions input[type="submit"],
.contact-wrap .form-submit {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.contact-wrap .webform-actions input[type="submit"]:hover,
.contact-wrap .form-actions input[type="submit"]:hover,
.contact-wrap .form-submit:hover {
    background-color: #8a1549;
}

/* Contact sidebar info boxes */
.col-lg-4 .icon-box-4 {
    transition: all 0.3s ease;
}
.col-lg-4 .icon-box-4:hover {
    transform: translateY(-3px);
}

/* ============================================================
   Cagnotte sidebar cards (compact view for sidebar region)
   ============================================================ */
.cagnotte-sidebar-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cagnotte-sidebar-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Sidebar card image */
.cagnotte-sidebar-img {
    overflow: hidden;
    border-radius: 5px;
}
.cagnotte-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cagnotte-sidebar-img .cagnotte-logo-fallback {
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
}

/* Sidebar card title: 2 lines max with ellipsis */
.cagnotte-sidebar-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
}

/* Skillbar inside sidebar cards: ensure proper sizing */
.cagnotte-sidebar-card .skillbar-wrap {
    position: relative;
}
.cagnotte-sidebar-card .skillbar {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    position: relative;
    overflow: visible;
}
.cagnotte-sidebar-card .skillbar-bar {
    height: 100%;
    border-radius: 3px;
    background-color: var(--primary-color);
}
.cagnotte-sidebar-card .skillbar-percent {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================================
   Cagnottes listing page (teaser cards)
   ============================================================ */

/* Card image wrapper: fixed aspect ratio */
.causes-wrap .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}
.causes-wrap .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.causes-wrap:hover .img-wrap img {
    transform: scale(1.05);
}
.causes-wrap .img-wrap .cagnotte-logo-fallback {
    object-fit: contain;
    padding: 20px;
}
.causes-wrap .img-wrap .platform-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    height: 38px;
    width: auto;
    padding: 5px 8px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}
.featured-cause-timer .platform-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Card content */
.causes-wrap {
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
}
.causes-wrap:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.causes-wrap .content-wrap {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.causes-wrap .content-wrap h4 {
    margin-bottom: 0.5rem;
}
.causes-wrap .content-wrap h4 a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.causes-wrap .content-wrap h4 a:hover {
    color: var(--primary-color);
}
.causes-wrap .causes-description {
    color: #666;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* Progress bar */
.causes-wrap .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
}
.causes-wrap .progress-bar {
    border-radius: 3px;
}

/* Bottom row pushes to bottom */
.causes-wrap .content-wrap > .d-flex:last-child {
    margin-top: auto;
}

/* ============================================================
   Shared view filters: inline style (cagnottes + articles)
   ============================================================ */
.cagnottes-filters .views-exposed-form,
.articles-filters .views-exposed-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cagnottes-filters .form-item,
.articles-filters .form-item {
    margin-bottom: 0;
}
.cagnottes-filters .form-item label,
.articles-filters .form-item label {
    display: none;
}
.cagnottes-filters .form-select,
.cagnottes-filters select,
.articles-filters .form-select,
.articles-filters select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.875rem;
    background-color: var(--white);
    min-width: 140px;
}
.cagnottes-filters .form-actions,
.articles-filters .form-actions {
    margin-bottom: 0;
}
.cagnottes-filters .form-actions .btn,
.cagnottes-filters .form-actions input[type="submit"],
.cagnottes-filters .form-submit,
.cagnottes-filters button[type="submit"],
.articles-filters .form-actions .btn,
.articles-filters .form-actions input[type="submit"],
.articles-filters .form-submit,
.articles-filters button[type="submit"] {
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cagnottes-filters .form-actions input[type="submit"]:hover,
.cagnottes-filters .form-submit:hover,
.cagnottes-filters button[type="submit"]:hover,
.articles-filters .form-actions input[type="submit"]:hover,
.articles-filters .form-submit:hover,
.articles-filters button[type="submit"]:hover {
    background-color: #8a1549;
}

/* Articles listing: ensure consistent card heights */
.view-ekl-articles .post-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.view-ekl-articles .post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.view-ekl-articles .post-content .text-md-end {
    margin-top: auto;
}

/* Pagination styling */
.view-ekl-articles .view-pager .pagination,
.view-ekl-cagnottes .view-pager .pagination {
    justify-content: center;
}
.view-ekl-articles .view-pager .page-link,
.view-ekl-cagnottes .view-pager .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}
.view-ekl-articles .view-pager .page-item.active .page-link,
.view-ekl-cagnottes .view-pager .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.view-ekl-articles .view-pager .page-link:hover,
.view-ekl-cagnottes .view-pager .page-link:hover,
.view-ekl-newsletters .view-pager .page-link:hover {
    background-color: rgba(165, 25, 90, 0.1);
    color: var(--primary-color);
}

/* ============================================================
   Newsletters listing page
   ============================================================ */

/* Newsletter card image: fixed aspect ratio */
.event-wrap .img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #f8f9fa;
}
.event-wrap .img-wrap img {
    height: 100%;
    object-fit: cover;
}
.event-wrap .img-wrap .newsletter-logo-fallback {
    object-fit: contain;
    padding: 20px;
}

/* Newsletter pagination */
.view-ekl-newsletters .view-pager .pagination {
    justify-content: center;
}
.view-ekl-newsletters .view-pager .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}
.view-ekl-newsletters .view-pager .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ============================================================
   Search results page
   ============================================================ */
.search-filters .views-exposed-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}
.search-filters .form-item {
    margin-bottom: 0;
    flex-grow: 1;
}
.search-filters .form-item label {
    display: none;
}
.search-filters .form-text,
.search-filters input[type="text"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}
.search-filters .form-actions {
    margin-bottom: 0;
}
.search-filters .form-submit,
.search-filters button[type="submit"] {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-filters .form-submit:hover,
.search-filters button[type="submit"]:hover {
    background-color: #8a1549;
}

/* Search result entries (search engine style) */
.search-result-entry:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}
.search-result-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.search-result-title a:hover {
    text-decoration: underline;
}
.search-result-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}
.search-result-excerpt strong {
    color: #333;
    font-weight: 700;
    background-color: rgba(165, 25, 90, 0.08);
    padding: 0 2px;
    border-radius: 2px;
}

/* Search pagination — match gracious template (section 5.3) */
.view-ekl-search .pagination {
    justify-content: center;
}
.view-ekl-search .pagination .page-item {
    margin-right: 1rem;
}
.view-ekl-search .pagination .page-item .page-link {
    color: #333;
    height: 45px;
    width: 45px;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    background: var(--white);
    border-color: var(--white);
    box-shadow: none;
    outline: none;
    font-weight: 600;
    border-radius: 4px;
}
.view-ekl-search .pagination .page-item.disabled {
    opacity: 0.5;
}
.view-ekl-search .pagination .page-item.active .page-link,
.view-ekl-search .pagination .page-item .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.view-ekl-search .pagination .page-item:first-child .page-link {
    margin-left: 0;
    border-radius: 4px;
}

/* Homepage featured cagnotte: ensure image displays properly */
.featured-causes-img > img {
    width: 100%;
    border-radius: 10px;
}

/* ============================================================
   Article full view (blog-single)
   ============================================================ */

/* Single post image */
.causes-wrap.single {
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.causes-wrap.single .img-wrap {
    aspect-ratio: auto;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: transparent;
}
.causes-wrap.single .img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Single post body */
.content-wrap-single p {
    margin-bottom: 1.5rem;
}
.content-wrap-single blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}
.content-wrap-single img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Share section */
.share-this-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.share-line {
    display: flex;
    align-items: center;
}
.share-line ul li a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.share-line ul li a:hover {
    color: var(--primary-color);
}

/* Post tags */
.post-tags {
    border-top: 1px solid #eee;
}
.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    background-color: #f1f1f1;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}
.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sidebar widgets */
.sidebar-widgets .widget-wrap {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.sidebar-widgets .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Popular posts in sidebar */
.popular-post li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.popular-post li:last-child {
    border-bottom: none;
}
.popular-post li img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.popular-post li h6 {
    font-size: 0.85rem;
    margin-bottom: 3px;
    line-height: 1.3;
}
.popular-post li h6 a {
    color: #333;
    text-decoration: none;
}
.popular-post li h6 a:hover {
    color: var(--primary-color);
}
.popular-post li small {
    color: #999;
    font-size: 0.75rem;
}

/* Sidebar CTA/ads */
.sidebar-ads {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.sidebar-ads > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.sidebar-ads .content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    color: var(--white);
}
.sidebar-ads .content i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.sidebar-ads .content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* ============================================================
   Article gallery - CSS Grid photo gallery
   Based on: codepen.io/optimisticweb/pen/pvzoELv
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
}
.gallery-grid figure {
    margin: 0;
    container: figure / inline-size;
    overflow: hidden;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}
.gallery-grid figure > a {
    grid-area: 1 / 1 / -1 / -1;
    display: block;
    overflow: hidden;
}
.gallery-grid img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: scale 0.6s ease-in-out;
}
.gallery-grid figure:hover img {
    scale: 1.125;
}
.gallery-grid figcaption {
    grid-area: 1 / 1 / -1 / -1;
    align-self: end;
    z-index: 1;
    padding: 3em 15% 1em 1em;
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.3;
    background: linear-gradient(transparent 25%, rgba(0, 0, 0, 0.75));
    display: none;
}
@container figure (width > 20rem) {
    .gallery-grid figcaption {
        display: block;
    }
}
.gallery-grid figcaption h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}
.gallery-grid figcaption p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* Varied grid spans for visual interest */
@media (min-width: 600px) {
    .gallery-grid figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }
    .gallery-grid figure:nth-child(4n+1) {
        grid-row: span 2;
    }
    .gallery-grid figure:nth-child(4n+2) {
        grid-column: span 2;
    }
}

.layout--twocol .img-fluid.rounded {
    width: 100%;
}

/* Newsletter subscribe form — honeypot hidden field */
.newsletter-hp-wrapper {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Newsletter GDPR checkbox in footer */
.newsletter-gdpr .form-check-label,
.newsletter-gdpr label {
    font-size: 0.8125rem;
    color: #555;
    font-weight: 400;
}
.newsletter-gdpr .form-check-input {
    margin-top: 0.2em;
}

/* Newsletter success message in footer context */
.footer-subscribe-white .alert-success {
    background-color: rgba(217, 231, 219, 0.15);
    border-color: rgba(217, 231, 219, 0.3);
}
.footer-subscribe-white .alert-success .icofont-check-circled {
    margin-right: 0.5rem;
}

/* Newsletter form — remove Drupal form element wrappers extra spacing */
.footer-subscribe-white .form-item {
    margin-bottom: 0;
}
.footer-subscribe-white .form-actions {
    margin: 0;
}

/* Newsletter form on newsletters page (white bg context) */
.newsletter-page-form .footer-subscribe-white {
    background: none;
    padding: 0;
}
.newsletter-page-form .footer-subscribe-white h2 {
    color: var(--primary-color, #0d6efd);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.newsletter-page-form .newsletter-gdpr .form-check-label,
.newsletter-page-form .newsletter-gdpr label {
    color: #6c757d;
}
.newsletter-page-form .footer-subscribe-white .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* =============================================
   Klaro Consent Manager - EKL Brand Overrides
   ============================================= */
.klaro .cookie-notice,
.klaro .cookie-modal {
    font-family: inherit;
}
.klaro .cm-btn.cm-btn-accept-all {
    background-color: #a5195a;
    border-color: #a5195a;
}
.klaro .cm-btn.cm-btn-accept-all:hover {
    background-color: #8a1549;
    border-color: #8a1549;
}
.klaro .cm-btn.cm-btn-decline {
    background-color: transparent;
    border: 1px solid #a5195a;
    color: #a5195a;
}
.klaro .cm-btn.cm-btn-decline:hover {
    background-color: #a5195a;
    color: #fff;
}
.klaro .cm-toggle input:checked + .cm-toggle-slider {
    background-color: #748d52;
}
.klaro a {
    color: #a5195a;
}

/* Inline image alignment (filter_align / CKEditor5)
   Custom theme has no base theme, so core's align classes need styling. */
.align-left {
    float: left;
    margin: 0 1.5em 1em 0;
    max-width: 50%;
}
.align-right {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 50%;
}
/* display:table shrinks the element to its content width so margin auto
   actually centers it — works for a bare <img>, a <figure>, or the
   media-embed wrapper <div>. */
.align-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
}
.align-center img {
    display: block;
}