/*--------------------------------------------------------------
# Arabic typography + RTL text (loaded site-wide via cerez.css)
----------------------------------------------------------------*/
@import url("aljazeera-letters.css");

/*--------------------------------------------------------------
#13.1 	Çerez Politikasi (banner disabled)
----------------------------------------------------------------*/
#okCookie {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Category tiles (home + projects): equal flex columns, visible gutters */
/* Theme .mt-70 uses margin-top: -70px; cancel it here so tiles do not overlap the hero or subheader */
#section-services .row.mt-70 {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 48px;
    padding-bottom: 56px;
    column-gap: 24px;
    row-gap: 24px;
    align-items: stretch;
}

#section-services .row.mt-70 > a,
#section-services .row.mt-70 > div[class*="col-"] {
    float: none !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Homepage only: three tiles, equal width; center tile slightly taller */
#section-services.home-category-strip .row.mt-70 {
    align-items: center;
}

@media (min-width: 992px) {
    #section-services.home-category-strip .row.mt-70 > div[class*="col-"] {
        flex: 1 1 0;
        min-width: 0;
    }

    #section-services.home-category-strip .row.mt-70 > *:nth-child(1) .shadow-soft,
    #section-services.home-category-strip .row.mt-70 > *:nth-child(3) .shadow-soft {
        min-height: 320px;
    }

    #section-services.home-category-strip .row.mt-70 > *:nth-child(2) .shadow-soft {
        min-height: 360px;
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
        z-index: 1;
        position: relative;
    }
}

@media (max-width: 991px) {
    #section-services.home-category-strip .row.mt-70 {
        row-gap: 16px;
    }

    #section-services.home-category-strip .row.mt-70 > div[class*="col-"] {
        flex: 1 1 100%;
        width: 100%;
    }

    #section-services.home-category-strip .row.mt-70 > *:nth-child(1) .shadow-soft,
    #section-services.home-category-strip .row.mt-70 > *:nth-child(3) .shadow-soft {
        min-height: 260px;
    }

    #section-services.home-category-strip .row.mt-70 > *:nth-child(2) .shadow-soft {
        min-height: 290px;
    }
}

#section-services .row.mt-70 > a > div[class*="col-"] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    float: none !important;
    padding-left: 0;
    padding-right: 0;
}

#section-services .row.mt-70 .shadow-soft {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    width: 100%;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#section-services .row.mt-70 > a:hover .shadow-soft,
#section-services .row.mt-70 > div[class*="col-"]:hover .shadow-soft {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
    transform: translateY(-2px);
}

#section-services .row.mt-70 .shadow-soft .padding40 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Homepage gap: section-services -> section-custom-1 */
#section-services.no-bottom + #section-custom-1 {
    margin-top: 60px !important;
}

/* Projects hub title tiles: drop inline padding hacks, keep titles readable */
#section-services .row.mt-70 .shadow-soft .padding40.text-center {
    align-items: center;
    text-align: center;
    padding: 40px 22px;
}

#section-services .row.mt-70 .shadow-soft .padding40.text-center h3 {
    margin: 0;
    padding-top: 0 !important;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 991px) {
    #section-services .row.mt-70 > a,
    #section-services .row.mt-70 > div[class*="col-"] {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    #section-services .row.mt-70 .shadow-soft {
        min-height: 260px;
    }
}

/* ==================================================================
   Project / product cards — canonical pattern (office-projects standard)
   picframe → a → overlay → pf_text → project-name; img as sibling
   Default: image only | Hover: rgba(0,0,0,.78) + white uppercase name | 4:3 cover
   ================================================================== */
#content #gallery .item .picframe,
#section-portfolio-2 #gallery .item .picframe,
.de-gallery .item .picframe,
.de-gallery.pf_4_cols .item .picframe {
    position: relative !important;
    overflow: hidden !important;
    background: #111 !important;
}

#content #gallery .item .picframe > a,
#section-portfolio-2 #gallery .item .picframe > a,
.de-gallery .item .picframe > a,
.de-gallery.pf_4_cols .item .picframe > a {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
}

#content #gallery .item .picframe img,
#section-portfolio-2 #gallery .item .picframe img,
.de-gallery .item .picframe img,
.de-gallery.pf_4_cols .item .picframe img {
    position: relative !important;
    z-index: 0 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.35s ease, opacity 0.35s ease !important;
}

#content #gallery .item .picframe span.overlay,
#content #gallery .item .picframe .overlay,
#section-portfolio-2 #gallery .item .picframe span.overlay,
#section-portfolio-2 #gallery .item .picframe .overlay,
.de-gallery .item .picframe span.overlay,
.de-gallery .item .picframe .overlay,
.de-gallery.pf_4_cols .item .picframe span.overlay,
.de-gallery.pf_4_cols .item .picframe .overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
    opacity: 1 !important;
    transition: background-color 0.25s ease !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#content #gallery .item .picframe .pf_text,
#section-portfolio-2 #gallery .item .picframe .pf_text,
.de-gallery .item .picframe .pf_text,
.de-gallery.pf_4_cols .item .picframe .pf_text {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 14px 16px !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease !important;
    pointer-events: none !important;
}

#content #gallery .item .picframe .project-name,
#section-portfolio-2 #gallery .item .picframe .project-name,
.de-gallery .item .picframe .project-name,
.de-gallery.pf_4_cols .item .picframe .project-name {
    color: #fff !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
}

#content #gallery .item .picframe:hover span.overlay,
#content #gallery .item .picframe:hover .overlay,
#section-portfolio-2 #gallery .item .picframe:hover span.overlay,
#section-portfolio-2 #gallery .item .picframe:hover .overlay,
.de-gallery .item .picframe:hover span.overlay,
.de-gallery .item .picframe:hover .overlay,
.de-gallery.pf_4_cols .item .picframe:hover span.overlay,
.de-gallery.pf_4_cols .item .picframe:hover .overlay {
    background: rgba(0, 0, 0, 0.78) !important;
}

#content #gallery .item .picframe:hover .pf_text,
#section-portfolio-2 #gallery .item .picframe:hover .pf_text,
.de-gallery .item .picframe:hover .pf_text,
.de-gallery.pf_4_cols .item .picframe:hover .pf_text {
    opacity: 1 !important;
}

#content #gallery .item .picframe:hover img,
#section-portfolio-2 #gallery .item .picframe:hover img,
.de-gallery .item .picframe:hover img,
.de-gallery.pf_4_cols .item .picframe:hover img {
    transform: scale(1.03) !important;
}

/* Touch/tablet: same overlay reveal as desktop hover */
@media (max-width: 991px) {
    #content #gallery .item .picframe:active span.overlay,
    #content #gallery .item .picframe:active .overlay,
    #section-portfolio-2 #gallery .item .picframe:active span.overlay,
    #section-portfolio-2 #gallery .item .picframe:active .overlay,
    .de-gallery .item .picframe:active span.overlay,
    .de-gallery .item .picframe:active .overlay,
    .de-gallery.pf_4_cols .item .picframe:active span.overlay,
    .de-gallery.pf_4_cols .item .picframe:active .overlay,
    #content #gallery .item .picframe:focus-within span.overlay,
    #content #gallery .item .picframe:focus-within .overlay,
    #section-portfolio-2 #gallery .item .picframe:focus-within span.overlay,
    #section-portfolio-2 #gallery .item .picframe:focus-within .overlay,
    .de-gallery .item .picframe:focus-within span.overlay,
    .de-gallery .item .picframe:focus-within .overlay,
    .de-gallery.pf_4_cols .item .picframe:focus-within span.overlay,
    .de-gallery.pf_4_cols .item .picframe:focus-within .overlay {
        background: rgba(0, 0, 0, 0.78) !important;
    }

    #content #gallery .item .picframe:active .pf_text,
    #section-portfolio-2 #gallery .item .picframe:active .pf_text,
    .de-gallery .item .picframe:active .pf_text,
    .de-gallery.pf_4_cols .item .picframe:active .pf_text,
    #content #gallery .item .picframe:focus-within .pf_text,
    #section-portfolio-2 #gallery .item .picframe:focus-within .pf_text,
    .de-gallery .item .picframe:focus-within .pf_text,
    .de-gallery.pf_4_cols .item .picframe:focus-within .pf_text {
        opacity: 1 !important;
    }
}


/* Header logo: fit the main bar (~80px total header) — design file tips in project notes / brief:
   Target artwork: horizontal, transparent PNG/SVG; safe box ~280×56px @1x (560×112 @2x).
   Display caps: max-height below; max-width prevents crowding the menu on tablets. */
header #logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    max-width: min(340px, 46vw);
    flex-shrink: 1;
    /* Keep bar height stable while making logo larger: less top inset + taller logo cap */
    padding-top: 10px;
    box-sizing: border-box;
}

header #logo > a {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    line-height: 0;
}

header #logo .logo,
header #logo img {
    width: auto !important;
    max-width: 100%;
    max-height: 44px;
    height: auto !important;
    padding-top: 0 !important;
    margin: 0;
    object-fit: contain;
    object-position: left top;
    vertical-align: top;
}

header.smaller #logo {
    min-height: 0;
    max-width: min(300px, 50vw);
    padding-top: 10px;
}

header.smaller #logo .logo,
header.smaller #logo img {
    max-height: 38px;
}

/* Homepage slider: no navigation arrows on any device */
#section-slider .tparrows,
#section-slider .tp-leftarrow,
#section-slider .tp-rightarrow,
.fullwidthbanner-container .tparrows {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Desktop: align logo on the same row/level as main menu text */
@media (min-width: 992px) {
    header > .container > .row > .col-md-12 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 80px;
    }

    header div#logo,
    header #logo {
        float: none !important;
        height: auto !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        align-self: center;
    }

    header #logo > a {
        align-items: center;
    }

    header #logo .logo,
    header #logo img {
        padding-top: 0 !important;
        margin-top: 0 !important;
        object-position: center center;
        vertical-align: middle;
    }

    header nav {
        float: none !important;
        margin-left: auto;
        align-self: center;
        display: flex;
        align-items: center;
    }

    header #mainmenu {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    header #mainmenu > li {
        float: none;
        display: flex;
        align-items: center;
    }

    header #mainmenu > li > a {
        display: flex;
        align-items: center;
    }

    /* Desktop dropdown panels: stay inside viewport, clear spacing from edges */
    header,
    header > .container,
    header > .container > .row,
    header > .container > .row > .col-md-12,
    header nav,
    header #mainmenu {
        overflow: visible !important;
    }

    header > .container {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    header #mainmenu > li.dropdown {
        position: relative;
    }

    header #mainmenu > li.dropdown > .dropdown-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        min-width: 220px !important;
        width: max-content !important;
        max-width: min(360px, calc(100vw - 48px)) !important;
        box-sizing: border-box;
        padding: 8px 0 !important;
        margin-top: 2px;
        z-index: 10050 !important;
        overflow: visible !important;
        background: rgba(0, 0, 0, 0.88) !important;
        background-color: rgba(0, 0, 0, 0.88) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    header #mainmenu > li.dropdown > .dropdown-content a {
        padding: 10px 18px !important;
        color: #fff !important;
    }

    header #mainmenu > li.dropdown > .dropdown-content a:hover,
    header #mainmenu > li.dropdown > .dropdown-content a:focus {
        color: #CD5B41 !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
    }

    header #mainmenu > li.dropdown > .dropdown-content a::after {
        flex-shrink: 0;
    }

    /* EN Projects menu: fit "Cultural and Architectural Projects" + trailing dot */
    html[lang="en"] header #mainmenu > li.dropdown > .dropdown-content:has(a[href*="office-projects"]) {
        min-width: 300px !important;
        max-width: min(480px, calc(100vw - 48px)) !important;
    }

    html[lang="en"] header #mainmenu > li.dropdown > .dropdown-content:has(a[href*="office-projects"]) a {
        padding-right: 26px !important;
    }

    /* Language + right-side items: anchor panel to the right so it does not spill off-screen */
    header #mainmenu > li.dropdown:last-child > .dropdown-content,
    header #mainmenu > li.dropdown:nth-last-child(5) > .dropdown-content,
    header #mainmenu > li.dropdown:nth-last-child(6) > .dropdown-content {
        left: auto !important;
        right: 0 !important;
    }

    header #mainmenu li.dropdown:hover > .dropdown-content {
        display: block !important;
    }
}

@media (min-width: 992px) {
    #wrapper {
        overflow: visible !important;
    }
}

@media (max-width: 991px) {
    header > .container > .row > .col-md-12 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        min-height: 52px;
    }

    header #logo {
        display: flex;
        align-items: center;
        float: none !important;
        min-height: 0;
        max-width: min(300px, 64vw);
        padding-top: 0 !important;
        margin: 0;
        flex: 1 1 auto;
        align-self: center;
    }

    header #logo > a {
        align-items: center;
    }

    header #logo .logo,
    header #logo img {
        max-height: 42px;
        padding-top: 0 !important;
    }

    #menu-btn {
        float: none !important;
        margin: 0 !important;
        align-self: center;
    }
}

/* Arabic project names: keep restaurant-projects card style, no uppercase */
html.lang-ar #gallery .item .picframe .project-name {
    text-transform: none !important;
    letter-spacing: 0.4px !important;
}

/*
 * Subheader/banner sizing (all pages with #subheader; homepage excluded — no #subheader there).
 * Each height matches the uploaded image aspect ratio (1024px reference width).
 * background-size: 100% auto shows the full image without crop, stretch, or zoom.
 */
#subheader {
    -webkit-background-size: 100% auto !important;
    -moz-background-size: 100% auto !important;
    -o-background-size: 100% auto !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-attachment: scroll !important;
    padding-top: 0 !important;
    padding-bottom: 24px !important;
    min-height: 0 !important;
    max-height: none;
    overflow: visible;
    box-sizing: content-box;
    margin-bottom: 0;
    background-color: #ffffff;
    /* subheader-1.webp — 1024x265 (default, blog posts) */
    height: calc(100vw * 265 / 1024);
}

/* subheader-1.webp on sections tagged page-projects (manufacturer / interior — no body class) */
section#subheader.page-projects {
    height: calc(100vw * 265 / 1024);
}

/* subheader-16.webp — 1024x184 (project & product listing pages) */
body.page-projects #subheader,
body.page-projects-alt #subheader,
section#subheader.page-projects-alt {
    height: calc(100vw * 184 / 1024);
}

/* subheader-14.webp, 1b.webp, 5.webp — 1024x265 */
#subheader.page-urunler,
#subheader.page-blog,
#subheader.page-shop,
.page-urunler #subheader,
.page-blog #subheader,
.page-shop #subheader {
    height: calc(100vw * 265 / 1024);
}

/* subheader-15.webp — 1024x175 (catalog, slimmest standard banner) */
#subheader.page-katalog,
.page-katalog #subheader {
    height: calc(100vw * 175 / 1024);
}

/* subheader-12.webp — 1024x266 (about) */
#subheader.page-about,
.page-about #subheader {
    height: calc(100vw * 266 / 1024);
}

/* subheader-17.webp — 1024x266 (contact) */
#subheader.page-contact,
.page-contact #subheader {
    height: calc(100vw * 266 / 1024);
}

/* residential-projects-subheader.png — 1024x184 */
body.page-residential-projects #subheader,
.page-residential-projects #subheader {
    background-image: url(../images/background/residential-projects-subheader.png);
    -webkit-background-size: 100% auto !important;
    -moz-background-size: 100% auto !important;
    -o-background-size: 100% auto !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    height: calc(100vw * 184 / 1024);
}

/* Keep title/breadcrumb inside proportional banners (theme default margin-top: 80px overflows slim strips) */
#subheader h1 {
    margin-top: clamp(10px, 8vw, 80px) !important;
    margin-bottom: 0.15em;
    line-height: 1.15;
}

#subheader .crumb {
    margin-top: 0;
    margin-bottom: 0;
}

@media only screen and (max-width: 991px) {
    #subheader {
        -webkit-background-size: 100% auto !important;
        -moz-background-size: 100% auto !important;
        -o-background-size: 100% auto !important;
        background-size: 100% auto !important;
        background-attachment: scroll !important;
    }
}

@media only screen and (max-width: 767px) {
    #subheader {
        -webkit-background-size: 100% auto !important;
        -moz-background-size: 100% auto !important;
        -o-background-size: 100% auto !important;
        background-size: 100% auto !important;
        background-attachment: scroll !important;
        padding-bottom: 24px !important;
    }
}

/* Main footer: logo intro + three link columns */
footer .footer-main-links {
    padding-bottom: 8px;
}
footer .footer-main-links > [class*="col-md-"]:first-child {
    color: #c7c7c7;
    line-height: 1.8;
    font-size: 13px;
}
footer .footer-main-links .logo-small {
    margin-bottom: 10px;
}
footer .footer-main-links .widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
footer .footer-main-links .widget h3:not(:first-child) {
    margin-top: 32px;
}
footer .footer-main-links .widget h3 {
    transition: color 0.2s ease;
}
footer .footer-main-links .widget:hover h3 {
    color: #CD5B41 !important;
}
footer .footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer .footer-link-list li {
    margin: 0 0 4px 0;
    line-height: 1.45;
}
footer .footer-link-list a {
    transition: color 0.2s ease;
}
footer .footer-link-list a:hover,
footer .footer-link-list a:focus,
footer .footer-link-list a:focus-visible,
footer .footer-link-list a:active {
    color: #CD5B41 !important;
}

/* Subfooter strip: roomier than theme default was overridden before — keep tall, breathable bar */
footer .subfooter {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Catalog pages: footer must sit flush — #content default 90px bottom padding leaves a white gap under subfooter */
body.page-katalog #content,
#wrapper.page-katalog #content,
#content:has(> footer) {
    padding-bottom: 0 !important;
}

body.page-katalog footer,
#wrapper.page-katalog footer,
#content > footer {
    margin-bottom: 0 !important;
}

/* Catalog cover: natural 16:9 frame — no fixed box, crop, or letterbox bars */
.catalog-cover-block {
    padding: 20px 0 30px;
    width: 100%;
    clear: both;
}

.catalog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.catalog-cover-link {
    display: block;
    line-height: 0;
    width: 100%;
}

.catalog-cover-img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-katalog .catalog-cover-img {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    object-fit: unset !important;
}

body.page-katalog .catalog-cover-block .imgAltiYazi,
body.page-katalog .catalog-cover-block .catalog-download,
body.page-katalog .col-md-4 .imgAltiYazi {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center !important;
}

html.lang-ar body.page-katalog .catalog-cover-block .imgAltiYazi,
html.lang-ar body.page-katalog .catalog-cover-block .catalog-download,
html.lang-ar body.page-katalog .col-md-4 .imgAltiYazi,
html[lang="ar"] body.page-katalog .catalog-cover-block .imgAltiYazi,
html[lang="ar"] body.page-katalog .catalog-cover-block .catalog-download,
html[lang="ar"] body.page-katalog .col-md-4 .imgAltiYazi {
    text-align: center !important;
}

.subfooter .col-md-6 {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* AR subfooter only: copyright flush left; icons column unchanged on the right */
html.lang-ar footer .subfooter .row > .col-md-6:first-child,
html[lang="ar"] footer .subfooter .row > .col-md-6:first-child {
    text-align: left !important;
    direction: ltr;
    padding-left: 15px;
    padding-right: 15px;
}

.subfooter .col-md-6.text-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px 18px;
    overflow: visible;
}

/* Let legal + icons wrap instead of one squeezed line + horizontal scrollbar */
.subfooter .social-icons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    float: none;
    max-width: 100%;
    row-gap: 10px;
}

/* Legal text links (PDPL / cookie / privacy) — relative hrefs; social icons use https:// */
footer .subfooter .social-icons > a:not([href^="http"]) {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    color: #b8b8b8 !important;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}
footer .subfooter .social-icons > a:not([href^="http"]):hover,
footer .subfooter .social-icons > a:not([href^="http"]):focus-visible {
    color: #cd5b41 !important;
}

/* Footer icon row: phone + Font Awesome links only (exclude plain text policy links). */
@keyframes mudanya-footer-icon-breathe {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -3px, 0);
    }
}

footer .subfooter a.footer-phone-tel,
footer .subfooter .social-icons > a[href^="http"] {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    transform-origin: center center;
    animation: mudanya-footer-icon-breathe 2.4s ease-in-out infinite;
}

footer .subfooter a.footer-phone-tel i,
footer .subfooter .social-icons > a[href^="http"] i {
    color: inherit !important;
}

/*
  Theme (style.min.css): .social-icons i:hover { background:#fff; color:#333; }
  That draws a white square behind FB etc. Phone is outside .social-icons — clear it here.
*/
footer .subfooter .social-icons i.fa,
footer .subfooter .social-icons i.fa:hover,
footer .subfooter .social-icons a i.fa:hover,
footer .subfooter .social-icons a:hover i.fa,
footer .subfooter .social-icons a:focus i.fa,
footer .subfooter .social-icons a:focus-visible i.fa,
footer .subfooter .social-icons a:active i.fa {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* TikTok + Behance: inline SVG inside fa-lg wrapper — same sizing/color as Instagram */
footer .subfooter .social-icons i.mudanya-subfooter-svg {
    display: inline-block !important;
    font-size: 1.33333333em !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-style: normal !important;
    vertical-align: middle !important;
    color: inherit !important;
}

footer .subfooter .social-icons i.mudanya-subfooter-svg:before {
    content: none !important;
    display: none !important;
}

footer .subfooter .social-icons i.mudanya-subfooter-svg svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Behance "Be" wordmark: same cap-height as fa-lg icons; width follows logo ratio */
footer .subfooter .social-icons i.mudanya-subfooter-behance {
    font-size: 1.33333333em !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

footer .subfooter .social-icons i.mudanya-subfooter-behance svg {
    display: block;
    height: 0.84em;
    width: 1.25em;
    fill: currentColor;
}

/* Hide legacy Font Awesome behance glyph if static HTML loads before JS */
footer .subfooter .social-icons i.fa-behance:before {
    content: none !important;
    display: none !important;
}

footer .subfooter .social-icons a:hover i.mudanya-subfooter-svg,
footer .subfooter .social-icons a:focus i.mudanya-subfooter-svg,
footer .subfooter .social-icons a:active i.mudanya-subfooter-svg {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

footer .subfooter .social-icons i.fa:hover,
footer .subfooter .social-icons a:hover i.fa,
footer .subfooter .social-icons a:focus i.fa,
footer .subfooter .social-icons a:active i.fa {
    color: #CD5B41 !important;
}

footer .subfooter a.footer-phone-tel:hover,
footer .subfooter a.footer-phone-tel:focus,
footer .subfooter a.footer-phone-tel:focus-visible,
footer .subfooter a.footer-phone-tel:active,
footer .subfooter .social-icons > a[href^="http"]:hover,
footer .subfooter .social-icons > a[href^="http"]:focus,
footer .subfooter .social-icons > a[href^="http"]:focus-visible,
footer .subfooter .social-icons > a[href^="http"]:active {
    color: #CD5B41 !important;
    text-decoration: none;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    footer .subfooter a.footer-phone-tel,
    footer .subfooter .social-icons > a[href^="http"] {
        animation: none !important;
    }
}

@media (max-width: 991px) {
    footer .subfooter .col-md-6.text-right {
        justify-content: flex-start;
        text-align: left !important;
    }
    .subfooter .social-icons {
        justify-content: flex-start;
    }
}

/* ------------------------------------------------------------------
   Clicks: no focus outline / tap flash on links & chrome (logo, nav).
   Form fields keep Bootstrap focus styling (glow), only outline cleared.
   ------------------------------------------------------------------ */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
.btn,
#menu-btn,
summary,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
#menu-btn:focus,
#menu-btn:active,
summary:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
    outline: none !important;
}

button::-moz-focus-inner {
    border: 0;
}

/* Header logo → homepage: no ring around image */
#logo > a {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

#logo > a:focus,
#logo > a:active,
#logo > a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

#logo .logo,
#logo img.logo {
    border: 0;
    display: block;
}

/* Blog listing + articles: show page immediately (style.min.css hides body until preloader). */
body.page-blog {
    display: block !important;
}

html.mudanya-blog-fast body {
    display: block !important;
}

/* Blog listing (en + ar): same card size as post 05 (1024×682), full image visible. */
body.page-blog ul.blog-list .post .post-image {
    width: 100%;
    aspect-ratio: 1024 / 682;
    overflow: hidden;
    display: block;
    line-height: 0;
}

body.page-blog ul.blog-list .post .post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

body.page-blog ul.blog-list .post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Article detail: main column body copy (not blog index cards) */
#content .col-md-8 .blog-list .post .post-text.article-body {
    font-size: 17px;
    line-height: 1.85;
}

#content .col-md-8 .blog-list .post .post-text.article-body p {
    margin-bottom: 1.15em;
}

#content .col-md-8 .blog-list .post .post-text.article-body .editorial-h2 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.35em;
    margin-bottom: 0.65em;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    #content .col-md-8 .blog-list .post .post-text.article-body {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* Footer first row: double rule between list items (two-line separator) */
footer > .container:first-of-type .widget_recent_post > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

footer > .container:first-of-type .widget_recent_post > ul > li:last-child {
    border-bottom: none;
    box-shadow: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Keep language flag and text on same line with comfortable spacing */
#mainmenu li.dropdown > a.dropbtn {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

#mainmenu li.dropdown > a.dropbtn img {
    display: inline-block;
    flex: 0 0 auto;
}

#mainmenu .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

#mainmenu .dropdown-content a img {
    display: inline-block;
    flex: 0 0 auto;
}

/* Widen language dropdown panel so flag + text fit */
#mainmenu .dropdown-content {
    min-width: 190px !important;
    width: auto !important;
}

/* Our Expertise pages: smaller display size, sharper rendering (no upscale stretch) */
#section-about-us-2 img {
    max-width: 380px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

#section-testimonial #testimonial-carousel .item,
#section-testimonial .de_testi {
    text-align: center;
}

#section-testimonial #testimonial-carousel img,
#section-testimonial .de_testi img {
    max-width: 240px;
    max-height: 170px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 767px) {
    #section-about-us-2 img {
        max-width: 100%;
    }

    #section-testimonial #testimonial-carousel img,
    #section-testimonial .de_testi img {
        max-width: 200px;
        max-height: 150px;
    }
}

/* Mobile menu toggle: four rounded bars, large tap target, no border/box. */
@media (max-width: 992px) {
    #menu-btn {
        display: block !important;
        position: relative;
        float: right;
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        margin: 8px 4px 0 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
        z-index: 10001;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #menu-btn::before {
        content: "" !important;
        display: block;
        position: absolute;
        left: 50%;
        top: 14px;
        transform: translateX(-50%);
        width: 30px;
        height: 5px;
        background: #fff;
        border: none !important;
        border-radius: 999px;
        font-family: inherit !important;
        font-size: 0 !important;
        line-height: 0;
        box-shadow:
            0 7px 0 #fff,
            0 14px 0 #fff,
            0 21px 0 #fff;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    #menu-btn::after {
        content: none !important;
        display: none !important;
    }

    #menu-btn:hover,
    #menu-btn:focus,
    #menu-btn:active,
    #menu-btn.is-open {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #menu-btn:hover::before,
    #menu-btn:active::before,
    #menu-btn.is-open::before {
        background: #CD5B41 !important;
        box-shadow:
            0 7px 0 #CD5B41,
            0 14px 0 #CD5B41,
            0 21px 0 #CD5B41 !important;
    }
}

/* Phone only: header bar, logo left / menu right, vertically centered */
@media (max-width: 767px) {
    header.header-mobile .info {
        display: none !important;
    }

    header.header-mobile,
    header.header-mobile.transparent,
    header.header-mobile.smaller {
        background: #111 !important;
    }

    #wrapper:has(#section-slider) header.header-mobile {
        position: relative !important;
        transform: none !important;
    }

    #wrapper:not(:has(#section-slider)) {
        padding-top: 72px;
    }

    header.header-mobile.mudanya-phone-autohide {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 10000;
        transform: translateY(0);
        transition: transform 0.28s ease;
        will-change: transform;
    }

    header.header-mobile.mudanya-phone-autohide.mudanya-header-hidden {
        transform: translateY(-100%);
    }

    body.mudanya-mobile-menu-open header.header-mobile,
    body.mudanya-mobile-menu-open header.header-mobile.transparent,
    body.mudanya-mobile-menu-open header.header-mobile.mudanya-phone-autohide {
        transform: translateY(0) !important;
        background: #111 !important;
    }

    header.header-mobile,
    header.header-mobile.smaller {
        height: 72px !important;
        min-height: 72px !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile,
    body.mudanya-mobile-menu-open header.header-mobile.smaller {
        height: auto !important;
        min-height: 72px !important;
    }

    header.header-mobile > .container {
        height: 72px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box;
    }

    header.header-mobile > .container > .row {
        height: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    header.header-mobile > .container > .row > .col-md-12 {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        height: 72px;
        min-height: 72px;
        padding-top: 0;
        padding-bottom: 0;
    }

    header.header-mobile div#logo,
    header.header-mobile #logo {
        order: 1;
        flex: 1 1 auto;
        float: none !important;
        max-width: min(260px, 64vw);
        margin-top: 0 !important;
        line-height: 1 !important;
        height: auto !important;
        padding-top: 0 !important;
        display: flex;
        align-items: center;
    }

    header.header-mobile #logo > a {
        display: flex;
        align-items: center;
        line-height: 0;
    }

    header.header-mobile #logo .logo,
    header.header-mobile #logo img {
        max-height: 36px;
        padding-top: 0 !important;
        margin: 0 !important;
        vertical-align: middle;
    }

    header.header-mobile.smaller #logo .logo,
    header.header-mobile.smaller #logo img {
        max-height: 36px;
    }

    header.header-mobile #menu-btn {
        order: 2;
        flex: 0 0 auto;
        align-self: center;
        margin: 0 0 0 auto !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    header.header-mobile nav,
    header.header-mobile #mainmenu,
    body.mudanya-mobile-menu-open header.header-mobile nav,
    body.mudanya-mobile-menu-open header.header-mobile #mainmenu {
        background: #111 !important;
    }

    header.header-mobile nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }

    body.mudanya-mobile-menu-open header.header-mobile {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile > .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile > .container > .row > .col-md-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile #logo {
        padding-left: 18px;
    }

    body.mudanya-mobile-menu-open header.header-mobile #menu-btn {
        margin-right: 14px !important;
    }

    body.mudanya-mobile-menu-open header.header-mobile #mainmenu {
        display: block !important;
        visibility: visible !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 6px 0 10px !important;
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    body.mudanya-mobile-menu-open header.header-mobile nav {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        box-sizing: border-box;
    }

    header.header-mobile #mainmenu > li,
    body.mudanya-mobile-menu-open #mainmenu > li {
        background: #111 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box;
    }

    header.header-mobile #mainmenu > li:last-child,
    body.mudanya-mobile-menu-open #mainmenu > li:last-child {
        border-bottom: none !important;
    }

    header.header-mobile #mainmenu a,
    body.mudanya-mobile-menu-open #mainmenu a {
        color: #f5f5f5 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 14px 20px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        line-height: 1.35 !important;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    body.mudanya-mobile-menu-open #mainmenu > li > a:active,
    body.mudanya-mobile-menu-open #mainmenu li.dropdown.is-expanded > a {
        color: #CD5B41 !important;
        background-color: rgba(205, 91, 65, 0.08) !important;
    }

    body.mudanya-mobile-menu-open #mainmenu .dropdown-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 4px !important;
        left: auto !important;
        right: auto !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.25) !important;
    }

    body.mudanya-mobile-menu-open #mainmenu .dropdown-content a {
        padding: 12px 20px 12px 28px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 1.5px !important;
        color: rgba(255, 255, 255, 0.88) !important;
        text-transform: uppercase !important;
    }

    body.mudanya-mobile-menu-open #mainmenu .dropdown-content a:active {
        color: #CD5B41 !important;
        background-color: rgba(205, 91, 65, 0.1) !important;
    }

    header.header-mobile #mainmenu .dropdown-content,
    body.mudanya-mobile-menu-open #mainmenu .dropdown-content {
        background: rgba(0, 0, 0, 0.25) !important;
    }

    /* Phone: keep readable text inset from screen/card edges */
    #content .container,
    #content > section .container,
    section:not(footer):not(.subfooter):not(#subheader) .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    #section-services.home-category-strip > .container,
    #section-services:not(.home-category-strip) > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #section-services .row.mt-70 .shadow-soft .padding40,
    #section-services .row.mt-70 .shadow-soft .padding40.overlay60,
    .padding40.overlay60 {
        padding: 28px 22px !important;
        box-sizing: border-box;
    }

    #content p,
    #content li,
    #content .intro,
    #content .widget,
    #content .post-text,
    #content .project-detail-text,
    #content .box-icon-simple .text,
    section .inner-padding,
    .side-bg .text,
    #section-custom-1 .container,
    #section-custom-2 .container {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .project-detail-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-blog ul.blog-list .post-text {
        padding-right: 8px !important;
    }

    header.header-mobile #menu-btn::before {
        top: 11px;
        width: 26px;
        height: 4px;
        box-shadow:
            0 6px 0 #fff,
            0 12px 0 #fff,
            0 18px 0 #fff;
    }

    header.header-mobile #menu-btn:hover::before,
    header.header-mobile #menu-btn:active::before,
    header.header-mobile #menu-btn.is-open::before {
        box-shadow:
            0 6px 0 #CD5B41,
            0 12px 0 #CD5B41,
            0 18px 0 #CD5B41 !important;
    }
}

/* ==================================================================
   Mobile + tablet responsive fixes (max-width: 991px / 767px only).
   Desktop (min-width: 992px) is unchanged.
   ================================================================== */

@media (max-width: 991px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    img:not(#section-slider img),
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }

    .container {
        max-width: 100%;
    }

    /* Mobile nav: full-width dropdowns, touch-friendly links */
    #mainmenu .dropdown-content {
        width: 100% !important;
        max-width: none !important;
        left: auto !important;
        right: auto !important;
        position: static !important;
        box-sizing: border-box;
    }

    #mainmenu a {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Subheader: show crumbs, fix .proje-liste-p-h1 overflow on slim banners */
    #subheader {
        height: auto !important;
        min-height: calc(100vw * 265 / 1024);
        padding-bottom: 28px !important;
        overflow: visible;
    }

    body.page-projects #subheader,
    body.page-projects-alt #subheader,
    section#subheader.page-projects-alt,
    body.page-residential-projects #subheader,
    .page-residential-projects #subheader {
        min-height: calc(100vw * 184 / 1024);
    }

    #subheader.page-katalog,
    .page-katalog #subheader {
        min-height: calc(100vw * 175 / 1024);
    }

    #subheader .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    #subheader .container > .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: clamp(10px, 3.5vw, 24px);
        padding-bottom: 6px;
        box-sizing: border-box;
    }

    #subheader h1 {
        order: 1;
        float: none !important;
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    #subheader .crumb {
        order: 2;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 6px;
        float: none !important;
        clear: both;
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 0;
        padding: 0 0 4px;
        font-size: 11px;
        line-height: 1.5;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        list-style: none;
    }

    #subheader .crumb li {
        display: inline;
        margin: 0;
        padding: 0;
    }

    #subheader .crumb .sep {
        margin: 0 2px;
        opacity: 0.75;
    }

    #subheader .crumb a {
        display: inline;
        word-break: break-word;
    }

    #subheader .proje-liste-p-h1 {
        order: 1;
        float: none !important;
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        padding-right: 0 !important;
        font-size: clamp(16px, 4.5vw, 22px) !important;
        letter-spacing: 1px !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Project / product galleries: reset Isotope positioning only (keep card pattern) */
    #gallery,
    #section-portfolio-2 #gallery {
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }

    #gallery > .item,
    #section-portfolio-2 #gallery > .item,
    #gallery > [class*="col-"].item,
    #section-portfolio-2 #gallery > [class*="col-"].item,
    .de-gallery > .item,
    .de-gallery > [class*="col-"].item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Project / product detail: stack columns */
    #section-services .content > .col-lg-6,
    #section-services .content > .col-lg-12 {
        width: 100%;
        float: none;
    }

    #section-services .content > .col-lg-6 + .col-lg-6 {
        margin-top: 20px;
    }

    /* Global readable text inset (not footer) */
    #content .container,
    header .container,
    section:not(footer):not(.subfooter) .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    #content p,
    #content li,
    #content .intro,
    #content .widget,
    #content .post-text,
    #content .project-detail-text {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Homepage hero slider: natural crop on phone/tablet */
    #section-slider.fullwidthbanner-container,
    #section-slider #revolution-slider,
    #section-slider #revolution-slider ul,
    #section-slider #revolution-slider ul li {
        height: calc(100vw * 500 / 1170) !important;
        min-height: 200px !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    #section-slider #revolution-slider ul li > img:first-child,
    #section-slider #revolution-slider img.tp-bgimg,
    #section-slider .tp-bgimg,
    #section-slider .defaultimg {
        object-fit: cover !important;
        object-position: center center !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        min-width: 0 !important;
        min-height: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Homepage service category cards: side breathing room */
    #section-services.home-category-strip > .container {
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }

    #section-services.home-category-strip .row.mt-70 {
        margin-left: 0;
        margin-right: 0;
    }

    /* Homepage icon blocks (below category cards): side breathing room */
    #section-services:not(.home-category-strip) > .container {
        padding-left: 22px !important;
        padding-right: 22px !important;
        box-sizing: border-box;
    }

    #section-services:not(.home-category-strip) .box-icon-simple .text {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Mobile nav dropdown panels (toggled via JS) */
    body.mudanya-mobile-menu-open #mainmenu {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    #mainmenu li.dropdown:hover > .dropdown-content {
        display: none !important;
    }

    #mainmenu li.dropdown > .dropdown-content {
        display: none !important;
    }

    #mainmenu li.dropdown.is-expanded > .dropdown-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 4px;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }

    #mainmenu li.dropdown.is-expanded > a {
        color: #CD5B41 !important;
    }

    /* Blog pagination spacing */
    body.page-blog .pagination2 {
        display: block;
        width: 100%;
        clear: both;
        overflow: hidden;
        padding: 16px 0 28px;
        margin-top: 20px;
        text-align: center;
    }

    body.page-blog .pagination2 li {
        float: none;
        display: inline-block;
        vertical-align: middle;
        margin: 4px 5px;
    }

    /* About Us: prevent lower-section overlaps */
    body.page-about #section-team .container-5 {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    body.page-about #section-team .container-5 > .col-md-4 {
        width: 100%;
        float: none;
        clear: both;
        margin-bottom: 24px;
    }

    body.page-about .side-bg .image-container {
        position: relative;
        width: 100%;
        float: none !important;
        min-height: 180px;
        margin-bottom: 16px;
    }

    body.page-about .side-bg .col-md-6,
    body.page-about .side-bg .col-md-offset-6 {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    body.page-about .side-bg .inner-padding {
        padding-left: 0;
        padding-right: 0;
    }

    /* Homepage: video thumbnails, typing strip */
    #section-fun-facts img,
    #section-fun-facts img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    #section-typing .col-md-7,
    #section-typing .col-md-3,
    #section-typing .col-md-offset-2 {
        width: 100%;
        margin-left: 0;
        float: none;
        text-align: center;
    }

    #section-typing .typing-wrap {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    #section-typing .btn {
        margin-top: 12px;
        max-width: 100%;
    }

    /* Projects / products hub category grids (mirrors inline page rules) */
    #section-services.projects-categories-section .projects-categories {
        flex-wrap: wrap;
    }

    #section-services.projects-categories-section .projects-categories .category-col {
        flex: 0 0 calc((100% - 24px) / 2) !important;
        max-width: calc((100% - 24px) / 2) !important;
        width: calc((100% - 24px) / 2) !important;
    }

    #section-services.projects-categories-section .projects-categories .shadow-soft {
        height: 260px !important;
        min-height: 260px !important;
    }

    /* Catalog */
    body.page-katalog h4 {
        margin-left: 15px;
    }

    body.page-katalog #content img[width]:not(.catalog-cover-img) {
        max-width: 100% !important;
        height: auto !important;
    }

    body.page-katalog .col-md-4 {
        margin-bottom: 24px;
    }

    /* Blog sidebar spacing when stacked */
    #sidebar {
        margin-top: 28px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Phone: hide page title + breadcrumb; show full banner image strip */
    #subheader h1,
    #subheader .proje-liste-p-h1,
    #subheader .crumb,
    #subheader .container {
        display: none !important;
    }

    #subheader,
    section#subheader.page-projects {
        height: calc(100vw * 265 / 1024) !important;
        min-height: calc(100vw * 265 / 1024) !important;
        padding-bottom: 0 !important;
        overflow: hidden;
        -webkit-background-size: 100% auto !important;
        background-size: 100% auto !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

    body.page-projects #subheader,
    body.page-projects-alt #subheader,
    section#subheader.page-projects-alt,
    body.page-residential-projects #subheader,
    .page-residential-projects #subheader {
        height: calc(100vw * 184 / 1024) !important;
        min-height: calc(100vw * 184 / 1024) !important;
    }

    #subheader.page-katalog,
    .page-katalog #subheader {
        height: calc(100vw * 175 / 1024) !important;
        min-height: calc(100vw * 175 / 1024) !important;
    }

    #subheader.page-about,
    .page-about #subheader,
    #subheader.page-contact,
    .page-contact #subheader {
        height: calc(100vw * 266 / 1024) !important;
        min-height: calc(100vw * 266 / 1024) !important;
    }

    #subheader.page-urunler,
    #subheader.page-blog,
    #subheader.page-shop,
    .page-urunler #subheader,
    .page-blog #subheader,
    .page-shop #subheader {
        height: calc(100vw * 265 / 1024) !important;
        min-height: calc(100vw * 265 / 1024) !important;
    }

    /* Small breathing room between subheader banner and page content */
    #subheader + #content {
        padding-top: 14px !important;
        margin-top: 0 !important;
    }

    #subheader {
        margin-bottom: 0 !important;
    }

    /* Hero Revolution Slider captions */
    #section-slider .tp-caption.pl-16 {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: calc(100% - 32px);
        white-space: normal !important;
    }

    #section-slider .tp-caption.big-white {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    #section-slider .tp-caption.ultra-big-white {
        font-size: 22px !important;
        line-height: 1.2 !important;
        letter-spacing: 2px !important;
    }

    #section-slider .tp-caption.sfb .btn-slider {
        font-size: 12px;
        padding: 8px 14px;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    #section-typing,
    #section-typing.padding40,
    section[aria-label="section-typing"] {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        min-height: 0 !important;
    }

    #section-typing .typing-wrap {
        font-size: 18px;
        line-height: 1.35;
    }

    /* Gallery: full width items on small phones (bootstrap col-xs-12) */
    #gallery > .item.col-xs-12,
    #section-portfolio-2 #gallery > .item.col-xs-12,
    #gallery > [class*="col-"].item.col-xs-12,
    #section-portfolio-2 #gallery > [class*="col-"].item.col-xs-12 {
        width: 100% !important;
    }

    /* Project detail typography + metadata */
    .project-detail-title {
        font-size: clamp(1.35rem, 5.5vw, 2.57rem) !important;
        line-height: 1.2 !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .project-detail-list li .left,
    .project-detail-list li .right {
        float: none !important;
        display: block;
        width: 100%;
        text-align: left;
    }

    .project-detail-list li .left {
        margin-bottom: 2px;
    }

    .project-detail-text {
        padding-left: 0;
        padding-right: 0;
    }

    /* Contact form */
    body.page-contact #contact_form textarea {
        min-height: 120px;
        font-size: 16px;
    }

    body.page-contact #contact_form .form-control {
        font-size: 16px;
        min-height: 44px;
    }

    body.page-contact #contact_form .contact-submit-wrap {
        display: block !important;
        width: auto !important;
        max-width: 100%;
        margin-top: 12px;
        margin-bottom: 8px;
        padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
        clear: both;
        position: relative;
        z-index: 25;
        pointer-events: auto;
        text-align: left;
    }

    html.lang-ar body.page-contact #contact_form .contact-submit-wrap,
    html[lang="ar"] body.page-contact #contact_form .contact-submit-wrap {
        text-align: right;
    }

    body.page-contact #contact_form .contact-submit-wrap.form-inline {
        display: block !important;
    }

    body.page-contact #contact_form #send_message,
    body.page-contact #contact_form button[type="submit"],
    body.page-contact #contact_form input[type="submit"] {
        min-height: 0 !important;
        height: auto !important;
        padding: 7px 12px !important;
        font-size: 10px !important;
        font-weight: 500;
        letter-spacing: 1px;
        line-height: 1.2;
        width: auto !important;
        max-width: 100%;
        display: inline-block !important;
        margin: 0 !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        position: relative;
        z-index: 26;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        pointer-events: auto !important;
        user-select: none;
        -webkit-user-select: none;
        border-radius: 2px;
        text-transform: uppercase;
        background: #fff !important;
        background-color: #fff !important;
        color: #333 !important;
        border: 1px solid rgba(0, 0, 0, 0.22) !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    body.page-contact #contact_form #send_message::after,
    body.page-contact #contact_form button[type="submit"]::after,
    body.page-contact #contact_form input[type="submit"]::after {
        margin-left: 6px !important;
        font-size: 10px !important;
        color: #333 !important;
    }

    body.page-contact #contact_form #send_message:hover,
    body.page-contact #contact_form #send_message:focus,
    body.page-contact #contact_form #send_message:active,
    body.page-contact #contact_form button[type="submit"]:hover,
    body.page-contact #contact_form button[type="submit"]:focus,
    body.page-contact #contact_form button[type="submit"]:active,
    body.page-contact #contact_form input[type="submit"]:hover,
    body.page-contact #contact_form input[type="submit"]:focus,
    body.page-contact #contact_form input[type="submit"]:active {
        background-color: #cd5b41 !important;
        border-color: #cd5b41 !important;
        color: #111 !important;
        opacity: 1 !important;
        transform: none !important;
    }

    body.page-contact #contact_form #send_message:hover::after,
    body.page-contact #contact_form #send_message:focus::after,
    body.page-contact #contact_form #send_message:active::after,
    body.page-contact #contact_form button[type="submit"]:hover::after,
    body.page-contact #contact_form button[type="submit"]:focus::after,
    body.page-contact #contact_form button[type="submit"]:active::after,
    body.page-contact #contact_form input[type="submit"]:hover::after,
    body.page-contact #contact_form input[type="submit"]:focus::after,
    body.page-contact #contact_form input[type="submit"]:active::after {
        color: #111 !important;
    }

    body.page-contact #contact_form .form-inline {
        margin-top: 14px;
        padding-top: 4px;
        clear: both;
    }

    body.page-contact #recaptcha_container {
        margin-bottom: 24px;
        min-height: 78px;
        overflow: visible;
        position: relative;
        z-index: 1;
        max-width: 100%;
    }

    body.page-contact #recaptcha_container iframe {
        max-width: 100%;
    }

    body.page-contact #mail_success,
    body.page-contact #mail_fail {
        margin-bottom: 10px;
    }

    /* Blog cards + date box */
    body.page-blog ul.blog-list .post-content {
        min-height: 0;
        padding-top: 4px;
    }

    body.page-blog ul.blog-list .post-text {
        padding-left: 50px;
        padding-right: 0;
    }

    body.page-blog ul.blog-list .date-box {
        width: 42px;
    }

    body.page-blog ul.blog-list .date-box .day {
        width: 42px;
        font-size: 18px;
        padding-top: 24px;
        padding-bottom: 2px;
        line-height: 1;
    }

    body.page-blog ul.blog-list .date-box .month {
        width: 42px;
        font-size: 9px;
        letter-spacing: 3px;
        padding: 3px 0;
        border-bottom-width: 2px;
    }

    body.page-blog .pagination2 li {
        width: 32px;
        height: 32px;
        line-height: 22px;
        padding: 4px;
        margin: 3px 4px;
        font-size: 12px;
    }

    #blog-carousel .post-content .post-text {
        padding-left: 50px;
    }

    #blog-carousel .date-box {
        width: 42px;
    }

    #blog-carousel .date-box .day {
        width: 42px;
        font-size: 18px;
        padding-top: 24px;
        padding-bottom: 2px;
    }

    #blog-carousel .date-box .month {
        width: 42px;
        font-size: 9px;
        letter-spacing: 3px;
        padding: 3px 0;
    }

    /* Expertise / quote forms */
    #section-team input.form-control,
    #section-team textarea.form-control {
        min-height: 44px;
        font-size: 16px;
    }

    #section-team textarea.form-control {
        min-height: 120px;
    }

    #section-team .btn,
    #section-team #BtnGonder {
        width: 100%;
        box-sizing: border-box;
    }

    #section-team .col-lg-6 > p {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }

    #section-services.projects-categories-section .projects-categories .category-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.page-katalog h4 {
        margin-left: 0;
    }

    /* Global mobile audit: long titles and headlines stay within viewport */
    .project-detail-title,
    #content > .container > h1,
    #content > .container > h2 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
}

/* AR homepage intro (#section-custom-1): theme h2 is inline-block, sits left in LTR rows */
html.lang-ar #section-custom-1.text-light .row,
html.lang-ar #section-custom-1.text-light .col-md-6:first-of-type,
html[lang="ar"] #section-custom-1.text-light .row,
html[lang="ar"] #section-custom-1.text-light .col-md-6:first-of-type {
    direction: rtl !important;
    text-align: right !important;
}

html.lang-ar #section-custom-1.text-light .col-md-6:first-of-type h1,
html.lang-ar #section-custom-1.text-light .col-md-6:first-of-type h2,
html.lang-ar #section-custom-1.text-light .col-md-6:first-of-type p,
html.lang-ar #section-custom-1.text-light .col-md-6:first-of-type .lead,
html[lang="ar"] #section-custom-1.text-light .col-md-6:first-of-type h1,
html[lang="ar"] #section-custom-1.text-light .col-md-6:first-of-type h2,
html[lang="ar"] #section-custom-1.text-light .col-md-6:first-of-type p,
html[lang="ar"] #section-custom-1.text-light .col-md-6:first-of-type .lead {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    direction: rtl !important;
    text-align: right !important;
}

