@font-face {
    font-family: Edura Arabic;
    src: url('/assets/noto-arabic.woff') format('woff');
    font-display: swap;
    font-weight: 400;
}
@font-face {
    font-family: Edura Arabic;
    src: url('/assets/noto-arabic-bold.woff') format('woff');
    font-display: swap;
    font-weight: 700;
}
:root {
    --petrol: #10656c;
    --deep: #0b3940;
    --dark: #102e33;
    --gold: #c6a150;
    --paper: #f7f8f4;
    --line: #dce5e0;
    --muted: #4b6262;
    --white: #fff;
    --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--dark); background: var(--paper); font: 400 15px/1.75 'Edura Arabic', system-ui, sans-serif; }
a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.35; }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.45; }
h3 { font-size: 1.12rem; }
h1 + p, h2 + p, h3 + p { margin-block-start: .65rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -9rem; background: var(--white); padding: .5rem; z-index: 20; }
.skip:focus { top: 1rem; }
.shell { width: min(1220px, 92vw); margin-inline: auto; }
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-main { flex: 1; }
.public-header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; line-height: 1.3; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand b { display: block; font: 700 1.04rem/1.4 system-ui, sans-serif; letter-spacing: -.025em; }
.brand small { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.brand img { object-fit: contain; border-radius: 10px; background: var(--white); padding: 4px; }
.public-header nav, .actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.public-header nav { gap: clamp(.65rem, 2.1vw, 1.85rem); }
.public-header nav a { color: var(--dark); font-weight: 700; font-size: .88rem; }
.public-header nav a[aria-current] { color: var(--petrol); text-decoration: underline; text-underline-offset: .4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .68rem 1.15rem; min-height: 44px; background: var(--petrol); color: var(--white); font-weight: 700; border: 1px solid transparent; border-radius: 10px; white-space: nowrap; cursor: pointer; }
.button:hover { background: var(--deep); text-decoration: none; }
.button.outline { background: transparent; color: var(--petrol); border-color: #a0bab8; }
.button.outline:hover { background: #e8f2ef; }
.button.gold { background: var(--gold); color: #231b0c; }
.button.gold:hover { background: #dfba6a; }
.button.small { font-size: .83rem; padding: .38rem .75rem; min-height: 36px; }
.link-button { border: 0; background: none; cursor: pointer; padding: .25rem .4rem; color: inherit; text-decoration: underline; }
.hero { background: var(--deep); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; padding-block: 2.6rem; gap: clamp(1.8rem, 5vw, 5.5rem); align-items: center; }
.hero-content { padding-block: 1.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.17; letter-spacing: -.025em; }
.hero p { margin-block: 1.25rem 1.65rem; color: #e2efeb; max-width: 36rem; font-size: 1.08rem; }
.hero .outline { color: var(--white); border-color: #a3bdb9; }
.hero .outline:hover { background: #17535a; }
.hero-photo { border-radius: var(--radius); aspect-ratio: 1.38; width: 100%; height: auto; object-fit: cover; box-shadow: 0 0 0 1px #ffffff33; }
.eyebrow { display: block; font-weight: 700; font-size: .88rem; color: var(--petrol); margin-bottom: .65rem; }
.hero .eyebrow { color: #e5be70; }
.section { padding-block: clamp(2rem, 5.5vw, 4rem); }
.section-alt { background: #edf3ef; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-title p, .page-title p, .muted { color: var(--muted); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--dark); overflow: hidden; }
.info-card:hover { text-decoration: none; border-color: #88aca7; }
.card-body { padding: 1.1rem 1.25rem; }
.card-body p { color: var(--muted); font-size: .92rem; }
.card-body .text-link { display: inline-block; color: var(--petrol); font-weight: 700; margin-top: .9rem; }
.card-image { width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.university-fallback { display: grid; place-items: center; padding: 1rem; background: linear-gradient(135deg, var(--deep), var(--petrol)); color: var(--white); font-weight: 700; }
.university-logo { width: 48px; height: 48px; object-fit: contain; margin-block-end: .5rem; }
.public-footer { background: var(--deep); color: var(--white); }
.public-footer a { color: #e9f3ef; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; gap: 1rem; }
.footer-inner p { font-size: .83rem; color: #cededa; }
.footer-inner .actions { gap: 1.1rem; }
.article { max-width: 760px; margin-inline: auto; padding: clamp(1.2rem, 4.5vw, 3.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.article p { margin-block: 1rem; }
.article .eyebrow { margin-block: 0 .5rem; }
.workspace { display: grid; grid-template-columns: 237px minmax(0, 1fr); min-height: 100vh; }
.side { display: flex; flex-direction: column; align-self: start; position: sticky; top: 0; min-height: 100vh; background: var(--deep); color: var(--white); padding: 1.3rem; }
.side .brand small { color: #d6e5e2; }
.side nav { display: grid; gap: .28rem; margin-top: 2.25rem; }
.side nav a { color: #e7f2ef; padding: .6rem .75rem; border-radius: 8px; }
.side nav a:hover, .side nav a[aria-current] { background: #20575c; color: var(--white); text-decoration: none; }
.side nav a[aria-current] { border-inline-start: 3px solid var(--gold); font-weight: 700; }
.side-account { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .5rem; justify-content: space-between; font-size: .86rem; }
.work-main { padding: clamp(1rem, 3.4vw, 3rem); max-width: 1510px; width: 100%; }
.work-main h1 { font-size: clamp(1.6rem, 3.2vw, 2.55rem); }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.page-title p { margin-top: .3rem; }
.panel { padding: clamp(1rem, 2.8vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-block: 0 1rem; }
.panel > h2 { margin-bottom: .75rem; }
.panel .form-stack { margin-top: 1rem; }
.narrow, .auth-card { width: min(100%, 510px); margin-inline: auto; }
.public-main > .narrow { margin-block: 3rem; width: min(91vw, 510px); }
.auth-card { width: min(91vw, 440px); margin-block: clamp(2.4rem, 12vh, 7rem); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 2rem; border-radius: var(--radius); box-shadow: 0 14px 38px #0b394011; }
.auth-card h1 { font-size: 2rem; margin-bottom: 1.2rem; }
.form-grid, .form-stack { display: grid; gap: .9rem 1rem; }
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-submit { align-self: end; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: .32rem; font-weight: 700; font-size: .9rem; }
input, select, textarea { width: 100%; min-height: 43px; padding: .46rem .66rem; border: 1px solid #b8cbc6; border-radius: 8px; background: var(--white); color: var(--dark); }
textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"] { width: auto; min-height: auto; accent-color: var(--petrol); }
.checkbox { display: flex; align-items: center; gap: .5rem; }
input[type="file"] { max-width: 100%; }
.actions input { width: auto; max-width: 180px; min-height: 36px; }
.notice { padding: .75rem 1rem; border: 1px solid #a9c9b8; border-radius: 9px; color: #1a5036; background: #e7f3e9; margin-block-end: .9rem; overflow-wrap: anywhere; }
.public-main > .notice { width: min(92vw, 600px); margin: 1rem auto; }
.notice.error { color: #7e2725; background: #fff0ee; border-color: #e5bdb9; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; text-align: start; }
th, td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead { background: #edf3ef; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); font-size: .81rem; }
td.empty { text-align: center; color: var(--muted); padding: 1.6rem; }
.badge { display: inline-flex; background: #e9f1f0; color: #225259; border-radius: 999px; padding: .17rem .58rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge.success { background: #e4f2e7; color: #235b3c; }
.badge.gold { background: #f8edd6; color: #674914; }
.badge.danger { background: #fae8e5; color: #7d2928; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.stat span { display: block; color: var(--muted); font-size: .9rem; }
.stat strong { display: block; font-size: 2rem; color: var(--petrol); line-height: 1.5; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem 1rem; margin: .7rem 0 0; }
.key-grid dt { color: var(--muted); font-size: .85rem; }
.key-grid dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.chip-row { margin-bottom: .85rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.doc-list { display: grid; gap: .35rem; list-style: none; padding: 0; margin: 0 0 .85rem; }
.doc-list li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding-block: .32rem; border-bottom: 1px solid var(--line); }
.details { border-top: 1px solid var(--line); padding-top: .65rem; margin-top: .8rem; }
details summary { cursor: pointer; font-weight: 700; }
.details form { margin-block-start: .75rem; }
.pagination { margin-top: .75rem; }
.photo { width: 104px; height: 126px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.panel-note { margin-block: .65rem; color: var(--muted); }
.summary-line { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
details .form-grid { margin-top: .75rem; }
@media (max-width: 950px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace { grid-template-columns: 185px minmax(0, 1fr); }
    .stats, .key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
    .nav-inner { flex-wrap: wrap; padding-block: .65rem; gap: .55rem; }
    .public-header nav { order: 3; flex-basis: 100%; padding-bottom: .15rem; }
    .hero-grid { grid-template-columns: 1fr; gap: .65rem; padding-block: 1.25rem; }
    .hero-content { padding-block: .5rem; }
    .hero-photo { aspect-ratio: 1.65; }
    .workspace { display: block; }
    .side { position: static; min-height: 0; padding: .7rem 4vw; }
    .side nav { display: flex; flex-wrap: wrap; margin: .45rem 0; }
    .side nav a { padding: .24rem .46rem; font-size: .82rem; }
    .side-account { padding: 0; }
    .checklist, .form-grid.two { grid-template-columns: 1fr; }
    .footer-inner, .page-title { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 400px) {
    .form-grid { grid-template-columns: 1fr; }
    .section-title { align-items: start; flex-direction: column; }
}

.hero-brand {
    justify-self: center;
    width: min(100%, 480px);
    border: 1px solid #e5be7070;
    border-radius: 19px;
    padding: .48rem;
    background: #ffffff0c;
}
.hero-brand img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.media-banner {
    padding-block: clamp(2.25rem, 5vw, 4.2rem);
    color: var(--white);
    background: var(--deep);
    border-bottom: 3px solid var(--gold);
}
.media-banner p {
    color: #e0eeea;
}
.reel-grid, .post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.65rem, 2.2vw, 1.4rem);
}
.reel-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.reel-card video {
    display: block;
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    max-height: 410px;
    object-fit: contain;
    background: var(--deep);
}
.reel-details {
    padding: .9rem 1.05rem 1.05rem;
}
.reel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--petrol);
    margin-block-end: .28rem;
}
.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.post-visual {
    display: block;
    background: #e6efed;
}
.post-visual img {
    display: block;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.post-details {
    padding: .8rem 1rem 1rem;
}
.post-details h3 {
    margin-block: 0 .25rem;
}
.media-tabs {
    display: flex;
    gap: .5rem;
    margin-block-start: 1.1rem;
}
.media-tabs a {
    display: inline-flex;
    padding: .35rem .85rem;
    border: 1px solid #a7c4c1;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
}
.media-tabs a[aria-current="page"] {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}
@media (max-width: 700px) {
    .hero-brand {
        width: min(100%, 400px);
    }
    .reel-grid, .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reel-details, .post-details {
        padding: .65rem .7rem;
    }
    .reel-details h3, .post-details h3 {
        font-size: .94rem;
    }
    .reel-meta {
        font-size: .72rem;
    }
}

.print-controls { margin: 0 auto 1rem; max-width: 210mm; }
.a4-sheet {
    isolation: isolate;
    position: relative;
    max-width: 210mm;
    margin: auto;
    background: white;
    border: 1px solid var(--line);
    padding: clamp(1rem, 4vw, 14mm);
}
.a4-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .055;
    background: url('/assets/icon.png') center / min(42%, 84mm) auto no-repeat;
}
.a4-sheet header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.a4-sheet h1 { margin: .25rem 0; color: var(--petrol); }
.a4-photo { width: 29mm; height: 36mm; object-fit: contain; }
.a4-sheet th, .a4-sheet td { border: 1px solid var(--line); padding: .4rem .6rem; }
.a4-sheet th { width: 37%; background: #eaf4f1; }
.a4-footer { margin-top: 1rem; color: var(--muted); }
.button:disabled { opacity: .55; cursor: default; }
@media print {
    @page { size: A4; margin: 10mm; }
    body.workspace { display: block; background: white; }
    body:has(.a4-sheet) :is(.side, .print-controls, .skip, .notice) { display: none; }
    body:has(.a4-sheet) .work-main { padding: 0; max-width: none; }
    .a4-sheet { padding: 0; border: none; print-color-adjust: exact; }
    .a4-sheet tr { break-inside: avoid; }
}

.client-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.client-steps li {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 58px;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--muted);
}
.client-steps li span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #e4ece9;
    font-weight: 700;
}
.client-steps li.current { border-color: var(--gold); color: var(--dark); box-shadow: 0 0 0 2px #c6a15024; }
.client-steps li.current span { background: var(--gold); color: #201909; }
.client-steps li.done { border-color: #9dc2b0; color: #225b43; }
.client-steps li.done span { background: #dff1e6; color: #225b43; }
.service-fields { padding: .9rem; border: 1px dashed #a8c0bb; border-radius: 12px; background: #f5f9f7; }
.loading-card { max-width: 780px; margin-inline: auto; text-align: center; }
.loading-ring { width: 72px; height: 72px; margin: 0 auto 1rem; border: 7px solid #d8e7e3; border-top-color: var(--gold); border-radius: 50%; animation: edura-spin 1s linear infinite; }
@keyframes edura-spin { to { transform: rotate(360deg); } }
.appointment-sheet { min-height: 277mm; }

body.workspace.archive { background: #07191d; color: #eaf3f1; }
.workspace.archive .side { background: #041216; border-inline-end: 1px solid #1f454a; }
.workspace.archive .work-main { background: radial-gradient(circle at 85% 0, #153d42 0, #07191d 36rem); min-height: 100vh; }
.workspace.archive .panel,
.workspace.archive .client-steps li,
.workspace.archive .auth-card { background: #0d282d; border-color: #275158; color: #eaf3f1; }
.workspace.archive .panel h1,
.workspace.archive .panel h2,
.workspace.archive .panel h3,
.workspace.archive .page-title h1 { color: #f4f8f7; }
.workspace.archive .muted,
.workspace.archive .panel-note,
.workspace.archive .page-title p,
.workspace.archive .key-grid dt { color: #a8c3c0; }
.workspace.archive input,
.workspace.archive select,
.workspace.archive textarea { background: #092126; border-color: #3d6569; color: #f4f8f7; }
.workspace.archive thead { background: #12363b; }
.workspace.archive th,
.workspace.archive td { border-color: #21464b; }
.workspace.archive a { color: #e2bd70; }
.workspace.archive .button { color: #fff; }
.workspace.archive .button.outline { color: #e8c985; border-color: #7b6a43; }
.workspace.archive .service-fields { background: #0a2125; border-color: #416269; }
.workspace.archive .client-steps li.current { color: #fff; }
.workspace.archive .client-steps li.done { color: #bce4cf; }

@media (max-width: 760px) {
    .client-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.public-header nav { gap: clamp(.45rem, 1.05vw, 1.15rem); }
.hero h1 { font-size: clamp(2.1rem, 4.35vw, 4rem); }
.service-category { border-top: 3px solid var(--gold); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: clamp(1rem, 4vw, 3rem); }
.about-art { display: block; width: 100%; max-width: 470px; height: auto; border-radius: var(--radius); }
.process-links { margin-top: 1.25rem; }
.media-note a { color: #f6d78c; text-decoration: underline; }
@media (max-width: 700px) {
    .about-grid { grid-template-columns: 1fr; }
    .public-header nav { flex-wrap: wrap; }
}
