/* ==========================================================================
   Flatrat e Dijes – stilet e faqes publike (dizajni akademik)
   Ngjyrat vijnë nga paneli i adminit si variabla CSS (--primary, --secondary …)
   ========================================================================== */

:root {
    --primary: #14264a;
    --secondary: #b8913a;
    --accent: #8a6a2c;
    --dark: #0b1830;
    --light: #f7f3ea;
    --text: #2f3440;
    --on-primary: #fff;
    --on-secondary: #16202e;
    --on-accent: #fff;

    --heading: var(--primary);
    --muted: color-mix(in srgb, var(--text) 86%, #fff);
    --hairline: color-mix(in srgb, var(--primary) 14%, #fff);
    --gold-soft: color-mix(in srgb, var(--secondary) 14%, #fff);
    --gold-line: color-mix(in srgb, var(--secondary) 55%, transparent);

    --font-display: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius: 3px;
    --container: 1200px;
    --header-h: 88px;
    --shadow: 0 18px 40px -22px rgba(11, 24, 48, .35);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 1000;
    background: var(--secondary);
    color: var(--on-secondary);
    padding: 8px 14px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

/* ---------- Elementet bazë ---------- */

.gold-rule { display: block; width: 64px; height: 2px; margin: 22px 0 24px; background: var(--secondary); position: relative; }
.gold-rule::after { content: ""; position: absolute; left: 72px; top: 0; width: 10px; height: 2px; background: var(--secondary); }
.gold-rule-center { margin-left: auto; margin-right: auto; left: -9px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--secondary); }

.display-title, .section-title {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 600;
    margin: 0;
}
.display-title em { font-style: italic; color: var(--accent); }

.subsection-title {
    font-size: 1.55rem;
    margin: 56px 0 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
}

.lead, .lead p { font-size: 1.2rem; color: var(--heading); font-weight: 600; line-height: 1.6; }

.tag, .inst-age {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.media-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: var(--primary);
    color: var(--secondary);
    font-size: 3.4rem;
}
.media-placeholder span { font-size: 1rem; color: rgba(255, 255, 255, .8); padding: 0 20px; text-align: center; }

/* ---------- Butonat ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: 1em 1.9em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s;
}
.btn-lg { padding: 1.15em 2.2em; }
.btn-block { width: 100%; }

.btn-navy, .btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-navy:hover, .btn-primary:hover { background: var(--dark); color: var(--on-primary); }

.btn-gold, .btn-secondary { background: var(--secondary); color: var(--on-secondary); }
.btn-gold:hover, .btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 82%, #000); color: var(--on-secondary); }

.btn-outline-navy, .btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-navy:hover, .btn-outline:hover { background: var(--primary); color: var(--on-primary); }

.btn-outline-gold { border-color: var(--secondary); color: var(--primary); background: transparent; }
.btn-outline-gold:hover { background: var(--secondary); color: var(--on-secondary); }

.btn-line-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-line-light:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-row-center { justify-content: center; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--primary);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--secondary);
}
.link-more .bi { transition: transform .25s; }
.link-more:hover { color: var(--accent); }
.link-more:hover .bi { transform: translateX(4px); }
.link-more-light { color: #fff; margin-top: 8px; }
.link-more-light:hover { color: var(--secondary); }

/* ---------- Shiriti i sipërm ---------- */

.topbar { background: var(--light); border-bottom: 1px solid var(--gold-line); font-size: .84rem; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.topbar a { display: inline-block; padding: 8px 0; color: var(--text); }
.topbar a:hover { color: var(--accent); }
.topbar .bi { color: var(--accent); margin-right: 5px; }
.topbar-info span { color: var(--muted); }

.topbar-drop { position: relative; }
.topbar-drop summary { cursor: pointer; list-style: none; color: var(--text); }
.topbar-drop summary::-webkit-details-marker { display: none; }
.topbar-drop summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .65rem; margin-left: 6px; }
.topbar-drop summary:hover { color: var(--accent); }
.topbar .topbar-drop ul {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 120;
    display: block;
    min-width: 200px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--hairline);
    border-top: 2px solid var(--secondary);
    box-shadow: var(--shadow);
}
.topbar-drop li a { display: block; padding: 8px 18px; }
.topbar-drop li a:hover { background: var(--light); }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a, .topbar .social-item a {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.topbar .social-item .bi { margin: 0; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 24, 48, .35); }
.site-header .container, .topbar .container { max-width: 1320px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--primary); }
.brand:hover { color: var(--primary); }
.brand-logo { max-height: 50px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--secondary); color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand-text { white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li > a {
    position: relative;
    display: block;
    padding: 12px 11px;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform .3s;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { transform: scaleX(1); }
.main-nav > ul > li > a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--hairline);
    background: #fff;
    cursor: pointer;
    padding: 13px 11px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--primary); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Slider-i ---------- */

.hero {
    position: relative;
    background:
        repeating-linear-gradient(180deg, transparent 0 46px, color-mix(in srgb, var(--secondary) 9%, transparent) 46px 47px),
        var(--primary);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 55%;
    background: linear-gradient(90deg, var(--primary) 30%, color-mix(in srgb, var(--primary) 0%, transparent));
    pointer-events: none;
}
.hero-slides { display: grid; }
.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
    min-height: clamp(520px, 74vh, 660px);
    padding: 70px 24px 110px;
}
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--secondary); }
.hero-title { color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 600; line-height: 1.2; margin: 0; }
.hero .gold-rule { margin: 28px 0; }
.hero-text { font-size: 1.12rem; color: rgba(255, 255, 255, .92); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; margin: 0; }
.hero-media::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid var(--secondary);
    pointer-events: none;
}
.hero-media img, .hero-media-empty {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    filter: saturate(.92);
}
.hero-media-empty { display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 70%, #000); }
.hero-media-empty img { width: 45%; aspect-ratio: auto; filter: none; }

.hero-slide.is-active .hero-copy > * { animation: rise .9s both; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-slide.is-active .hero-media img { animation: settle 1.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: .4; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.hero-count { font-family: var(--font-display); font-size: 1.05rem; color: rgba(255, 255, 255, .55); letter-spacing: .08em; }
.hero-count strong { color: var(--secondary); font-size: 1.5rem; font-weight: 600; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 30px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; transition: width .3s; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: rgba(255, 255, 255, .3); transition: background .3s; }
.hero-dots button.is-active { width: 52px; }
.hero-dots button.is-active::before { background: var(--secondary); }
.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: .25s;
}
.hero-arrow.prev { margin-left: auto; }
.hero-arrow:hover { border-color: var(--secondary); color: var(--secondary); }

/* Slider-i në faqet e brendshme */
.hero-compact .hero-grid { min-height: 0; padding: 56px 24px 90px; gap: 60px; }
.hero-compact .hero-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.hero-compact .hero-media img { aspect-ratio: 4 / 3; }
.hero-compact .hero-controls { bottom: 26px; }

/* ---------- Parimet ---------- */

.principles { border-bottom: 1px solid var(--hairline); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { display: flex; gap: 20px; padding: 44px 34px; border-left: 1px solid var(--hairline); }
.principle:first-child { border-left: 0; padding-left: 0; }
.principle-icon { flex: none; font-size: 1.8rem; color: var(--secondary); line-height: 1; margin-top: 4px; }
.principle h3 { font-size: 1.2rem; margin-bottom: 6px; }
.principle p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Seksionet ---------- */

.section { padding: 80px 0; }
.section-ivory, .section-light { background: var(--light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin: 0; }

.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .diamond-list { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose li, .diamond-list li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.prose li::before, .diamond-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--secondary);
    transform: rotate(45deg);
}
.prose-lead p:first-child { font-size: 1.18rem; font-weight: 600; line-height: 1.6; color: var(--heading); }

/* ---------- Mirë se vini ---------- */

.welcome-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 90px; align-items: center; }
.welcome-media { position: relative; padding: 0 0 40px 40px; }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: -20px 20px 20px -20px; border: 1px solid var(--secondary); pointer-events: none; z-index: 1; }
.framed img, .framed .media-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.since-seal {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary);
    color: rgba(255, 255, 255, .75);
    text-align: center;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--secondary);
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
}
.since-seal strong { font-family: var(--font-display); font-size: 2rem; color: var(--secondary); letter-spacing: 0; line-height: 1.1; font-weight: 600; }
.welcome-body .btn-row { margin-top: 30px; }

/* ---------- Institucionet ---------- */

.inst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 34px; }
.inst-card { display: flex; flex-direction: column; background: #fff; }
.inst-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary); }
.inst-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, filter .6s; filter: saturate(.9); }
.inst-card:hover .inst-media img { transform: scale(1.05); filter: saturate(1.05); }
.inst-body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 34px 30px 32px; border: 1px solid var(--hairline); border-top: 0; }
.inst-num {
    position: absolute;
    top: -26px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #fff;
    border: 1px solid var(--secondary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}
.inst-body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.inst-body h3 a { color: var(--primary); }
.inst-body h3 a:hover { color: var(--accent); }
.inst-body p { color: var(--muted); font-size: 1rem; flex: 1; }

/* ---------- Arritjet ---------- */

.honours {
    padding: 72px 0;
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 45%),
        var(--dark);
    color: #fff;
}
.honours-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.honours .display-title { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.honours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.honour { padding: 40px 18px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); }
.honour:first-child { border-left: 0; }
.honour-value { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--secondary); margin-bottom: 12px; }
.honour-label { font-size: 1rem; color: rgba(255, 255, 255, .88); }

/* ---------- Shërbimet ---------- */

.services-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 80px; align-items: start; }
.services-head { position: sticky; top: calc(var(--header-h) + 30px); }
.services-head p { color: var(--muted); margin-bottom: 28px; }
.diamond-list { columns: 2; column-gap: 44px; margin: 0; }
.diamond-list li { break-inside: avoid; padding: 0 0 16px 26px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline); }

/* ---------- Shtyllat (Pse të na zgjidhni) ---------- */

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gold-line); }
.pillar { padding: 38px 28px 10px; border-left: 1px solid var(--hairline); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-num { display: block; font-family: var(--font-display); font-size: 2.2rem; font-style: italic; color: var(--secondary); line-height: 1; margin-bottom: 18px; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--muted); font-size: 1rem; }

/* ---------- Mendimet ---------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.quote { margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--secondary); }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.45; color: var(--heading); }
.quote figcaption { font-size: .95rem; color: var(--muted); }

/* ---------- Galeria ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 40px; }
.gallery-grid-sm { grid-template-columns: repeat(3, 1fr); }
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--secondary);
    opacity: 0;
    transition: opacity .35s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 14px 12px; color: #fff; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 44px; }
.filter-chips a { padding: 6px 0; font-size: .88rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.filter-chips a:hover { color: var(--primary); }
.filter-chips a.active { color: var(--primary); border-color: var(--secondary); }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px; background: rgba(8, 14, 26, .95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: 100%; }
.lightbox p { color: #fff; margin-top: 14px; font-family: var(--font-display); font-size: 1.2rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox button:hover { border-color: var(--secondary); color: var(--secondary); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; }
.lb-next { right: 14px; top: 50%; }

/* ---------- Vendndodhja (harta e institucionit) ---------- */

.location { padding: 64px 0; background: var(--light); border-top: 1px solid var(--gold-line); }
.location .section-head { margin-bottom: 40px; }
.location .section-head p { margin-top: 4px; }
.location .section-head .bi { color: var(--secondary); }
.location-map { position: relative; border: 1px solid var(--hairline); background: #fff; padding: 10px; }
.location-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.location-actions { margin-top: 30px; }

/* Harta para pëlqimit */
.map-consent { display: grid; place-items: center; min-height: 420px; padding: 30px 20px; background: var(--light); text-align: center; }
.map-consent-inner { max-width: 420px; display: grid; justify-items: center; gap: 12px; }
.map-consent-icon { font-size: 2.4rem; color: var(--secondary); line-height: 1; }
.map-consent p { margin: 0; color: var(--text); }
.map-consent small { color: var(--muted); font-size: .85rem; }
.contact-map .map-consent { height: 100%; }

/* ---------- Banneri i cookies ---------- */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 300;
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--hairline);
    border-top: 3px solid var(--secondary);
    box-shadow: 0 24px 60px -20px rgba(11, 24, 48, .45);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { padding: 24px 26px; display: grid; gap: 16px; }
.cookie-text h2 { font-size: 1.3rem; margin-bottom: 6px; }
.cookie-text p { margin: 0; font-size: .95rem; color: var(--text); }
.cookie-text a { font-weight: 600; text-decoration: underline; }
.cookie-options { display: grid; gap: 10px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--hairline); cursor: pointer; font-size: .92rem; }
.cookie-option input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.cookie-option strong { display: block; color: var(--heading); }
.cookie-option span { color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .btn[hidden] { display: none; }
.btn-link-plain { background: none; border-color: transparent; color: var(--primary); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.btn-link-plain:hover { color: var(--accent); }

.legal-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.legal-links a, .link-button { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, .8); font: inherit; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover, .link-button:hover { color: var(--secondary); }

/* ---------- Partnerët ---------- */

.partners { padding: 50px 0; }
.partners-title { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partners-title::before, .partners-title::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.partners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 44px; }
.partners-list img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.partners-list a:hover img { filter: none; opacity: 1; }
.partners-list span { font-weight: 600; color: var(--muted); }

/* ---------- Ftesa (regjistrimet) ---------- */

.invite { padding: 72px 0; background: var(--light); border-top: 1px solid var(--gold-line); text-align: center; }
.invite-inner { max-width: 820px; }
.invite-logo { height: 54px; width: auto; margin: 0 auto 26px; }
.invite .display-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.invite p { color: var(--muted); font-size: 1.08rem; margin-bottom: 34px; }

/* ---------- Faqet e brendshme ---------- */

.page-banner { padding: 70px 0 58px; background: var(--light); border-bottom: 1px solid var(--gold-line); text-align: center; }
.page-banner h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin: 14px 0 0; }
.page-banner .gold-rule { margin-top: 22px; margin-bottom: 18px; }
.page-banner p { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.page-banner-light { padding: 44px 0 40px; }
.page-banner-light h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.breadcrumb { font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 8px 0; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb [aria-current] { color: var(--accent); margin: 0; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; }
.content-main > .lead { margin-bottom: 30px; }
.content-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 40px; }
.sidebar { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 30px; border: 1px solid var(--hairline); border-top: 2px solid var(--secondary); background: #fff; }
.side-card h3 { font-size: 1.25rem; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--text); font-weight: 600; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a .bi { font-size: .75rem; color: var(--secondary); transition: transform .25s; }
.side-nav a:hover { color: var(--accent); }
.side-nav a:hover .bi { transform: translateX(3px); }
.side-nav a.active { color: var(--accent); }
.side-nav a.active::before { content: ""; width: 7px; height: 7px; background: var(--secondary); transform: rotate(45deg); margin-right: 10px; order: -1; }
.side-nav a.active { justify-content: flex-start; }
.side-nav a.active .bi { margin-left: auto; }
.side-card-accent { background: var(--primary); border-color: var(--primary); border-top-color: var(--secondary); color: rgba(255, 255, 255, .9); }
.side-card-accent h3 { color: #fff; }
.side-phone { display: block; margin-bottom: 14px; font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--secondary); line-height: 1.2; }
.side-phone small { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.side-phone:hover { color: #fff; }

/* Lista e institucioneve (programet.php) */
.program-list { display: grid; gap: 110px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--secondary); pointer-events: none; }
.split-reverse .split-media::before { inset: -18px -18px 18px 18px; }
.split-media img, .split-media .media-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body .section-title { margin-bottom: 14px; }

/* Stafi */
.staff-group:first-child .subsection-title { margin-top: 0; }
.cards-grid { display: grid; gap: 30px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.staff-card { text-align: center; }
.staff-photo { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: var(--light); margin-bottom: 18px; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.staff-initials { display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid var(--secondary); border-radius: 50%; font-family: var(--font-display); font-size: 2.4rem; color: var(--primary); }
.staff-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.staff-role { font-size: .9rem; font-weight: 700; color: var(--accent); }
.staff-body p { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .bi { font-size: 2.6rem; color: var(--secondary); }

/* ---------- Kontakti ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--hairline); margin-bottom: 80px; }
.contact-card { padding: 36px 26px; text-align: center; border-left: 1px solid var(--hairline); }
.contact-card:first-child { border-left: 0; }
.contact-card > span { display: block; font-size: 1.5rem; color: var(--secondary); margin-bottom: 10px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { color: var(--text); font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: stretch; }
.contact-form-wrap .section-title { margin-bottom: 26px; }
.contact-maps { display: grid; gap: 28px; align-content: start; }
.contact-map-item { margin: 0; }
.contact-map-item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-map-item h3 { font-size: 1.15rem; margin: 0; }
.contact-map-item h3 .bi { color: var(--secondary); }
.contact-map { position: relative; height: 260px; border: 1px solid var(--hairline); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map .map-consent { min-height: 0; padding: 20px; }
.contact-map .map-consent p { font-size: .9rem; }
.map-placeholder { height: 100%; font-size: 3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 700; color: var(--primary); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px var(--gold-soft); }
.has-error input, .has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .86rem; }
.form-field-captcha input { max-width: 140px; }
.cf-turnstile { margin-bottom: 18px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-note .bi { color: var(--secondary); margin-top: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; margin-bottom: 22px; border-left: 3px solid; font-weight: 600; }
.alert-success { background: #eef6f0; color: #1d6b3c; border-color: #2e8b57; }
.alert-error { background: #fbeeed; color: #9c2a22; border-color: #b3261e; }

/* ---------- 404 ---------- */

.not-found-code { display: block; font-family: var(--font-display); font-size: clamp(6rem, 16vw, 10rem); font-weight: 600; font-style: italic; line-height: 1; color: var(--secondary); }

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

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .82); font-size: 1rem; }
.footer-crest { text-align: center; max-width: 620px; margin: 0 auto; padding: 60px 0 40px; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; margin-bottom: 18px; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.footer-brand:hover { color: var(--secondary); }
.footer-crest .social { justify-content: center; margin-top: 18px; }
.footer-crest .social a { color: var(--secondary); border-color: var(--gold-line); }
.footer-crest .social a:hover { background: var(--secondary); color: var(--dark); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 50px 0 60px; border-top: 1px solid var(--gold-line); }
.site-footer h3 { font-family: var(--font-body); font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 22px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 2px; }
.footer-links a { display: inline-block; padding: 6px 0; color: inherit; }
.footer-links a:hover { color: #fff; }
.footer-links .ext { font-size: .65rem; opacity: .6; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact .bi { color: var(--secondary); margin-top: 3px; }
.footer-contact a { display: inline-block; padding: 5px 0; color: #fff; }
.footer-contact a:hover { color: var(--secondary); }
.footer-contact small { display: block; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.footer-bottom p { margin: 0; text-align: center; }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border: 1px solid var(--secondary);
    background: var(--primary);
    color: var(--secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--secondary); color: var(--primary); }

/* ---------- Animacionet ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

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

@media (min-width: 1101px) and (max-width: 1400px) {
    .nav-cta { display: none; }
    .brand-text strong { font-size: 1.25rem; }
    .main-nav > ul > li > a { padding: 12px 7px; font-size: .82rem; letter-spacing: .02em; }
    .main-nav > ul > li > a::after { left: 8px; right: 8px; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: flex; position: relative; z-index: 210; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        width: min(340px, 88vw);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 96px 30px 30px;
        overflow-y: auto;
        background: #fff;
        border-left: 2px solid var(--secondary);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .35s ease, visibility .35s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .main-nav > ul > li > a { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
    .main-nav > ul > li > a::after { display: none; }
    .nav-cta { margin-top: 26px; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(11, 24, 48, .55); }

    .with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .cards-4, .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; gap: 50px; }
    .services-head { position: static; }
}

@media (max-width: 900px) {
    .section { padding: 60px 0; }
    .hero::before { width: 100%; }
    .hero-grid, .hero-compact .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 44px 24px 36px; min-height: 0; }
    .hero-controls, .hero-compact .hero-controls { position: relative; bottom: auto; padding-top: 14px; padding-bottom: 34px; }
    .hero-media { order: -1; margin: 18px 0 0 18px; }
    .hero-media img, .hero-compact .hero-media img { aspect-ratio: 4 / 3; }
    .principles-grid { grid-template-columns: 1fr; }
    .principle, .principle:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--hairline); }
    .principle:first-child { border-top: 0; }
    .welcome-grid, .split, .contact-layout { grid-template-columns: 1fr; gap: 60px; }
    .split-reverse .split-media { order: 0; }
    .inst-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .program-list { gap: 80px; }
}

@media (max-width: 640px) {
    :root { --header-h: 72px; }
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .hero-grid, .hero-compact .hero-grid { padding-left: 18px; padding-right: 18px; }
    .topbar-info li + li, .hide-sm { display: none; }
    .brand-logo { max-height: 40px; }
    .brand-text strong { font-size: 1.15rem; }
    .hero-title { font-size: 1.85rem; }
    .hero-actions .btn { flex: 1; }
    .hero-arrow { display: none; }
    .welcome-media { padding: 0 0 50px 24px; }
    .since-seal { width: 124px; height: 124px; }
    .since-seal strong { font-size: 2rem; }
    .inst-grid, .cards-3, .cards-4, .pillars, .form-row, .sidebar, .footer-grid { grid-template-columns: 1fr; }
    .pillar, .pillar:first-child, .pillar:nth-child(3) { padding: 28px 0 6px; border-left: 0; border-top: 1px solid var(--hairline); }
    .pillars { border-top: 0; }
    .diamond-list { columns: 1; }
    .honour { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-card { border-left: 0; border-top: 1px solid var(--hairline); }
    .contact-card:first-child { border-top: 0; }
    .gallery-grid, .gallery-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .invite .btn, .location-actions .btn { width: 100%; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-height: calc(100vh - 20px); overflow-y: auto; }
    .cookie-inner { padding: 20px 18px; }
    .cookie-actions .btn { flex: 1 1 100%; }
    .map-consent { min-height: 320px; }
    .location { padding: 60px 0; }
    .location-map { padding: 6px; }
    .location-map iframe { height: 320px; }
    .lightbox { padding: 60px 12px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; }
    .split-media::before, .split-reverse .split-media::before, .framed::before, .hero-media::before { inset: -10px 10px 10px -10px; }
}
