/* ============================================================
   DITIB Gladbeck — Editorial Theme
   Mihrap: warm stone, antique gold, Iznik blue-green
   ============================================================ */

:root {
    /* Palet */
    --paper:        #F4ECDC;
    --paper-soft:   #EAE0CB;
    --paper-deep:   #DDD0B0;
    --ink:          #1B1611;
    --ink-soft:     #4A3F2E;
    --ink-muted:    #7A6C57;
    --gold:         #B89254;
    --gold-deep:    #8E6B30;
    --gold-soft:    #D4B886;
    --iznik:        #1C4E5B;
    --iznik-deep:   #0F2D38;
    --terracotta:   #A0451E;
    --stone:        #C9BC9F;
    --line:         rgba(27, 22, 17, 0.12);
    --line-strong:  rgba(27, 22, 17, 0.28);

    /* Tipografi */
    --font-display: 'Cormorant Garamond', 'Cormorant', serif;
    --font-body:    'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --font-arabic:  'Amiri', 'Cormorant Garamond', serif;
    --font-ui:      'Cormorant SC', 'Cormorant Garamond', serif;

    /* Spacing — modular */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10: 144px;

    /* Layout */
    --container: 1280px;
    --container-wide: 1440px;
    --container-text: 720px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body.ed {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 0;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Parchment grain texture (subtle) */
body.ed::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
    mix-blend-mode: multiply;
    opacity: 0.08;
}

body.ed img { max-width: 100%; display: block; }
body.ed a { color: inherit; text-decoration: none; }
body.ed button, body.ed input, body.ed textarea, body.ed select {
    font: inherit; color: inherit; background: none; border: 0; outline: 0;
}

/* ============================================================
   Typography
   ============================================================ */
.ed h1, .ed h2, .ed h3, .ed h4, .ed h5, .ed h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.ed h1 { font-size: clamp(48px, 8vw, 112px); font-weight: 300; }
.ed h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 400; }
.ed h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; }
.ed h4 { font-size: 22px; font-weight: 500; }
.ed h5 { font-size: 17px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; font-family: var(--font-ui); }
.ed h6 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; font-family: var(--font-ui); }

.ed p { margin: 0 0 1em; }
.ed p + p { text-indent: 1.5em; }

.ed .display-italic { font-style: italic; font-family: var(--font-display); font-weight: 300; }
.ed .arabic-mark {
    font-family: var(--font-arabic);
    font-style: italic;
    color: var(--gold);
    font-size: 1.35em;
    line-height: 1;
    display: inline-block;
}
.ed .small-caps {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
}
.ed .eyebrow {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
}
.ed .eyebrow::before, .ed .eyebrow::after {
    content: ""; height: 1px; width: 32px; background: var(--gold);
}
.ed .eyebrow.left::before, .ed .eyebrow.left::after { display: none; }
.ed .eyebrow.left { padding-left: 0; }

/* ============================================================
   Container & Grid
   ============================================================ */
.ed-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.ed-container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-6); }
.ed-container-text { width: 100%; max-width: var(--container-text); margin: 0 auto; padding: 0 var(--s-6); }

.ed-section { padding: var(--s-9) 0; position: relative; }
.ed-section--tight { padding: var(--s-7) 0; }
.ed-section--loose { padding: var(--s-10) 0; }
.ed-section--ink { background: var(--ink); color: var(--paper); }
.ed-section--iznik { background: var(--iznik-deep); color: var(--paper); }
.ed-section--soft { background: var(--paper-soft); }

.ed-section--ink h1, .ed-section--ink h2, .ed-section--ink h3,
.ed-section--iznik h1, .ed-section--iznik h2, .ed-section--iznik h3 {
    color: var(--paper);
}

/* ============================================================
   Ornaments
   ============================================================ */
.ed-rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}
.ed-rule--gold { background: var(--gold); }
.ed-rule--double {
    height: 5px;
    background: none;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.ed-ornament-star {
    display: inline-block;
    width: 22px; height: 22px;
    color: var(--gold);
}
.ed-ornament-star svg { width: 100%; height: 100%; }

.ed-divider {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    color: var(--gold);
    margin: var(--s-6) auto;
    max-width: 480px;
}
.ed-divider::before, .ed-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Section index number (editorial) */
.ed-section-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 13px;
    color: var(--gold-deep);
    letter-spacing: 0.1em;
}

/* Geometric pattern overlay */
.ed-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23B89254' stroke-width='0.5' opacity='0.18'><path d='M30 0 L37 15 L52 18 L41 30 L44 45 L30 38 L16 45 L19 30 L8 18 L23 15 Z'/></g></svg>");
    background-size: 60px 60px;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================================
   Buttons
   ============================================================ */
.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    padding: 14px 28px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
    position: relative;
    overflow: hidden;
}
.ed-btn::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
    z-index: -1;
}
.ed-btn:hover { color: var(--paper); }
.ed-btn:hover::before { transform: translateY(0); }
.ed-btn .arrow {
    display: inline-block;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.ed-btn:hover .arrow { transform: translateX(4px); }

.ed-btn--gold { border-color: var(--gold); color: var(--gold-deep); }
.ed-btn--gold::before { background: var(--gold); }
.ed-btn--gold:hover { color: var(--ink); }

.ed-btn--ghost { border-color: var(--paper); color: var(--paper); }
.ed-btn--ghost::before { background: var(--paper); }
.ed-btn--ghost:hover { color: var(--ink); }

.ed-link {
    display: inline-flex; align-items: center; gap: var(--s-2);
    color: var(--ink);
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.22em;
    padding-bottom: 4px;
    position: relative;
}
.ed-link::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: currentColor; transform-origin: right; transform: scaleX(0);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.ed-link:hover::after { transform-origin: left; transform: scaleX(1); }

/* ============================================================
   Header / Nav
   ============================================================ */
.ed-topbar {
    background: var(--ink);
    color: var(--paper-soft);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}
.ed-topbar a { color: var(--paper-soft); transition: color .2s; }
.ed-topbar a:hover { color: var(--gold); }
.ed-topbar .ed-container-wide {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-5);
}
.ed-topbar-left { display: flex; gap: var(--s-6); align-items: center; }
.ed-topbar-right { display: flex; gap: var(--s-5); align-items: center; }
.ed-topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.ed-topbar-item i { color: var(--gold); font-size: 12px; }

.ed-lang { display: inline-flex; gap: 4px; align-items: center; }
.ed-lang button {
    cursor: pointer;
    color: var(--paper-soft);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 2px 6px;
    opacity: 0.6;
    transition: opacity .2s;
}
.ed-lang button.active { opacity: 1; color: var(--gold); }
.ed-lang button:hover { opacity: 1; }
.ed-lang-sep { opacity: 0.4; }

.ed-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(10px) saturate(120%);
    background: rgba(244, 236, 220, 0.96);
    box-shadow: 0 1px 0 var(--line);
}

.ed-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-7);
    padding: var(--s-4) 0;
}

.ed-brand {
    display: flex; align-items: center; gap: var(--s-3);
    cursor: pointer;
}
.ed-brand-mark {
    height: 56px;
    display: flex; align-items: center;
    flex-shrink: 0;
}
.ed-brand-mark img { height: 100%; width: auto; display: block; }
.ed-brand-mark svg { width: 100%; height: 100%; }

.ed-nav { display: flex; justify-content: center; gap: var(--s-6); }
.ed-nav a {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    padding: 10px 2px;
    position: relative;
    cursor: pointer;
    transition: color .25s;
}
.ed-nav a:hover { color: var(--gold-deep); }
.ed-nav a::after {
    content: ""; position: absolute; bottom: 2px; left: 0;
    width: 100%; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.ed-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ed-nav a.active {
    color: var(--gold-deep);
}
.ed-nav a.active::after {
    transform: scaleX(1);
    background: var(--gold-deep);
    height: 2px;
}

/* Prayer times bar */
.ed-prayer-bar {
    background: var(--paper-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
}
.ed-prayer-grid {
    display: grid;
    grid-template-columns: auto repeat(5, 1fr);
    align-items: center;
    gap: var(--s-6);
}
.ed-prayer-label {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    color: var(--gold-deep);
    font-size: 18px;
    line-height: 1.2;
    border-right: 1px solid var(--line);
    padding-right: var(--s-5);
}
.ed-prayer-label .city {
    font-family: var(--font-ui);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    display: block;
    color: var(--ink-muted);
    margin-bottom: 2px;
}
.ed-prayer-item {
    display: flex; flex-direction: column; gap: 4px;
    align-items: center;
    text-align: center;
}
.ed-prayer-item .name {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    color: var(--ink-muted);
}
.ed-prayer-item .time {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Hero
   ============================================================ */
.ed-hero {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
}
.ed-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.ed-hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(27,22,17,0.35), rgba(27,22,17,0.85) 70%),
        linear-gradient(90deg, rgba(27,22,17,0.7), rgba(27,22,17,0.2));
}
.ed-hero-inner {
    position: relative;
    z-index: 2;
    padding: var(--s-9) 0;
    max-width: 880px;
}
.ed-hero h1 {
    font-style: italic;
    font-weight: 300;
    color: var(--paper);
}
.ed-hero h1 em {
    font-style: normal;
    color: var(--gold);
}
.ed-hero p.lede {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    color: var(--paper-soft);
    max-width: 560px;
    margin: var(--s-5) 0 var(--s-6);
}
.ed-hero-meta {
    display: flex; gap: var(--s-5); align-items: center;
    margin-bottom: var(--s-5);
}
.ed-hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.ed-hero-pager {
    position: absolute;
    right: var(--s-6);
    bottom: var(--s-6);
    z-index: 3;
    display: flex; gap: var(--s-3);
    max-width: calc(100% - 2 * var(--s-6));
}
.ed-hero-pager button {
    width: 168px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex; flex-direction: column;
    text-align: left;
    color: var(--paper-soft);
    opacity: 0.7;
    transition: opacity .3s, transform .3s;
}
.ed-hero-pager button:hover { opacity: 1; transform: translateY(-3px); }
.ed-hero-pager .thumb {
    width: 100%; height: 72px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(244,236,220,0.25);
    filter: grayscale(50%);
    transition: filter .3s, border-color .3s;
}
.ed-hero-pager button:hover .thumb,
.ed-hero-pager button.active .thumb {
    filter: grayscale(0);
    border-color: var(--gold);
}
.ed-hero-pager .caption {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.25;
    color: var(--paper-soft);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}
.ed-hero-pager .eyebrow-tag {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 9px;
    color: var(--gold);
    margin-bottom: 4px;
}

/* ============================================================
   Cards (article / event / service)
   ============================================================ */
.ed-card { position: relative; }
.ed-card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-soft);
    position: relative;
}
.ed-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.ed-card:hover .ed-card-image img { transform: scale(1.06); }
.ed-card-image::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(27,22,17,0.55));
    pointer-events: none;
}
.ed-card-meta {
    display: flex; gap: var(--s-3); align-items: center;
    margin-top: var(--s-4);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: var(--ink-muted);
}
.ed-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.ed-card-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.15;
    margin: var(--s-3) 0;
    color: var(--ink);
}
.ed-card-excerpt {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.55;
}
.ed-card a.cover { position: absolute; inset: 0; z-index: 2; }

.ed-card--landscape .ed-card-image { aspect-ratio: 3 / 2; }
.ed-card--square .ed-card-image { aspect-ratio: 1 / 1; }

/* Service card variant */
.ed-service {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: var(--s-6);
    transition: all .4s cubic-bezier(.2,.7,.2,1);
    display: flex; flex-direction: column; gap: var(--s-4);
    position: relative;
}
.ed-service:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -30px rgba(27,22,17,0.25);
}
.ed-service-icon {
    width: 48px; height: 48px;
    color: var(--gold-deep);
}
.ed-service-time {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: var(--ink-muted);
    display: flex; align-items: center; gap: var(--s-2);
    border-top: 1px solid var(--line);
    padding-top: var(--s-4);
    margin-top: auto;
}

/* Event card (date-centric) */
.ed-event {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--s-5);
    align-items: start;
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .35s;
}
.ed-event:hover { padding-left: var(--s-3); }
.ed-event-date {
    text-align: center;
    border: 1px solid var(--gold);
    padding: var(--s-3) 0;
    background: var(--paper-soft);
}
.ed-event-date .day {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 48px;
    line-height: 1;
    color: var(--ink);
    display: block;
}
.ed-event-date .month {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--gold-deep);
    margin-top: 4px;
}
.ed-event-body h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 26px;
    margin-bottom: var(--s-2);
}
.ed-event-meta {
    display: flex; gap: var(--s-4); flex-wrap: wrap;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--ink-muted);
    margin-bottom: var(--s-2);
}

/* ============================================================
   Personnel (görevliler)
   ============================================================ */
.ed-person {
    display: flex; flex-direction: column; gap: var(--s-3);
    position: relative;
}
.ed-person-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-soft);
    position: relative;
    filter: sepia(15%) saturate(90%);
}
.ed-person-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s;
}
.ed-person:hover .ed-person-photo img { transform: scale(1.04); }
.ed-person-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--paper));
    opacity: 0.7;
    pointer-events: none;
}
.ed-person-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: var(--ink);
}
.ed-person-role {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--gold-deep);
}
.ed-person-social {
    display: flex; gap: var(--s-3);
    font-size: 14px;
    color: var(--ink-muted);
    margin-top: var(--s-2);
}
.ed-person-social a:hover { color: var(--gold); }

/* ============================================================
   Forms
   ============================================================ */
.ed-form { display: flex; flex-direction: column; gap: var(--s-4); }
.ed-input,
.ed-textarea {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s, background .25s;
    box-shadow: inset 0 1px 0 rgba(27,22,17,0.04);
}
.ed-input::placeholder, .ed-textarea::placeholder {
    color: var(--ink-muted);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 17px;
    opacity: 0.85;
}
.ed-input:hover, .ed-textarea:hover {
    border-color: var(--ink-soft);
}
.ed-input:focus, .ed-textarea:focus {
    border-color: var(--gold-deep);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(184,146,84,0.18);
    outline: 0;
}
.ed-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* Dark-on-light formlarda (footer bülten) için varyant */
.ed-input--ghost {
    background: rgba(244,236,220,0.06);
    border-color: rgba(244,236,220,0.25);
    color: var(--paper);
    box-shadow: none;
}
.ed-input--ghost::placeholder { color: rgba(244,236,220,0.55); }
.ed-input--ghost:hover { border-color: rgba(244,236,220,0.45); }
.ed-input--ghost:focus { border-color: var(--gold); background: rgba(244,236,220,0.1); box-shadow: 0 0 0 3px rgba(184,146,84,0.25); }

.ed-newsletter {
    display: flex; gap: var(--s-2);
    align-items: flex-end;
}
.ed-newsletter .ed-input { flex: 1; }

/* ============================================================
   Footer
   ============================================================ */
.ed-footer {
    background: var(--ink);
    color: var(--paper-soft);
    padding: var(--s-9) 0 var(--s-5);
    position: relative;
}
.ed-footer h6 {
    color: var(--gold);
    margin-bottom: var(--s-5);
}
.ed-footer p, .ed-footer a, .ed-footer li {
    color: var(--paper-soft);
    font-size: 15px;
    line-height: 1.75;
}
.ed-footer a:hover { color: var(--gold); }
.ed-footer ul { list-style: none; padding: 0; margin: 0; }
.ed-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--s-7);
    margin-bottom: var(--s-7);
}
.ed-footer-bar {
    border-top: 1px solid rgba(244,236,220,0.12);
    padding-top: var(--s-4);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    color: var(--ink-muted);
}
.ed-footer-brand .name {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--paper);
    margin-bottom: var(--s-3);
    display: block;
}
.ed-footer .arabic-mark { display: block; font-size: 28px; margin-bottom: var(--s-3); }

/* ============================================================
   Page banner (sub-pages)
   ============================================================ */
.ed-page-head {
    padding: var(--s-9) 0 var(--s-7);
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.ed-page-head .ed-pattern { opacity: 0.4; }
.ed-page-head .num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    color: var(--gold-deep);
    letter-spacing: 0.05em;
}
.ed-page-head h1 {
    margin-top: var(--s-3);
    margin-bottom: var(--s-4);
    font-style: italic;
    font-weight: 300;
}
.ed-page-head .crumbs {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: var(--ink-muted);
}
.ed-page-head .crumbs a:hover { color: var(--gold); }

/* ============================================================
   Article / Detail
   ============================================================ */
.ed-article {
    max-width: var(--container-text);
    margin: 0 auto;
    padding: var(--s-8) var(--s-6);
}
.ed-article .lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: var(--s-7);
    text-align: center;
}
.ed-article-image {
    margin: var(--s-7) calc(-1 * var(--s-6));
    aspect-ratio: 16/9;
    overflow: hidden;
}
.ed-article-image img { width: 100%; height: 100%; object-fit: cover; }
.ed-article .body { font-size: 18px; line-height: 1.85; color: var(--ink); }
.ed-article .body p { margin-bottom: var(--s-5); }
/* Drop-cap sadece body'nin ilk paragrafına */
.ed-article .body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4.2em;
    line-height: 0.85;
    float: left;
    margin: 6px 14px -4px 0;
    color: var(--gold-deep);
    font-weight: 500;
}

/* ============================================================
   Sidebar (list pages)
   ============================================================ */
.ed-sidebar { display: flex; flex-direction: column; gap: var(--s-7); }
.ed-side-block { padding-bottom: var(--s-5); }
.ed-side-block h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.ed-side-block h4::after {
    content: "";
    position: absolute; left: 0; bottom: -1px; width: 48px; height: 1px;
    background: var(--gold);
}
.ed-side-block ul { list-style: none; padding: 0; margin: 0; }
.ed-side-block li {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: padding-left .3s;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink-soft);
}
.ed-side-block li:hover { padding-left: 8px; color: var(--gold-deep); }
.ed-side-block li::before { content: "— "; color: var(--gold); margin-right: 6px; }

/* Search box */
.ed-search {
    display: flex;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    transition: border-color .3s;
}
.ed-search:focus-within { border-color: var(--gold); }
.ed-search input {
    flex: 1;
    padding: 12px 16px;
    background: transparent; border: 0; outline: 0;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--ink);
}
.ed-search input::placeholder { color: var(--ink-muted); font-style: italic; }
.ed-search button {
    padding: 0 16px;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    transition: background .25s;
}
.ed-search button:hover { background: var(--gold-deep); }

/* Pagination */
.ed-pagi { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-7); }
.ed-pagi a {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 17px;
    cursor: pointer;
    transition: all .25s;
}
.ed-pagi a:hover, .ed-pagi a.active {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.ed-pagi a.disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   Gallery (Index)
   ============================================================ */
.ed-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 4px;
}
.ed-gallery a {
    overflow: hidden;
    position: relative;
    background: var(--ink);
}
.ed-gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.ed-gallery a:nth-child(4) { grid-row: span 2; }
.ed-gallery img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s, filter .6s;
    filter: sepia(20%) saturate(80%);
}
.ed-gallery a:hover img { transform: scale(1.08); filter: sepia(0%) saturate(100%); }

/* ============================================================
   Two-up About block (Index)
   ============================================================ */
.ed-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-9);
    align-items: center;
}
.ed-about-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: var(--s-3);
}
.ed-about-imgs .a {
    grid-row: 1 / 3;
    overflow: hidden;
    background: var(--paper-soft);
}
.ed-about-imgs .a img { width: 100%; height: 100%; object-fit: cover; }
.ed-about-imgs .b, .ed-about-imgs .c { overflow: hidden; }
.ed-about-imgs .b img, .ed-about-imgs .c img { width: 100%; height: 100%; object-fit: cover; }
.ed-about-text h2 { margin-bottom: var(--s-4); }
.ed-about-text p { color: var(--ink-soft); font-size: 17px; line-height: 1.75; }

/* ============================================================
   Iletisim
   ============================================================ */
.ed-contact {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-9);
    align-items: start;
}
.ed-contact-info { display: flex; flex-direction: column; gap: var(--s-5); }
.ed-contact-item {
    display: flex; flex-direction: column; gap: 4px;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}
.ed-contact-item .label {
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 10px;
    color: var(--gold-deep);
}
.ed-contact-item .value {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--ink);
}

/* ============================================================
   Lightbox (in-page image viewer)
   ============================================================ */
.ed-lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 12, 8, 0.96);
    z-index: 10000;
    display: grid; place-items: center;
    padding: var(--s-7);
    animation: ed-fade-in .3s ease-out;
}
.ed-lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: ed-lb-zoom .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes ed-lb-zoom {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.ed-lightbox-caption {
    position: absolute;
    bottom: var(--s-7);
    left: 50%; transform: translateX(-50%);
    color: var(--paper-soft);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 80vw;
}
.ed-lightbox-close,
.ed-lightbox-nav {
    position: absolute;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: rgba(244, 236, 220, 0.08);
    border: 1px solid rgba(244, 236, 220, 0.18);
    color: var(--paper);
    cursor: pointer;
    transition: all .25s;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
}
.ed-lightbox-close:hover,
.ed-lightbox-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}
.ed-lightbox-close { top: var(--s-5); right: var(--s-5); }
.ed-lightbox-prev  { top: 50%; left: var(--s-5); transform: translateY(-50%); }
.ed-lightbox-next  { top: 50%; right: var(--s-5); transform: translateY(-50%); }
.ed-lightbox-counter {
    position: absolute;
    top: var(--s-5); left: var(--s-5);
    color: var(--paper-soft);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
}

/* Clickable images cursor */
.ed-clickable-img { cursor: zoom-in; }

/* ============================================================
   Animations (page reveal)
   ============================================================ */
@keyframes ed-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ed-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ed-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.ed-reveal { opacity: 0; animation: ed-fade-up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.ed-reveal-1 { animation-delay: .05s; }
.ed-reveal-2 { animation-delay: .15s; }
.ed-reveal-3 { animation-delay: .25s; }
.ed-reveal-4 { animation-delay: .35s; }
.ed-reveal-5 { animation-delay: .45s; }

/* ============================================================
   Utility
   ============================================================ */
.ed-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.ed-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.ed-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.ed-grid-list-side { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-7); }
.ed-stack { display: flex; flex-direction: column; gap: var(--s-5); }
.ed-row { display: flex; gap: var(--s-4); align-items: center; }
.ed-center { text-align: center; }
.ed-mt-7 { margin-top: var(--s-7); }
.ed-mt-6 { margin-top: var(--s-6); }
.ed-mb-7 { margin-bottom: var(--s-7); }
.ed-mb-6 { margin-bottom: var(--s-6); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .ed-header-inner { grid-template-columns: 1fr auto; gap: var(--s-4); }
    .ed-nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); }
    .ed-prayer-grid { grid-template-columns: repeat(5, 1fr); }
    .ed-prayer-label { display: none; }
    .ed-footer-grid { grid-template-columns: 1fr 1fr; }
    .ed-about { grid-template-columns: 1fr; gap: var(--s-6); }
    .ed-contact { grid-template-columns: 1fr; gap: var(--s-6); }
    .ed-grid-list-side { grid-template-columns: 1fr; }
    .ed-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ed-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .ed h1 { font-size: clamp(40px, 11vw, 64px); }
    .ed h2 { font-size: clamp(28px, 7vw, 44px); }
    .ed-section { padding: var(--s-7) 0; }
    .ed-topbar-left { display: none; }
    .ed-prayer-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
    .ed-prayer-item .time { font-size: 16px; }
    .ed-prayer-item .name { font-size: 9px; letter-spacing: 0.18em; }
    .ed-footer-grid { grid-template-columns: 1fr; }
    .ed-grid-3, .ed-grid-4, .ed-grid-2 { grid-template-columns: 1fr; }
    .ed-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .ed-gallery a:nth-child(1), .ed-gallery a:nth-child(4) { grid-column: auto; grid-row: auto; }
    .ed-hero-pager { display: none; }
    .ed-event { grid-template-columns: 80px 1fr; gap: var(--s-3); }
    .ed-event-date .day { font-size: 32px; }
}
