/*!
Theme Name: IMDED
Theme URI: https://imded.net
Author: IMDED
Author URI: https://imded.net
Description: IMDED - Maghreb Institute for Sustainable Development
Version: 999.0.8
Update URI: false
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: klenar
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/




/* ==========================================================================
   Header 1: Top Navigation Bar Baseline Alignment & Responsive Mobile View
   ========================================================================== */
.elementor-element-1eed6e3f .hfe-nav-menu {
    display: flex !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item {
    display: inline-flex !important;
    align-items: baseline !important;
    float: none !important;
}

.elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: normal !important;
}

.elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item > a.hfe-menu-item img.emoji {
    vertical-align: -0.15em !important;
}

/* Tablet & Mobile responsive display: keep menu visible without hamburger */
.elementor-element-1eed6e3f .hfe-nav-menu__toggle {
    display: none !important;
}

.elementor-element-1eed6e3f nav.hfe-nav-menu__layout-horizontal {
    display: block !important;
}

@media (max-width: 767px) {
    .elementor-element-1eed6e3f .hfe-nav-menu {
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        flex-wrap: nowrap !important;
    }
    .elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item {
        flex-shrink: 1 !important;
    }
    .elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
        padding-left: 6px !important;
        padding-right: 6px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 13px !important;
    }
    .elementor-element-56b27cbf {
        padding-left: 2px !important;
        padding-right: 2px !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 420px) {
    .elementor-element-1eed6e3f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 11.5px !important;
    }
}

/* ==========================================================================
   Homepage: Activities Section Title & Spacing
   ========================================================================== */
.elementor-element-18d997e .tp-section-title-two,
.elementor-element-18d997e h2.bdevs-el-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.2px !important;
}

.elementor-element-18d997e .tp-section-subtitle-three {
    margin-bottom: 12px !important;
    font-size: 15px !important;
}

.elementor-element-18d997e,
.elementor-element-18d997e .section-title-wrapper {
    margin-bottom: 15px !important;
}

@media (max-width: 767px) {
    .elementor-element-18d997e .tp-section-title-two,
    .elementor-element-18d997e h2.bdevs-el-title {
        font-size: 24px !important;
    }
    .elementor-element-18d997e {
        margin-bottom: 12px !important;
    }
}

/* Espacement équilibré entre la section Activités et la section Projets */
.elementor-element-e150bf0 {
    padding-bottom: 35px !important;
}
.elementor-element-f0155b4 {
    padding-top: 35px !important;
}

/* ==========================================================================
   Homepage 4 Photos: Remove yellow overlay and plus icon on hover
   ========================================================================== */
.tp-project-three-img-overlay,
.tp-project-three:hover .tp-project-three-img-overlay,
.tp-project-three-img:hover .tp-project-three-img-overlay,
.tp-project-three-img-overlay-text,
.tp-project-three-img-overlay-text-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
    pointer-events: none !important;
}
.tp-project-three,
.tp-project-three-img,
.tp-project-three-img a,
.tp-project-three:hover,
.tp-project-three-img:hover {
    cursor: default !important;
    transform: none !important;
}
.tp-project-three-img img,
.tp-project-three:hover .tp-project-three-img img {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* ==========================================================================
   Global Compact & Attractive Footer Styling (All Pages)
   ========================================================================== */
.imded-global-footer {
    background-color: #041459 !important;
    position: relative;
    z-index: 10;
}
.imded-global-footer .tp-footer-area-two {
    padding-top: 50px !important;
    padding-bottom: 40px !important;
}
.imded-global-footer .tp-footer-info-logo img {
    max-height: 68px !important;
    width: auto !important;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
.imded-global-footer .imded-footer-desc {
    color: #e2e8f0 !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    max-width: 420px !important;
    margin: 0 !important;
    text-align: left !important;
    direction: ltr !important;
}
.imded-global-footer .tp-footer-widget-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 22px !important;
    position: relative !important;
    padding-bottom: 10px !important;
}
.imded-global-footer .tp-footer-widget-title::before {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 45px !important;
    height: 3px !important;
    background: #fed10c !important;
    border-radius: 2px !important;
}
.imded-global-footer .imded-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.imded-global-footer .imded-footer-links li {
    margin-bottom: 13px !important;
    list-style: none !important;
}
.imded-global-footer .imded-footer-links li:last-child {
    margin-bottom: 0 !important;
}
.imded-global-footer .imded-footer-links li a {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
    position: relative !important;
}
.imded-global-footer .imded-footer-links li a::before {
    content: "\f054" !important;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
    color: #fed10c !important;
    transform: translateY(-1px) !important;
    transition: transform 0.25s ease-in-out !important;
}
.imded-global-footer .imded-footer-links li a:hover {
    color: #fed10c !important;
    transform: translateX(4px) !important;
}

@media (max-width: 991px) {
    .imded-global-footer .imded-footer-desc {
        max-width: 100% !important;
    }
}

/* ==========================================================================
   Harmonious Spacing for All Internal Pages (Top & Bottom Whitespace Reduction)
   ========================================================================== */
body:not(.home) .page-area,
body:not(.home) .page-area.pt-120,
body:not(.home) .pt-120,
body:not(.home) .pt-115,
body:not(.home) .pt-110 {
    padding-top: 45px !important;
}

body:not(.home) .page-area.pb-120,
body:not(.home) .pb-120,
body:not(.home) .pb-115,
body:not(.home) .pb-110,
body:not(.home) .pb-90 {
    padding-bottom: 55px !important;
}

/* ==========================================================================
   Actualités Page: Card Title & Layout Optimization
   ========================================================================== */
.tp-service-three {
    display: flex !important;
    align-items: center !important;
    padding: 24px !important;
}
.tp-service-three-img {
    width: 240px !important;
    margin-right: 25px !important;
    flex-shrink: 0 !important;
}
.tp-service-three-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
}
.tp-service-three-text {
    flex: 1 !important;
    width: auto !important;
}
.tp-service-three-title {
    margin-bottom: 18px !important;
}
.tp-service-three-title a {
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: #041459 !important;
    display: block !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    transition: color 0.3s ease !important;
}
.tp-service-three-title a:hover {
    color: #61ce70 !important;
}
.tp-service-three-text-btn .yellow-btn {
    padding: 9px 26px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

@media (max-width: 767px) {
    .tp-service-three {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .tp-service-three-img {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }
}

/* ==========================================================================
   Contact Page: Title Sky Blue & Form Styling
   ========================================================================== */
body.page-id-583 .page-area .elementor-widget-heading .elementor-heading-title,
body.page-id-583 .elementor-583 .elementor-heading-title,
body.page-id-583 h1,
body.page-id-583 h2.elementor-heading-title {
    color: #6ec1e4 !important;
}

/* ==========================================================================
   FAQ Page (Questions and Answers): Accordion & Sky Blue Title
   ========================================================================== */
body.page-id-1903 .page-area .elementor-widget-heading .elementor-heading-title,
body.page-id-1903 .elementor-1903 .elementor-heading-title,
body.page-id-1903 h1,
body.page-id-1903 h2.elementor-heading-title {
    color: #6ec1e4 !important;
}

.page-id-1903 .elementor-toggle {
    max-width: 1140px !important;
    margin: 0 auto !important;
}

.page-id-1903 .elementor-toggle .elementor-toggle-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    transition: all 0.25s ease !important;
}

.page-id-1903 .elementor-toggle .elementor-toggle-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(4, 20, 89, 0.05) !important;
}

.page-id-1903 .elementor-toggle .elementor-tab-title {
    padding: 18px 24px !important;
    background: #ffffff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: ltr !important;
    cursor: pointer !important;
}

.page-id-1903 .elementor-toggle .elementor-tab-title a,
.page-id-1903 .elementor-toggle .elementor-tab-title .elementor-toggle-title {
    order: 1 !important;
    color: #041459 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    text-align: left !important;
    flex-grow: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
}

.page-id-1903 .elementor-toggle .elementor-tab-title.elementor-active a,
.page-id-1903 .elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-title {
    color: #041459 !important;
}

.page-id-1903 .elementor-toggle .elementor-toggle-icon {
    order: 2 !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
}

.page-id-1903 .elementor-toggle .elementor-toggle-icon svg {
    fill: #041459 !important;
    color: #041459 !important;
    width: 16px !important;
    height: 16px !important;
}

.page-id-1903 .elementor-toggle .elementor-tab-content {
    padding: 20px 24px !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    direction: ltr !important;
    text-align: left !important;
}

.page-id-1903 .elementor-toggle .elementor-tab-content,
.page-id-1903 .elementor-toggle .elementor-tab-content p {
    color: #374151 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* ==========================================================================
   Article Pages & Global Blog Enhancements: Hide Meta, Search & Comments
   ========================================================================== */
.ablog__meta,
.ablog__meta4,
.blog__meta,
.post-meta,
.rc-post .sidebar__post--text span,
.widget-posts-meta,
.wp-block-latest-posts__post-date {
    display: none !important;
}

.comments-area,
#comments,
.post-comments,
.comment-respond,
.blog__author {
    display: none !important;
}

.sidebar__widget:has(.sidebar__search),
.sidebar__search,
.widget_search,
.wp-block-search {
    display: none !important;
}


/* Hero slider: single banner, hide arrows and dots */
.elementor-element-31561966 .swiper-button-prev,
.elementor-element-31561966 .swiper-button-next,
.elementor-element-31561966 .swiper-pagination,
.elementor-widget-slides .swiper-button-prev,
.elementor-widget-slides .swiper-button-next,
.elementor-widget-slides .swiper-pagination {
    display: none !important;
}


/* ==========================================================================
   Activities Archive Page (post 2359)
   ========================================================================== */
.page-id-2359 .page-area {
    padding-top: 50px !important;
    padding-bottom: 70px !important;
}

.page-id-2359 .elementor-element-61e892e5 h2.elementor-heading-title,
.page-id-2359 .elementor-heading-title {
    color: #041459 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
}

.page-id-2359 .tp-service-three {
    display: flex !important;
    align-items: center !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(4, 20, 89, 0.04) !important;
    margin-bottom: 30px !important;
}

.page-id-2359 .tp-service-three-img {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    margin-right: 22px !important;
    flex-shrink: 0 !important;
}

.page-id-2359 .tp-service-three-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

.page-id-2359 .tp-service-three-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.page-id-2359 .tp-service-three-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.page-id-2359 .tp-service-three-title a {
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #041459 !important;
    display: block !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    transition: color 0.3s ease !important;
}

.page-id-2359 .tp-service-three-title a:hover {
    color: #61ce70 !important;
}

.page-id-2359 .tp-service-three-text p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
    margin-bottom: 20px !important;
}

.page-id-2359 .tp-service-three-text-btn .yellow-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 26px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    background-color: #ffc107 !important;
    color: #041459 !important;
}

@media (max-width: 767px) {
    .page-id-2359 .tp-service-three {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .page-id-2359 .tp-service-three-img {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 18px !important;
    }
}


.page-id-2359 h2,
.page-id-2359 h3,
.page-id-2359 h4,
.page-id-2359 h5,
.page-id-2359 .bdevs-el-title,
.page-id-2359 .tp-section-title-two,
.page-id-2359 .elementor-heading-title {
    color: #041459 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
}



/* ==========================================================================
   Home About Section: Harmonious, Clean & Attractive Typography Alignment
   ========================================================================== */
.tp-about-text-three .imded-about-item {
    display: block !important;
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #4a5568 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
}

.tp-about-text-three .imded-about-item:last-child {
    margin-bottom: 0 !important;
}

.tp-about-text-three .imded-about-item::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 10px !important;
    width: 9px !important;
    height: 9px !important;
    background-color: #06ae5a !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 3px rgba(6, 174, 90, 0.22) !important;
}

.tp-about-text-three p.mb-40 {
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #4a5568 !important;
}

@media (max-width: 767px) {
    .tp-about-text-three .imded-about-item {
        font-size: 14.5px !important;
        line-height: 1.75 !important;
        padding-left: 24px !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }
    .tp-about-text-three .imded-about-item::before {
        left: 2px !important;
        top: 9px !important;
        width: 7px !important;
        height: 7px !important;
    }
}


/* ==========================================================================
   Project & Activities Sidebar Titles Enhancement (Keep on Single Line)
   ========================================================================== */
.tp-faqs-left-sidebar-title,
.tp-services-sidebar .tp-faqs-left-sidebar-title,
.tp-project-widget .tp-faqs-left-sidebar-title,
.widget_bdevs-services-cats .tp-faqs-left-sidebar-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px !important;
}

.widget_bdevs-services-cats .tp-faqs-left-sidebar-title,
.tp-project-widget .tp-faqs-left-sidebar-title {
    white-space: nowrap !important;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .tp-faqs-left-sidebar-title,
    .tp-services-sidebar .tp-faqs-left-sidebar-title,
    .tp-project-widget .tp-faqs-left-sidebar-title,
    .widget_bdevs-services-cats .tp-faqs-left-sidebar-title {
        font-size: 19.5px !important;
    }
}


/* ==========================================================================
   Home About Section: Keep "INSTITUTE OVERVIEW:" on a single line
   ========================================================================== */
.tp-about-text-three .tp-section-title-two,
.tp-about-text-three .bdevs-el-title {
    font-size: 36px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .tp-about-text-three .tp-section-title-two,
    .tp-about-text-three .bdevs-el-title {
        font-size: 32px !important;
        white-space: nowrap !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .tp-about-text-three .tp-section-title-two,
    .tp-about-text-three .bdevs-el-title {
        font-size: 28px !important;
        white-space: nowrap !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .tp-about-text-three .tp-section-title-two,
    .tp-about-text-three .bdevs-el-title {
        font-size: 30px !important;
        white-space: normal !important;
    }
}

@media (max-width: 767px) {
    .tp-about-text-three .tp-section-title-two,
    .tp-about-text-three .bdevs-el-title {
        font-size: 26px !important;
        white-space: normal !important;
    }
}
