/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0
*/
/* ==========================================================================
   Zamalek Association - Global Typography
   ========================================================================== */
html {
    scroll-padding-top: 88px;
    scroll-behavior: smooth;
    /* Optional: Makes the scroll animation look really nice */
}

/* Set the default body font for all standard text, paragraphs, and UI */
body {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: #636894;
    font-size: 1rem;
}

/* Set the specific serif font for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Newsreader', Georgia, serif;
}

h2 {
    color: #151d28;
    font-size: 3rem;
}

h3 {
    color: #151d28;
    font-size: 1.25rem;
}

/* Update your specific custom classes (if you want to override defaults) */
.z-site-title,
.project-single-container,
.project-main-title,
.card-title,
.card-title a {
    font-family: 'Newsreader', Georgia, serif;
}

.text-primary {
    color: #354294;
}

/* ==========================================================================
   Main Header Wrapper (Includes Sticky Settings)
   ========================================================================== */
.z-site-header {
    background-color: #ffffff;
    padding: 15px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 9999;
}

body.admin-bar .z-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .z-site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar .z-site-header {
        top: 0;
    }
}

/* Updated Layout: Pushes elements to the right */
.z-header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Changed from space-between */
    max-width: 1140px;
    margin: 0 auto;
}

/* ==========================================================================
   Section 1: Logo & Title
   ========================================================================== */
.z-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-inline-end: auto;
    /* CRITICAL FIX: Pushes the center & right sections to the far end */
}

.z-header-left .z-logo-wrapper {
    display: block;
    width: 34px;
    height: 56px;
    flex: 0 0 34px;
    overflow: hidden;
}

.z-header-left .z-logo-wrapper img.z-site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.z-site-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.z-site-title a {
    text-decoration: none;
    color: #151d28;
    transition: color 0.3s ease;
}

/* ==========================================================================
   Section 2: Navigation Menu
   ========================================================================== */
.z-header-center {
    display: flex;
    align-items: center;
}

.z-main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.z-main-navigation a {
    /* New Custom Typography */
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    color: #636894;
    transition: color 0.3s ease;
}

.z-main-navigation a:hover {
    color: #223777;
    /* Darkens text on hover */
}

/* Style for Polylang Language Switcher */
.z-main-navigation li.lang-item a {
    font-weight: 700;
    /* Bold */
    border: 1px solid #636894;
    border-radius: 14px;
    padding: 4px 12px;
    color: #636894;
    transition: all 0.3s ease;
    display: inline-block;
}

.z-main-navigation li.lang-item a:hover {
    color: #223777;
    border-color: #223777;
}

/* ==========================================================================
   Section 3: Social Widget Area
   ========================================================================== */
.z-header-right {
    display: flex;
    align-items: center;
    margin-inline-start: 30px;
    /* Space between navigation and social icons (adapts to RTL) */
    gap: 10px;
}

.z-header-right a {
    color: #636894;
    line-height: 20px;
    height: 20px;
}

/* ==========================================================================
   Project Hero Gallery (Splide)
   ========================================================================== */
.project-single-container .project-article {
    max-width: 750px;
    margin: 0 auto;
    /* Centers the entire block on the screen */
    padding: 0 20px;
    /* Ensures text doesn't touch the screen edges on mobile phones */
    width: 100%;
    box-sizing: border-box;
}

/* Ensure the hero image/gallery stretches fully edge-to-edge inside the new 750px container */
.project-hero-gallery-wrapper,
.project-hero-image {
    width: 100%;
    margin-bottom: 30px;
}

/* Main Image */
.project-main-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-main-slider .splide__track,
.project-thumb-slider .splide__track {
    overscroll-behavior-x: contain;
    touch-action: manipulation;
}

.project-main-slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.project-gallery-counter {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(21, 29, 40, 0.72);
    color: #ffffff;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    direction: ltr;
    pointer-events: none;
}

/* Arrow Styling */
.project-main-slider .splide__arrow {
    background: #ffffff;
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    touch-action: manipulation;
}

.project-main-slider .splide__arrow:hover {
    opacity: 1;
}

.project-main-slider .splide__arrow:focus-visible,
.project-thumb-slider .splide__arrow:focus-visible,
.project-thumb-slider .splide__slide:focus-visible {
    outline: 3px solid #354294;
    outline-offset: 2px;
}

/* Thumbnails */
.project-thumb-slider {
    margin-top: 15px;
    padding: 10px 12px;
    background-color: #eaecfb;
    border-radius: 10px;
}

.project-thumb-slider.is-overflow {
    padding-inline: 42px;
}

.project-thumb-slider .splide__arrow {
    width: 28px;
    height: 28px;
    background: #ffffff;
    opacity: 0.92;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.project-thumb-slider .splide__arrow svg {
    width: 12px;
    height: 12px;
}

.project-thumb-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: 3px solid transparent;
    display: block;
}

.project-thumb-slider img:hover {
    opacity: 0.85;
}

/* The actively selected thumbnail */
.project-thumb-slider .is-active img {
    opacity: 1;
    border-color: #354294;
    /* Primary blue border for the selected image */
}

.splide__track--nav>.splide__list>.splide__slide.is-active {
    border: none;
}

/* ==========================================================================
   Zamalek Association - Custom Header Styles
   ========================================================================== */

/* --- Single Project Page --- */
.project-single-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    /* Forces the image to fill the space without stretching */
    border-radius: 8px;
    margin-bottom: 30px;
}

.project-meta-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge {
    background-color: #e2e8f0;
    color: #475569;
}

.category-badge {
    background-color: #d1fae5;
    color: #065f46;
}

.project-main-title {
    font-size: 1.875rem;
    color: #000;
    margin-bottom: 20px;
    font-family: 'Newsreader', Georgia, serif;
}

.project-details-meta {
    margin-bottom: 30px;
}

.project-description,
.project-details-meta {
    color: #636894;
    font-size: 0.875rem;
    font-family: 'Instrument Sans', system-ui, sans-serif;
}

/* --- 4-Column Project Grid (Shortcode) --- */
.zamalek-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 25px;
}

.project-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    transform: translateY(-5px);
}

.project-card h3,
.project-card a {
    color: rgb(21, 40, 34);
    font-size: 1.125rem;
}

.project-card:hover a {
    color: #636894 !important;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card-category {
    font-size: 0.7rem;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 4px 12px;
    border-radius: 14px;
}

.card-title {
    margin: 10px 0;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
}

.card-title a {
    display: block;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    text-decoration: none;
}

.card-meta {
    font-size: 0.75rem;
    color: #636894;
    margin: 5px 0 0;
}

/* View More Button below 4-Project Grid */
.project-grid-more-wrapper {
    display: flex;
    justify-content: center;
    margin-block-start: 2rem;
}

.project-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    border: 1.5px solid #354294;
    border-radius: 12px;
    background-color: transparent;
    color: #354294;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-view-more-btn:hover {
    background-color: #354294;
    color: #ffffff;
    transform: translateY(-1px);
}

.project-view-more-btn:focus-visible {
    outline: 3px solid #354294;
    outline-offset: 3px;
}

/* Smoothly transition the image inside our custom card */
.zoom-image-card {
    transition: box-shadow 0.5s ease-in-out;
}

.zoom-image-card img {
    transition: transform 0.5s ease-in-out !important;
}

.zoom-image-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* When the card is hovered, scale the image up by 1.05 */
.zoom-image-card:hover img {
    transform: scale(1.05) !important;
}

/* Optional but recommended: Prevents the image from spilling out of its bounding box when it scales */
.zoom-image-card .elementor-widget-image {
    overflow: hidden;
    border-radius: 8px;
}

/* Contact Form */
form#fluentform_1 {
    font-size: 0.875rem;
}

form#fluentform_1 input {
    font-size: 0.875rem;
}


/* ==========================================================================
   Zamalek Association - Custom Footer Styles
   ========================================================================== */

.z-site-footer {
    background-color: #ffffff;
    padding: 25px 20px;
    border-top: 1px solid #e2e8f0;
    font-family: 'Instrument Sans', system-ui, sans-serif;
}

.z-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

/* Left: Copyright Text */
.z-footer-left p {
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Right: Social Icons */
.z-footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.z-footer-right a {
    color: rgb(87, 117, 107);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.text-foreground {
    color: rgb(21, 40, 34);
}

/* ==========================================================================
   Mobile Responsiveness for Footer
   ========================================================================== */

@media (max-width: 768px) {
    .z-footer-container {
        flex-direction: column-reverse;
        /* Puts socials on top, copyright on bottom on mobile */
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   Marquee Widget (Full-Color Linked Sponsor Logos & Responsive Vertical Stack)
   ========================================================================== */

.sponsor-marquee {
    display: flex;
    overflow: clip;
    width: 100%;
    padding: 24px 0;
    direction: ltr; /* Keeps horizontal scroll math identical in both EN (LTR) and AR (RTL) */
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 60px;
    padding-inline: 30px;
}

@media screen and (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .marquee-group {
        animation: scroll-marquee 22s linear infinite;
    }

    .sponsor-marquee:is(:hover, :focus-within) .marquee-group {
        animation-play-state: paused;
    }
}

@media screen and (min-width: 769px) and (prefers-reduced-motion: reduce) {
    .marquee-clone {
        display: none !important;
    }
}

.sponsor-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sponsor-logo-link:hover {
    opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
    .sponsor-logo-link:hover {
        transform: scale(1.04);
    }
}

.sponsor-logo-link:focus-visible {
    outline: 3px solid #354294;
    outline-offset: 4px;
    border-radius: 6px;
}

.sponsor-marquee img {
    height: 52px;
    max-width: 230px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 1;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Responsive (Tablet/Mobile <= 768px): Stack sponsor logos vertically centered on the page */
@media screen and (max-width: 768px) {
    .sponsor-marquee {
        display: block;
        overflow: visible;
        padding: 16px 0;
    }

    .marquee-group {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: 100%;
        gap: 28px;
        padding-inline: 0;
    }

    .marquee-clone {
        display: none !important;
    }

    .sponsor-marquee img {
        height: 48px;
        max-width: min(220px, 75vw);
    }
}

/* Arabic Top Slideshow Headers: Bold & Clear */
div#n2-ss-3 div[class*="n2-font-"][class*="-hover"] {
    font-weight: 700 !important;
}

/* Support Us Primary Button: Ensure Arrow Appears After Text */
#Support .elementor-widget-button .elementor-button-content-wrapper {
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Project Archive Filters (Modern & Neat)
   ========================================================================== */

/* 1. Main Container: Creates the large gap before the project cards */
.project-archive-filters {
    margin-bottom: 50px;
    /* The gap between the dropdowns and the grid */
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 2. The Filter Box: Adds a modern, floating card look */
.project-filter-form {
    display: flex;
    gap: 20px;
    /* The space between the two dropdowns */
    flex-wrap: wrap;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    align-items: center;
    justify-content: center;
}

/* 3. Dropdown Wrappers */
.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    /* Gives the dropdowns a nice, substantial width */
}

/* 4. The Dropdown Menus */
.filter-group select {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #1a202c;
    padding: 12px 45px 12px 20px;
    /* Plenty of internal padding so text isn't cramped */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    cursor: pointer;

    /* Removes the ugly default browser styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Injects a crisp, custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;

    transition: all 0.3s ease;
}

/* 5. Hover & Click Effects */
.filter-group select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.filter-group select:focus {
    outline: 2px solid transparent;
    border-color: #354294;
    box-shadow: 0 0 0 3px rgba(53, 66, 148, 0.18);
    background-color: #ffffff;
}

/* 6. Mobile Responsiveness */
@media (max-width: 600px) {
    .project-filter-form {
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }

    .filter-group,
    .filter-group select {
        width: 100%;
        /* Makes them stack perfectly edge-to-edge on phones */
    }
}

/* ==========================================================================
   Project Pagination Styling
   ========================================================================== */
.project-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #354294;
    text-decoration: none;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.project-pagination .page-numbers.current {
    background: #354294;
    color: #ffffff;
    border-color: #354294;
    font-weight: 700;
    outline: 2px solid transparent;
}

.project-pagination .page-numbers:hover:not(.current) {
    background: #eef0ff;
    border-color: #354294;
    color: #222c6b;
}

.project-pagination .page-numbers:focus-visible {
    outline: 3px solid #354294;
    outline-offset: 3px;
}

/* ==========================================================================
   Single Project Page Background & Navigation
   ========================================================================== */

/* Changes the background color specifically for the single project pages */
body.single-project {
    background-color: #f5f6ff;
    margin: 0;
    padding: 0;
}

.project-single-container {
    background-color: #f5f6ff;
    margin: 0 auto;
    padding-block: 30px 50px;
    padding-inline: 20px;
}

/* Flex container to push the buttons to opposite sides */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: safe center;
    margin-bottom: 25px;
    /* Space between buttons and the image */
    width: 100%;
}

/* Simple Text Link Styling */
.project-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: transparent;
    /* Removes the solid background */
    color: #354294;
    /* Applies the blue color to the text and arrows */
    padding: 5px 0;
    /* Minimal padding just to keep a good click target */
    text-decoration: none;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    /* Made slightly bolder so the text stands out */
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.project-navigation a:hover {
    color: #26306b;
    /* Darkens the text slightly on hover */
    background-color: transparent;
}

.project-navigation a:focus-visible {
    outline: 3px solid #354294;
    outline-offset: 3px;
}

/* Slide the arrows slightly outward on hover (adapting to LTR & RTL) */
.nav-previous a:hover {
    transform: translateX(-4px);
}

.nav-next a:hover {
    transform: translateX(4px);
}

body.rtl .nav-previous a:hover {
    transform: translateX(4px);
}

body.rtl .nav-next a:hover {
    transform: translateX(-4px);
}

/* ==========================================================================
   Client Feedback Fixes (Typography, Spacing, Overrides)
   ========================================================================== */

/* Fix Arabic typography (remove letter-spacing for RTL text, especially subtitles/headings) */
body.rtl .elementor-heading-title,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl .elementor-widget-text-editor,
body.rtl p,
body.rtl span,
body.rtl a {
    letter-spacing: normal !important;
    font-variant-ligatures: normal !important;
}

/* Lower names under team member images (increase margin) */
.widget-image-caption,
.wp-caption-text {
    margin-top: 15px !important;
}

/* Remove green color from phone number links (Force them to inherit the surrounding text color) */
a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* Inline Text Links: Bold, Blue, and Underlined across Elementor content & Single Project pages */
.elementor-widget-text-editor a:not(.elementor-button):not([href^="tel:"]),
.project-description a:not([href^="tel:"]) {
    color: #354294 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}

.elementor-widget-text-editor a:not(.elementor-button):not([href^="tel:"]):hover,
.project-description a:not([href^="tel:"]):hover {
    color: #222c6b !important;
}

.elementor-widget-text-editor a:not(.elementor-button):not([href^="tel:"]):focus-visible,
.project-description a:not([href^="tel:"]):focus-visible {
    outline: 3px solid #354294;
    outline-offset: 3px;
}

/* Ensure headings wrapped in links keep heading color & no underline */
.e-heading-base a {
    color: inherit;
    text-decoration: none;
}

/* Advocacy Section: Keep Icon-Box Badges Inline on Mobile & Reduce Heading-to-Photo Space */
#Advocacy .elementor-widget-icon-box .elementor-icon-box-wrapper {
    flex-direction: row !important;
    align-items: safe center !important;
    text-align: start !important;
}

#Advocacy .elementor-widget-icon-box .elementor-icon-box-content {
    min-inline-size: 0;
}

@media screen and (min-width: 320px) {
    #Advocacy .elementor-widget-icon-box .elementor-icon-box-title {
        white-space: nowrap;
    }
}

#Advocacy .zoom-image-card {
    row-gap: 14px !important;
}

#Advocacy .zoom-image-card>.e-con:has(.e-heading-base) {
    min-height: 0 !important;
    width: 100% !important;
}

#Advocacy .zoom-image-card h3.e-heading-base {
    height: auto !important;
    min-height: 0 !important;
    margin-block: 0 !important;
    line-height: 1.25;
}

#Advocacy .zoom-image-card .elementor-widget-image,
#Advocacy .zoom-image-card .elementor-widget-image figure,
#Advocacy .zoom-image-card .elementor-widget-image .wp-caption {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0;
}

#Advocacy .zoom-image-card .elementor-widget-image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* Advocacy Callout Sub-Cards: Consistent Spacing & Logical Indentation */
#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon) {
    padding: 20px !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: center !important;
}

#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon)>.elementor-widget-icon,
#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon)>.elementor-widget-icon>.elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon) .e-heading-base {
    margin-block: 0 !important;
}

#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon)>.e-con {
    margin-block-start: 0 !important;
    padding-block: 0 !important;
    padding-inline-start: 60px !important;
    padding-inline-end: 0 !important;
}

#Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon)>.e-con p {
    margin-block: 0;
}

@media screen and (max-width: 1024px) {
    #Advocacy .zoom-image-card>.e-con:has(> .elementor-widget-icon)>.e-con {
        padding-inline-start: 0 !important;
        padding-inline-end: 0 !important;
    }
}

/* Contact Section: Match Address & Phone Font Size with Intro Text Above */
#Contact .elementor-widget-icon-box .elementor-icon-box-title,
#Contact .elementor-widget-icon-box .elementor-icon-box-title a {
    font-size: 1rem !important;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Media Queries (Tablet & Mobile)
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .zamalek-projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .project-hero-image img,
    .project-main-slider img {
        height: 350px;
    }

    /* Header Responsive / Hamburger Menu */
    .z-header-left .z-logo-wrapper {
        width: 24px;
        height: 40px;
        flex: 0 0 24px;
    }

    .z-site-title {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.2;
    }

    .z-mobile-toggle {
        display: block !important;
    }

    .z-header-center {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 20px 24px;
        border-top: 1px solid #e2e8f0;
        flex-direction: column;
        align-items: flex-start;
        z-index: 9999;
    }

    .z-site-header {
        position: sticky;
        /* Acts as anchor for absolute menu */
    }

    .z-header-container {
        position: static;
        /* Let the menu span full width of the header */
    }

    .z-header-center.z-menu-active {
        display: flex;
    }

    .z-main-navigation {
        width: 100%;
    }

    .z-main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: flex-start;
    }

    .z-main-navigation li {
        width: 100%;
    }

    .z-main-navigation a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1.1rem;
        width: 100%;
    }

    /* Hide Social Icons on smaller screens to make room for logo + hamburger */
    .z-header-right {
        display: none !important;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .zamalek-projects-grid {
        grid-template-columns: 1fr !important;
    }

    .project-hero-image img,
    .project-main-slider img {
        height: 250px;
    }

    .project-single-container {
        padding: 0 15px;
    }

    .project-main-title {
        font-size: 1.5rem;
    }

    .project-filter-form {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
        width: 100%;
    }
}