@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700');

/* Main logo height (same at the top of the page and when scrolled) */
.header_mid .logo img {
    height: 50px !important;
    width: auto !important;
    max-height: none !important;
}



.header_mid_scroll .header_mid_inner .logo img.logo_retina {
    width: 128px;
}

.widget .widgettitle {
  margin-bottom:10px;
}


.bottom_inner aside {
  padding:0px
}

.bottom_bg {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top-width: 1px;
    border-top-style: solid;
}




.textwidget.custom-html-widget p{
    padding: 0px;
}

@media screen and (min-width: 769px) {
    /* First column: 35% footprint minus 3.44% for left/right margins */
    .bottom_inner.sidebar_layout_14141414 aside:first-child {
        width: 31.56% !important; 
    }
    
    /* Remaining 3 columns: 21.66% footprint minus 3.44% for left/right margins */
    .bottom_inner.sidebar_layout_14141414 aside:not(:first-child) {
        width: 18.22% !important; 
    }
}

.project_sidebar {
    display: none;
}

p {
  padding: 0 0 20px;
  margin: 0;
	font-family: 'Klara', sans-serif !important;
}


.n2-ss-slider .n2-ow, .n2-ss-slider .n2-ow-all {
    font-family: 'Questrial', sans-serif !important;
}




.cmsmasters_tabs.tabs_mode_tab {
    padding: 0px;
}

.cmsmasters_tabs.tabs_mode_tab:before {
    border: none;
}

ul.cmsmasters_tabs_list {
    border-bottom: solid 2px #ddd;
}


.cmsmasters_tabs.tabs_mode_tab .cmsmasters_tabs_list_item {
    padding: 0px;
}

.cmsmasters_tabs.tabs_mode_tab .cmsmasters_tabs_list {
    padding: 0 0 0 35%;
}


a.cmsmasters_button.fadeIn.animated {
    padding: 20px 30px;
}

/* RTL header padding (Arabic pages, tablet widths): mirror the theme's left padding */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    html[dir="rtl"] #header .header_mid .header_mid_inner {
        padding: 0 20px 0 0;
    }
}

/* Desktop header: keep logo + menu on one line inside the container */
@media only screen and (min-width: 1025px) {
    #header .header_mid .header_mid_inner .logo_wrap {
        width: 180px;
    }
    #page:not(.enable_header_bottom) #header .mid_nav_wrap {
        padding-left: 15px;
    }
    html[dir="rtl"] #page:not(.enable_header_bottom) #header .mid_nav_wrap {
        padding-left: 0;
        padding-right: 15px;
    }
    /* Arabic: the thin line between logo and menu goes on the logo side (mirrored) */
    html[dir="rtl"] #header .mid_nav_wrap {
        border-left-width: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.17) !important;
    }
    #header .mid_nav > li > a {
        padding-left: 5px;
        padding-right: 5px;
        letter-spacing: 0.8px;
    }
}

/* Arabic font: Tajawal for all Arabic text (footer and icons excluded) */
html[lang="ar"] body *:not(#bottom):not(#bottom *):not(#footer):not(#footer *):not(i):not([class*="icon"]) {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}
/* Arabic words on English pages (e.g. the language switcher) */
.lang-item-ar a, .lang-item-ar a * {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}

/* Footer: identical to English on Arabic pages (no RTL) */
html[dir="rtl"] #bottom,
html[dir="rtl"] #footer {
    direction: ltr;
    /* same base font as English */
    font-family: "Lucida Sans Unicode", "Lucida Grande", Garuda, sans-serif;
}
html[dir="rtl"] #bottom div,
html[dir="rtl"] #footer div {
    text-align: left;
}
html[dir="rtl"] .bottom_inner aside {
    float: left;
}

/* Project galleries: full (uncropped) photos in a masonry layout */
.romo-masonry { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.romo-masonry .romo-masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.romo-masonry .romo-masonry-item, .romo-masonry .romo-masonry-item figure { margin: 0; width: 100%; }
.romo-masonry .romo-masonry-item img { display: block; width: 100%; height: auto !important; }

/* Main menu: no underline on the current item (highlight by color only) */
ul.navigation > li > a > .nav_item_wrap::before {
    display: none !important;
}

/* Main menu: other items dimmed so the current page stands out (desktop) */
@media only screen and (min-width: 1025px) {
    #header ul.navigation > li:not(.current-menu-item):not(.current-menu-ancestor):not(.current_page_item) > a {
        color: rgba(255, 255, 255, 0.55);
    }
    #header ul.navigation > li:not(.current-menu-item):not(.current-menu-ancestor):not(.current_page_item):hover > a {
        color: #ffffff;
    }
}

/* Home sliders (EN #2, AR #3): center each button in its column so the buttons are evenly spaced */
#n2-ss-2 .n2-ss-layer-col > .n2-ss-layer,
#n2-ss-3 .n2-ss-layer-col > .n2-ss-layer {
    align-self: center !important;
}

/* Language switcher: separated from the main menu by a gap and a thin vertical line (desktop) */
@media only screen and (min-width: 1025px) {
    #header ul.navigation > li.lang-item {
        position: relative;
        margin-inline-start: 14px;
        padding-inline-start: 14px;
    }
    #header ul.navigation > li.lang-item::before {
        content: "";
        display: block !important;
        position: absolute;
        left: auto !important;
        right: auto !important;
        inset-inline-start: 0 !important;
        top: 50%;
        width: 1px;
        height: 16px;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.35);
    }
}

/* CV date lists: date first in its own column, no theme bullets, start below the photo */
.romo-cv-list {
    clear: both;
}
.romo-cv-list > li {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.romo-cv-list > li::before {
    content: none !important;
    display: none !important;
}

/* Lists in page content use the same font as paragraphs (English) */
#middle li {
    font-family: 'Klara', sans-serif;
}

/* Replace the theme's navy (#16202F) with the dark asphalt gray of the sticky header (#252930) */
body, h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.cmsmasters_color_scheme_first, .cmsmasters_color_scheme_third,
html .cmsmasters_color_scheme_first h1, html .cmsmasters_color_scheme_first h2, html .cmsmasters_color_scheme_first h3,
html .cmsmasters_color_scheme_first h4, html .cmsmasters_color_scheme_first h5, html .cmsmasters_color_scheme_first h6 {
    color: #252930;
}
#header .sub-menu,
#header ul.navigation ul,
.headline_outer,
.cmsmasters_button:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover, button:hover {
    background-color: #252930 !important;
}
.headline_outer, .cmsmasters_button, .button, input[type="submit"], input[type="button"], button {
    border-color: #252930;
}

/* Press links in CV lists: same font as the text, underlined */
.romo-cv-list a {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.romo-cv-list strong {
    font-weight: 600;
}

/* Footer: smaller text, smaller logo, tighter line spacing */
#bottom .widget .widgettitle {
    font-size: 16px !important;
    line-height: 22px !important;
    margin-bottom: 6px !important;
}
#bottom p, #bottom a, #bottom .textwidget {
    font-size: 13px !important;
    line-height: 18px !important;
}
#bottom .custom-html-widget a[href^="mailto:"] {
    font-family: 'Klara', sans-serif !important;
    color: inherit !important;
}
#bottom .textwidget p {
    padding-bottom: 10px !important;
}
#bottom .custom-html-widget p {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}
#bottom .custom-html-widget p + p {
    margin-bottom: 10px !important;
}
#bottom img.wp-image-14023 {
    width: 100px !important;
    height: auto !important;
    margin-bottom: 10px;
}
#footer, #footer * {
    font-size: 12px !important;
}

/* Text selection: clear contrast (white text on dark gray; dark text on white in dark areas) */
::selection,
html .cmsmasters_color_scheme_first ::selection,
html .cmsmasters_color_scheme_second ::selection,
html .cmsmasters_color_scheme_third ::selection,
html .cmsmasters_color_scheme_footer ::selection {
    background: #252930 !important;
    color: #ffffff !important;
}
#header ::selection,
.headline_outer ::selection,
.n2-ss-slider ::selection {
    background: #ffffff !important;
    color: #252930 !important;
}

/* Phone header: logo and menu icon on one row (logo left, menu right; mirrored on Arabic pages) */
@media only screen and (max-width: 767px) {
    #header .header_mid .header_mid_inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        padding: 20px 20px !important;
    }
    #header .header_mid .header_mid_inner .logo_wrap {
        width: auto !important;
        height: auto !important;
        text-align: start;
        float: none;
        margin: 0 !important;
    }
    #header .header_mid .header_mid_inner .logo_wrap::after {
        display: none;
    }
    #header .header_mid .logo_wrap .logo {
        display: block;
    }
    #header .header_mid .logo img {
        height: 40px !important;
    }
    #header .header_mid .header_mid_inner_cont,
    #header .header_mid .resp_mid_nav_wrap {
        width: auto !important;
        float: none;
    }
    #header .header_mid .header_mid_inner_cont {
        border-top: 0 !important;
        border-bottom: 0 !important;
    }
    #header .header_mid ul.navigation {
        background-color: #252930 !important;
    }
    #header .header_mid {
        border-bottom: 0 !important;
    }
    #header .header_mid .mid_nav_wrap {
        border-top: 0 !important;
    }
    #header .header_mid .resp_mid_nav_wrap,
    #header .header_mid .resp_mid_nav_outer {
        width: 36px !important;
        height: 36px !important;
    }
    #header .header_mid .resp_mid_nav {
        display: block;
        position: relative;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
    }
    #header .header_mid .resp_mid_nav::before {
        top: 10px !important;
        left: 10px !important;
    }
    #header .header_mid .mid_nav_wrap {
        flex: 0 0 calc(100% + 40px);
        margin: 12px -20px -12px;
    }
}

/* Phone home slider (EN #2, AR #3): 60% of the screen height, tighter button padding */
@media only screen and (max-width: 767px) {
    #n2-ss-2 .n2-ss-slider-3, #n2-ss-2 .n2-ss-slide, #n2-ss-2 .n2-ss-slide-limiter,
    #n2-ss-3 .n2-ss-slider-3, #n2-ss-3 .n2-ss-slide, #n2-ss-3 .n2-ss-slide-limiter {
        min-height: 60vh !important;
        min-height: 60svh !important;
    }
    #n2-ss-2 .n2-ss-button-container a,
    #n2-ss-3 .n2-ss-button-container a {
        padding: 8px 16px !important;
    }
    /* text and buttons raised a little */
    #n2-ss-2 .n2-ss-section-main-content,
    #n2-ss-3 .n2-ss-section-main-content {
        padding-bottom: 70px !important;
    }
    /* buttons closer together */
    #n2-ss-2 .n2-ss-layer-row:has(.n2-ss-button-container),
    #n2-ss-3 .n2-ss-layer-row:has(.n2-ss-button-container) {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    #n2-ss-2 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-row-inner,
    #n2-ss-3 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-row-inner {
        margin: 0 !important;
    }
    #n2-ss-2 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-row-inner > .n2-ss-layer,
    #n2-ss-3 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-row-inner > .n2-ss-layer {
        margin: 5px 0 !important;
    }
    #n2-ss-2 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-col,
    #n2-ss-3 .n2-ss-layer-row:has(.n2-ss-button-container) .n2-ss-layer-col {
        padding: 0 !important;
    }
}

/* Copyright line with photo credit: wrap into balanced lines on small screens */
.footer_copyright {
    text-wrap: balance;
    line-height: 1.6;
}
