@charset "utf-8";
/* CSS Document */

/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
	margin:0;
	padding:0;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset, img {
	border:0;
}
address, caption, cite, code, dfn, em, strong, th, var, optgroup {
	font-style:inherit;
	font-weight:inherit;
}
del, ins {
	text-decoration:none;
}
li,ul {
	list-style:none;
}
caption, th {
	text-align:left;
}
q:before, q:after {
	content:'';
}
abbr, acronym {
	border:0;
	font-variant:normal;
}
sup {
	vertical-align:baseline;
}
sub {
	vertical-align:baseline;
}
legend {
	color:#000;
}
input, button, textarea, select, optgroup, option {
	font-family:inherit;
	font-size:inherit;
	font-style:inherit;
	font-weight:inherit;
}
/*
input, button, textarea, select {
 *font-size:100%;
}
*/
/* ==========================================================================
   Sonsuzdöngü — Osmanlı minyatür esintili tema
   ========================================================================== */

:root {
    --ink: #2a2119;
    --ink-soft: #5c4c3a;
    --ink-faint: #8b7860;
    --paper: #fdf7ea;
    --paper-deep: #f3e8d1;
    --parchment: #e9ddc3;
    --gold: #b78a3f;
    --gold-light: #dcc08a;
    --gold-dark: #7e571f;
    --burgundy: #7a1f1f;
    --burgundy-dark: #571313;
    --teal: #23625c;
    --line: rgba(126, 87, 31, 0.28);
    --line-strong: rgba(126, 87, 31, 0.5);
    --shadow: 0 18px 40px rgba(61, 39, 13, 0.12);
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Lora", Georgia, "Times New Roman", serif;
    --font-brand: "Marcellus", "Cormorant Garamond", serif;
    --font-arabic: "Amiri", "Lora", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--parchment);
    background-image:
        radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.65), transparent 34%),
        radial-gradient(circle at 88% 96%, rgba(122, 31, 31, 0.07), transparent 42%),
        repeating-linear-gradient(45deg, rgba(126, 87, 31, 0.035) 0, rgba(126, 87, 31, 0.035) 1px, transparent 1px, transparent 13px),
        repeating-linear-gradient(-45deg, rgba(126, 87, 31, 0.035) 0, rgba(126, 87, 31, 0.035) 1px, transparent 1px, transparent 13px);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    overflow-x: hidden;
}

body.language_ar {
    font-family: var(--font-arabic);
    line-height: 1.9;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: var(--burgundy);
    text-decoration-color: rgba(122, 31, 31, 0.35);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--gold-dark);
}

p {
    margin: 0 0 1.1em;
}

strong,
b {
    font-weight: 600;
}

em,
i {
    font-style: italic;
}

ul,
ol {
    margin: 0 0 1.2em;
    padding-inline-start: 1.4em;
}

ul li {
    list-style: disc;
}

ol li {
    list-style: decimal;
}

blockquote {
    margin: 1.5rem 0;
    padding: 0.8rem 1.4rem;
    border-inline-start: 3px solid var(--gold);
    background: rgba(183, 138, 63, 0.08);
    color: var(--ink-soft);
    font-style: italic;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2rem 0;
}

::selection {
    background: var(--gold-light);
    color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    overflow-wrap: break-word;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

body.language_ar h1,
body.language_ar h2,
body.language_ar h3,
body.language_ar h4 {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.35rem, 4.6vw, 4.15rem);
    letter-spacing: -0.018em;
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

small {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

code,
kbd,
pre {
    font-family: "Ubuntu Mono", "SFMono-Regular", Consolas, monospace;
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: 1rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--gold-dark);
    font-family: var(--font-brand);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;
    color: #f7ecd6;
    background:
        radial-gradient(circle at 18% -20%, rgba(220, 192, 138, 0.22), transparent 42%),
        linear-gradient(135deg, #1d1510 0%, #2b1c13 45%, #3b2318 100%);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 28px, rgba(220, 192, 138, 0.25) 28px 29px),
        repeating-linear-gradient(-45deg, transparent 0 28px, rgba(220, 192, 138, 0.25) 28px 29px);
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    width: min(1200px, calc(100% - 40px));
    min-height: 100px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-inline-end: auto;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand-mark {
    flex: 0 0 auto;
    height: 42px;
    width: auto;
    max-width: 180px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-name {
    color: #fbf3e0;
    font-family: var(--font-brand);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-style: italic;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li {
    list-style: none;
}

.nav-list a {
    position: relative;
    display: inline-block;
    padding: 0.55rem 0.6rem;
    color: #ecdfc4;
    font-family: var(--font-brand);
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: 0.6rem;
    bottom: 0.28rem;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff9ea;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    transform: scaleX(1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid rgba(220, 192, 138, 0.3);
}

.lang-switch a {
    padding: 0.35rem 0.5rem;
    color: #e3d0ab;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.lang-switch a:hover {
    color: #fff9ea;
    border-color: rgba(220, 192, 138, 0.35);
}

body.language_tr #switchLang_tr,
body.language_en #switchLang_en,
body.language_ar #switchLang_ar {
    display: none;
}

.ornament-band {
    position: relative;
    height: 24px;
    background: url('../img/ornaments/band-simple.jpg?v=5') left center / auto 100% repeat-x;
    border-top: 1px solid #f0dba9;
}

/* Mobile navigation */
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(220, 192, 138, 0.4);
    cursor: pointer;
    transition: background 180ms ease;
}

.nav-toggle-label:hover {
    background: rgba(220, 192, 138, 0.08);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold-light);
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
}

.nav-toggle-bars::before {
    top: -7px;
}

.nav-toggle-bars::after {
    top: 7px;
}

.nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-bars {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label .nav-toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

#container {
    min-height: 55vh;
}

#content {
    padding: clamp(2.6rem, 5vw, 4.8rem) 0 clamp(3.2rem, 6vw, 5.5rem);
}

.toCenter {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1rem;
    color: var(--burgundy);
    font-family: var(--font-brand);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold-dark);
}

body.language_ar .eyebrow {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

.lead {
    color: var(--ink);
    font-size: 1.13rem;
    line-height: 1.72;
}

/* Hero */
.hero,
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: clamp(2rem, 5vw, 4.2rem);
    align-items: center;
}

.hero {
    padding-bottom: clamp(2.2rem, 4vw, 3.6rem);
    border-bottom: 1px solid var(--line);
}

.page-hero {
    margin-bottom: clamp(2.4rem, 4vw, 4rem);
    padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
    border-bottom: 1px solid var(--line);
}

.hero-copy p,
.page-hero-copy p {
    max-width: 65ch;
    color: var(--ink-soft);
}

.hero-copy h1,
.page-hero-copy h1 {
    margin-bottom: 0.45em;
}

.page-hero-copy h1 {
    margin-bottom: 0;
}

.hero-copy .lead,
.page-hero-copy .lead {
    color: var(--ink);
}

/* Homepage story */
.home-story {
    max-width: 74ch;
    margin: clamp(2.4rem, 4vw, 3.6rem) auto 0;
}

.home-story p {
    margin: 0 0 1.25em;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.8;
}

.home-story .home-signature {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--burgundy);
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1.3;
}

.home-story .home-contact {
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-size: 0.98rem;
}

body.language_ar .home-story p {
    font-family: var(--font-arabic);
    line-height: 1.95;
}

/* Miniature frame */
.miniature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.miniature-frame {
    position: relative;
    width: 100%;
    padding: 12px;
    background:
        linear-gradient(135deg, #fffaf0 0%, #f3e7cb 55%, #e7d6ae 100%);
    border: 1px solid var(--gold-dark);
    box-shadow: var(--shadow);
}

.miniature-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(126, 87, 31, 0.32);
    pointer-events: none;
}

.miniature-frame::after {
    content: "✦";
    position: absolute;
    top: -0.72rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    background: var(--paper);
    color: var(--gold-dark);
    font-size: 0.72rem;
}

body.language_ar .miniature-frame::after {
    transform: translateX(50%);
}

.miniature-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.miniature--small .miniature-frame {
    max-width: 340px;
    margin-inline: auto;
}

.miniature figcaption {
    max-width: 36ch;
    color: var(--ink-faint);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

/* Home highlights and visual sections */
.home-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin: clamp(2.4rem, 4vw, 3.6rem) 0;
    background: var(--line);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.highlight {
    padding: 1.6rem 1.4rem;
    background: var(--paper);
    text-align: center;
}

.highlight-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.8rem;
    border: 1px solid var(--gold);
    background: #fffdf7;
    object-fit: cover;
}

.highlight h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.highlight p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.5fr);
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: center;
    margin: clamp(2.4rem, 4vw, 3.6rem) 0;
    padding: clamp(1.6rem, 3vw, 2.6rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.home-section-copy h2 {
    margin: 0.2rem 0 1rem;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.client-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    align-items: center;
}

.client-strip img {
    max-height: 38px;
    width: auto;
    filter: none;
    opacity: 0.92;
    transition: transform 180ms ease, opacity 180ms ease;
}

.client-strip img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.home-note {
    max-width: 74ch;
    margin: 0 auto clamp(2.4rem, 4vw, 3.6rem);
    text-align: center;
}

.home-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

@media (max-width: 820px) {
    .home-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section {
        grid-template-columns: 1fr;
    }

    .home-section .miniature {
        width: min(300px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .home-highlights {
        grid-template-columns: 1fr;
    }
}

/* Quick links on the homepage */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(2rem, 4vw, 3.2rem);
    background: var(--line);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.quick-link {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 180px;
    padding: 1.6rem;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.quick-link:hover {
    z-index: 1;
    background: #fffdf7;
    color: var(--ink);
    box-shadow: 0 14px 28px rgba(61, 39, 13, 0.13);
    transform: translateY(-3px);
}

.quick-glyph {
    color: var(--gold-dark);
    font-family: var(--font-arabic);
    font-size: 1.6rem;
    line-height: 1;
}

.quick-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}

body.language_ar .quick-title {
    font-family: var(--font-arabic);
}

.quick-arrow {
    margin-top: auto;
    color: var(--burgundy);
    font-size: 1.15rem;
    transition: transform 180ms ease;
}

.quick-link:hover .quick-arrow {
    transform: translateX(5px);
}

body.language_ar .quick-arrow {
    transform: rotate(180deg);
}

body.language_ar .quick-link:hover .quick-arrow {
    transform: rotate(180deg) translateX(5px);
}

/* Panels */
.content-panel {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.8rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.content-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(126, 87, 31, 0.2);
    pointer-events: none;
}

.content-panel > * {
    position: relative;
    z-index: 1;
}

.content-panel > h2 {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.content-panel > h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

body.language_ar .content-panel > h2::after {
    background: linear-gradient(-90deg, var(--line-strong), transparent);
}

.content-panel > h2:first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

#articles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
    max-width: 920px;
    margin-inline: auto;
}

#articles article {
    position: relative;
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

#articles article::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(126, 87, 31, 0.18);
    pointer-events: none;
}

#articles article > * {
    position: relative;
    z-index: 1;
}

#articles article > aside {
    position: relative;
    min-height: 56px;
    padding-inline-start: 72px;
}

#articles article > aside > img {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 54px;
    height: 54px;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(61, 39, 13, 0.15);
}

#articles article > aside h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
}

#articles article > aside h2 a {
    color: var(--ink);
    text-decoration: none;
}

#articles article > aside h2 a:hover {
    color: var(--burgundy);
}

#articles article > aside small {
    display: block;
    color: var(--ink-faint);
    font-size: 0.78rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#articles article > aside small a {
    color: var(--burgundy);
}

.articleContent {
    margin-top: 1.2rem;
    min-width: 0;
    color: var(--ink);
    font-size: 1.02rem;
    overflow-wrap: break-word;
}

.articleContent iframe,
.articleContent video,
.articleContent object,
.articleContent embed {
    display: block;
    max-width: 100%;
    border: 0;
}

.articleContent iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.articleContent table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.articleContent pre {
    max-width: 100%;
    overflow-x: auto;
}

.articleContent p {
    margin-bottom: 1.2em;
}

.articleContent h2,
.articleContent h3,
.articleContent h4 {
    margin-top: 1.8em;
}

.articleContent a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-color: rgba(122, 31, 31, 0.35);
}

.articleContent a:hover {
    color: var(--gold-dark);
}

.articleContent img {
    border: 4px solid #fffaf0;
    outline: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(61, 39, 13, 0.12);
}

.articleContent .imgToRight {
    float: right;
    margin: 0 0 1rem 1rem;
}

.articleContent .imgToLeft {
    float: left;
    margin: 0 1rem 1rem 0;
}

body.language_ar .articleContent .imgToRight {
    float: left;
    margin: 0 1rem 1rem 0;
}

body.language_ar .articleContent .imgToLeft {
    float: right;
    margin: 0 0 1rem 1rem;
}

.articleContent .continueReading {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--burgundy);
    font-family: var(--font-brand);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
}

.post-meta > img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.post-meta small {
    min-width: 0;
    color: var(--ink-soft);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#comments {
    max-width: 920px;
    margin: 2rem auto 0;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

#shareButtons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

#disqus_thread {
    width: 100%;
}

#blog #pager,
#pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    text-align: center;
}

#pager a {
    display: inline-grid;
    place-items: center;
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0 0.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

#pager a:hover,
#pager a.current {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff8e8;
}

/* --------------------------------------------------------------------------
   Consultancy, clients, trainings
   -------------------------------------------------------------------------- */

#expertises {
    margin-top: 0;
}

#expertises .lead {
    max-width: 75ch;
}

.logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.logos a {
    display: block;
    aspect-ratio: 1;
    background-color: #fffdf8;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px 38px;
    border: 1px solid var(--line);
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.logos a:hover {
    background-color: #fff;
    border-color: var(--burgundy);
    box-shadow: 0 8px 18px rgba(61, 39, 13, 0.12);
    transform: translateY(-2px);
}

.logos a.php { background-image: url('../img/expertise/php.png'); }
.logos a.mysql { background-image: url('../img/expertise/mysql.png'); }
.logos a.debian { background-image: url('../img/expertise/debian.png'); }
.logos a.linux { background-image: url('../img/expertise/linux.png'); }
.logos a.memcached { background-image: url('../img/expertise/memcached.png'); }
.logos a.zend { background-image: url('../img/expertise/zend.png'); }
.logos a.html5 { background-image: url('../img/expertise/html5.png'); }
.logos a.css3 { background-image: url('../img/expertise/css3.png'); }
.logos a.javascript { background-image: url('../img/expertise/javascript.png'); }
.logos a.jquery { background-image: url('../img/expertise/jquery.png'); }
.logos a.phpunit { background-image: url('../img/expertise/phpunit.png'); }
.logos a.smarty { background-image: url('../img/expertise/smarty.png'); }
.logos a.extjs { background-image: url('../img/expertise/extjs.png'); }
.logos a.jasminebdd { background-image: url('../img/expertise/jasminebdd.png'); }
.logos a.selenium { background-image: url('../img/expertise/selenium.png'); }
.logos a.google-closure { background-image: url('../img/expertise/closure.png'); }
.logos a.rabbit-mq { background-image: url('../img/expertise/rabbit-mq.png'); }
.logos a.node-js { background-image: url('../img/expertise/nodejs.png'); }
.logos a.sphinx { background-image: url('../img/expertise/sphinx.png'); }
.logos a.qt { background-image: url('../img/expertise/qt.png'); }
.logos a.hudson { background-image: url('../img/expertise/hudson.png'); }
.logos a.mongodb { background-image: url('../img/expertise/mongodb.png'); }
.logos a.redis { background-image: url('../img/expertise/redis.png'); }
.logos a.git { background-image: url('../img/expertise/git.png'); }
.logos a.subversion { background-image: url('../img/expertise/subversion.png'); }
.logos a.volantis { background-image: url('../img/expertise/volantis.png'); }
.logos a.phonegap { background-image: url('../img/expertise/phonegap.png'); }

#testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.9rem;
    margin-top: 0;
}

#testimonials a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 1rem;
    background: #fffdf8;
    border: 1px solid var(--line);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#testimonials a:hover {
    border-color: var(--burgundy);
    box-shadow: 0 10px 22px rgba(61, 39, 13, 0.12);
    transform: translateY(-2px);
}

#testimonials a img {
    max-width: 100%;
    max-height: 58px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: transform 180ms ease;
}

#testimonials a:hover img {
    transform: scale(1.06);
}

#trainings #intro {
    margin-bottom: 2rem;
}

#trainings #intro p:last-child {
    margin-bottom: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

#trainingPrograms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

#trainingPrograms article {
    position: relative;
    padding: 1.4rem 1.4rem 1.4rem 3.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-inline-start-width: 3px;
    box-shadow: 0 10px 24px rgba(61, 39, 13, 0.08);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

body.language_ar #trainingPrograms article {
    font-family: var(--font-arabic);
    padding: 1.4rem 3.8rem 1.4rem 1.4rem;
}

#trainingPrograms article::before {
    content: "✦";
    position: absolute;
    inset-inline-start: 1.3rem;
    top: 1.35rem;
    color: var(--gold-dark);
    font-size: 1.1rem;
    line-height: 1;
}

#trainingPrograms article:hover {
    box-shadow: 0 16px 30px rgba(61, 39, 13, 0.14);
    transform: translateY(-2px);
}

#trainingPrograms article.php { border-inline-start-color: #6b5b95; }
#trainingPrograms article.git { border-inline-start-color: #a83232; }
#trainingPrograms article.javaScript { border-inline-start-color: #b78a3f; }
#trainingPrograms article.selenium { border-inline-start-color: #2e7d6b; }
#trainingPrograms article.htmlCss { border-inline-start-color: #c06014; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 3vw, 2.4rem);
    align-items: start;
}

#contactForm form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm form label {
    margin-bottom: -0.5rem;
    color: var(--ink-soft);
    font-family: var(--font-brand);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 1px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.language_ar #contactForm input[type="text"],
body.language_ar #contactForm input[type="email"],
body.language_ar #contactForm textarea {
    font-family: var(--font-arabic);
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(183, 138, 63, 0.16);
}

#contactForm textarea {
    min-height: 165px;
    resize: vertical;
}

#contactForm button[type="submit"] {
    align-self: flex-start;
    padding: 0.85rem 1.4rem;
    background: var(--burgundy);
    border: 1px solid var(--burgundy-dark);
    color: #fff8e8;
    font-family: var(--font-brand);
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

#contactForm button[type="submit"]:hover {
    background: var(--burgundy-dark);
    box-shadow: 0 8px 18px rgba(87, 19, 19, 0.24);
    transform: translateY(-1px);
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

.form-status {
    min-height: 1.5em;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-status[data-state="sending"] {
    color: var(--ink-soft);
}

.form-status[data-state="success"] {
    color: #3f5a26;
}

.form-status[data-state="error"],
.form-status[data-state="network"] {
    color: var(--burgundy);
}

#contactForm address {
    margin-top: 1.6rem;
    color: var(--ink-soft);
    font-style: normal;
    line-height: 1.8;
}

#maps {
    padding: 14px;
}

#maps iframe {
    display: block;
    width: 100%;
    min-height: 455px;
    border: 0;
    filter: sepia(0.18) saturate(0.85);
}

#maps small {
    display: block;
    margin-top: 0.8rem;
    text-align: center;
}

#maps small a {
    color: var(--burgundy);
}

/* --------------------------------------------------------------------------
   Crew
   -------------------------------------------------------------------------- */

#bio article {
    overflow: auto;
}

#bio figure {
    float: left;
    width: 230px;
    margin: 0 2rem 1rem 0;
}

body.language_ar #bio figure {
    float: right;
    margin: 0 0 1rem 2rem;
}

#bio figure img {
    display: block;
    width: 100%;
    padding: 6px;
    background: #fffaf0;
    border: 1px solid var(--gold-dark);
    box-shadow: var(--shadow);
    filter: sepia(0.12);
}

#bio h2 {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

#errorPage {
    max-width: 920px;
}

.error-panel h1 {
    color: var(--burgundy);
}

.error-panel pre {
    padding: 1rem;
    background: #f1e7d1;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    color: #d8c7a7;
    background:
        radial-gradient(circle at 80% 120%, rgba(220, 192, 138, 0.14), transparent 44%),
        linear-gradient(135deg, #231810 0%, #2f1e14 60%, #24170f 100%);
    border-top: 4px solid var(--gold-dark);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(1.8rem, 4vw, 3rem);
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding: clamp(2.4rem, 5vw, 4rem) 0 2.2rem;
}

.site-footer h2 {
    margin-bottom: 0.6rem;
    color: #f3e4c5;
    font-family: var(--font-brand);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

body.language_ar .site-footer h2 {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

.site-footer p {
    color: #cbb894;
    font-size: 0.94rem;
    line-height: 1.75;
}

.site-footer a {
    color: var(--gold-light);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff8e8;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.72rem;
    border: 1px solid rgba(220, 192, 138, 0.32);
    border-radius: 999px;
    color: #e3d0ab;
    font-size: 0.69rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-links a:hover {
    background: rgba(220, 192, 138, 0.1);
    border-color: rgba(220, 192, 138, 0.6);
    color: #fff8e8;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(220, 192, 138, 0.2);
    padding: 1rem 0 1.5rem;
    text-align: center;
}

.footer-bottom small {
    color: #a28b68;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Code snippets / highlighting
   -------------------------------------------------------------------------- */

pre.highlightCode {
    padding: 1rem 1.2rem;
    background: #f3eee2;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow: auto;
}

pre.highlightCode.bash {
    background: #f3eee2;
    color: var(--ink);
}

.snippet-wrap pre.sh_sourceCode {
    margin: 1rem 0;
    border-radius: 1px;
    box-shadow: 0 2px 8px rgba(61, 39, 13, 0.15);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .header-inner {
        min-height: 88px;
    }

    .site-nav {
        gap: 0.8rem;
    }

    .nav-list a {
        font-size: 0.76rem;
        padding-inline: 0.42rem;
    }

    .lang-switch {
        padding-inline-start: 0.7rem;
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 72px;
        gap: 0.6rem;
    }

    .brand-tagline {
        display: none;
    }

    .nav-toggle-label {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem clamp(1rem, 4vw, 2rem) 1.4rem;
        background: linear-gradient(180deg, #2b1c13 0%, #21160f 100%);
        border-top: 1px solid rgba(220, 192, 138, 0.25);
        border-bottom: 3px solid var(--gold-dark);
        box-shadow: 0 24px 36px rgba(20, 12, 6, 0.38);
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 0.8rem 0.3rem;
        border-bottom: 1px solid rgba(220, 192, 138, 0.14);
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a.active {
        color: var(--gold-light);
    }

    .lang-switch {
        justify-content: center;
        padding-top: 0.9rem;
        padding-inline-start: 0;
        border-inline-start: 0;
        border-top: 1px solid rgba(220, 192, 138, 0.2);
    }

    .lang-switch a {
        font-size: 0.74rem;
    }
}

@media (max-width: 820px) {
    .hero,
    .page-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .miniature {
        width: min(420px, 100%);
        margin-inline: auto;
    }

    .miniature--small {
        width: min(320px, 100%);
    }

    .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        width: calc(100% - 28px);
    }

    .toCenter,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .brand-mark {
        height: 26px;
        max-width: 100px;
    }

    .brand-name {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }

    .brand-tagline {
        display: none;
    }

    #content {
        padding-top: 2.2rem;
    }

    .ornament-band {
        height: 28px;
        background-size: auto 100%;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .quick-link {
        min-height: 0;
        padding: 1.3rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    #articles article > aside {
        min-height: 0;
        padding-inline-start: 0;
        padding-top: 0;
        display: grid;
        grid-template-columns: 54px 1fr;
        grid-template-rows: auto auto;
        gap: 0.4rem 0.8rem;
        align-items: start;
    }

    #articles article > aside > img {
        grid-row: 2;
        grid-column: 1;
        position: static;
        width: 54px;
        height: 54px;
    }

    #articles article > aside h2 {
        grid-row: 1;
        grid-column: 1 / -1;
        margin: 0;
    }

    #articles article > aside small {
        grid-row: 2;
        grid-column: 2;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .post-meta {
        align-items: flex-start;
    }

    #bio figure {
        float: none;
        width: min(240px, 100%);
        margin: 0 auto 1.5rem;
    }

    body.language_ar #bio figure {
        margin: 0 auto 1.5rem;
    }

    #trainingPrograms {
        grid-template-columns: 1fr;
    }

    #trainingPrograms article {
        padding: 1.2rem 1.2rem 1.2rem 3.2rem;
    }

    body.language_ar #trainingPrograms article {
        padding: 1.2rem 3.2rem 1.2rem 1.2rem;
    }

    #trainingPrograms article::before {
        inset-inline-start: 1.1rem;
    }

    .logos {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }

    #testimonials {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    #maps iframe {
        min-height: 340px;
    }
}

@media (max-width: 400px) {
    .logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
pre.highlightCode {
    font-family : "Ubuntu Mono";
    text-shadow: none;
}


.snippet-wrap pre.sh_sourceCode  {
    border-radius: 3px;
    box-shadow : 1px 2px 1px #7b775f;
    padding: 0;
    margin: 10px 0;
}


.sh_ide-eclipse .sh_sourceCode {
    background: #E5E2D5;
}

.snippet-wrap .snippet-num li {
    padding-left: 0;
    height: 20px;
}

pre.highlightCode.bash {
    border-radius: 3px;
    box-shadow : 1px 2px 1px #7b775f;
    background: #f3eee2;
    padding: 7px 16px;
    color: #3a2a1a;
    overflow: auto;
} 
