/*!
Theme Name: IMDED
Theme URI: https://imded.net
Author: IMDED
Author URI: https://imded.net
Description: IMDED - المعهد المغاربي للتنمية المستدامة
Version: 999.0.0
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
*/

/* Top header menu baseline and horizontal alignment across all devices */
.elementor-element-3b7da9f .hfe-nav-menu {
    display: flex !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.elementor-element-3b7da9f .hfe-nav-menu > li.menu-item {
    display: inline-flex !important;
    align-items: baseline !important;
    float: none !important;
}

.elementor-element-3b7da9f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
    display: inline-flex !important;
    align-items: baseline !important;
    line-height: normal !important;
}

.elementor-element-3b7da9f .hfe-nav-menu > li.menu-item > a.hfe-menu-item img.emoji {
    vertical-align: -0.15em !important;
}

/* Tablet & Mobile responsive adjustments */
@media (max-width: 767px) {
    .elementor-element-3b7da9f .hfe-nav-menu {
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .elementor-element-3b7da9f .hfe-nav-menu > li.menu-item {
        flex-shrink: 1 !important;
    }
    .elementor-element-3b7da9f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 12px !important;
    }
    .elementor-element-35386417 .e-con-inner {
        padding-left: 2px !important;
        padding-right: 2px !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 360px) {
    .elementor-element-3b7da9f .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
        padding-left: 3px !important;
        padding-right: 3px !important;
        font-size: 11px !important;
    }
}


/* Remove background diagonal pattern shape in About section */
.tp-about-img-three .tp-about-img-three-third,
.tp-about-img-three-third {
    display: none !important;
}

/* Hide post meta (date, author, comments count) and comments everywhere */
.ablog__meta, .ablog__meta4, .blog__meta, .post-meta, .rc-post .sidebar__post--text span {
    display: none !important;
}
.comments-area, #comments, .post-comments, .comment-respond, .blog__author {
    display: none !important;
}


/* Contact Page Enhancements */
.page-id-583 .tp-section-title, 
.page-id-583 .bdevs-el-title {
    color: #6ec1e4 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 0px !important;
    text-align: right !important;
}
.page-id-583 .common-yellow-shape,
.page-id-583 .tp-section-subtitle {
    display: none !important;
}
.page-id-583 .tp-contact-area {
    padding-top: 10px !important;
    padding-bottom: 60px !important;
}
.page-id-583 .tp-contact-form {
    background: #ffffff;
    padding: 30px 25px !important;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(4, 20, 89, 0.05);
    border: 1px solid #eef2f6;
}
.page-id-583 .tp-contact-form-field input {
    height: 50px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    color: #1e293b !important;
    padding: 0 16px !important;
    transition: all 0.3s ease;
}
.page-id-583 .tp-contact-form-field textarea {
    height: 110px !important;
    min-height: 110px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    color: #1e293b !important;
    padding: 14px 16px !important;
    transition: all 0.3s ease;
}
.page-id-583 .tp-contact-form-field input:focus,
.page-id-583 .tp-contact-form-field textarea:focus {
    border-color: #041459 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(4, 20, 89, 0.08) !important;
}
.page-id-583 .tp-contact-info {
    background: #ffffff;
    padding: 25px 20px !important;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(4, 20, 89, 0.05);
    border: 1px solid #eef2f6;
}
.page-id-583 .tp-contact-info-title {
    color: #041459 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}


/* FAQ Page (اسئلة و أجوبة) Layout & Spacing Enhancements */
.page-id-1975 .page-area {
    padding-top: 35px !important;
    padding-bottom: 50px !important;
}
.page-id-1975 .post-entry--top-margin {
    margin-top: 0 !important;
}
.page-id-1975 .elementor-element-666f8eb {
    margin-bottom: 15px !important;
}
.page-id-1975 .elementor-element-666f8eb h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #6ec1e4 !important;
    text-align: right !important;
}
.page-id-1975 .elementor-element-67537a3b {
    padding-top: 10px !important;
    padding-bottom: 25px !important;
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
}
.page-id-1975 .elementor-widget-toggle {
    width: 100% !important;
}
.page-id-1975 .elementor-toggle .elementor-toggle-item {
    border: 1px solid #e5e7eb !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.3s ease !important;
}
.page-id-1975 .elementor-toggle .elementor-toggle-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(4, 20, 89, 0.05) !important;
}
.page-id-1975 .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: rtl !important;
    cursor: pointer !important;
}
.page-id-1975 .elementor-toggle .elementor-tab-title a,
.page-id-1975 .elementor-toggle .elementor-tab-title .elementor-toggle-title {
    color: #000000 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    text-align: right !important;
    flex-grow: 1 !important;
    text-decoration: none !important;
}
.page-id-1975 .elementor-toggle .elementor-toggle-icon {
    order: -1 !important; /* Put icon on the left in RTL, title on the right */
    margin-left: 0 !important;
    margin-right: 15px !important;
}
.page-id-1975 .elementor-toggle .elementor-toggle-icon svg {
    fill: #000000 !important;
    color: #000000 !important;
    width: 16px !important;
    height: 16px !important;
}
.page-id-1975 .elementor-toggle .elementor-tab-content {
    padding: 20px 24px !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    direction: rtl !important;
    text-align: right !important;
}
.page-id-1975 .elementor-toggle .elementor-tab-content,
.page-id-1975 .elementor-toggle .elementor-tab-content p {
    color: #374151 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0 !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: 360px !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    direction: rtl !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;
    right: 0 !important;
    left: 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-left: 8px !important;
    margin-right: 0 !important;
    color: #fed10c !important;
    transform: translateY(-1px) rotate(180deg) !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;
}
.imded-global-footer .tp-copyright-area-two {
    background-color: #18255e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}
.imded-global-footer .tp-copyright p {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
}
@media (max-width: 991px) {
    .imded-global-footer .tp-footer-area-two {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }
}
@media (max-width: 767px) {
    .imded-global-footer .imded-footer-desc {
        max-width: 100% !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 {
    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;
}
