/* =============================================================================
   PAGES  —  news, article, about, partners, and the admin panel
   ========================================================================== */

/* ------------------------------------------------------------- news grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 30px); }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/10; background: var(--brand-light); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.post-card__body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card__body h3 a { color: var(--ink); } .post-card__body h3 a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 1rem; }
.tag { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------- article */
.article { max-width: 760px; margin-inline: auto; }
.article__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article p { font-size: 1.08rem; line-height: 1.75; }
.article__back { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* --------------------------------------------------------------- about */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 820px) { .about-split { grid-template-columns: 1fr; } }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; max-height: 560px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.policy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.policy-list { list-style: none; padding: 0; margin: 0; }
.policy-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.policy-list li .ico { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; color: var(--brand); }
.callout {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff;
  border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow);
}
.callout h2 { color: #fff; }
.callout p { color: #dbe8fa; }
.callout-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.callout-list li { display: flex; gap: .6rem; align-items: flex-start; }
.callout-list .ico { width: 22px; height: 22px; color: #ffcf3f; flex-shrink: 0; margin-top: 2px; }

/* -------------------------------------------------------------- partners */
.partners { border-bottom: 1px solid var(--line); }
.partners__heading {
  text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1.6rem;
}
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.partner-strip__logo { display: flex; align-items: center; justify-content: center; }
.partner-strip img { height: 46px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease); }
.partner-strip__logo:hover img { filter: none; opacity: 1; transform: translateY(-3px); }

/* contact page layout */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.contact-info__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info__item .ico-wrap { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.contact-info__item .ico { width: 22px; height: 22px; }
.contact-info__item h4 { margin: 0 0 .2rem; font-size: 1rem; }
.contact-info__item p, .contact-info__item a { margin: 0; color: var(--body); font-size: .96rem; }

/* =============================================================== ADMIN */
.admin-body { background: var(--bg-alt); }
.admin-shell { max-width: 980px; margin-inline: auto; padding: clamp(16px, 4vw, 40px) var(--gutter) 80px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-top h1 { margin: 0; font-size: 1.6rem; }
.admin-gate { max-width: 400px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); text-align: center; }
.admin-gate .brand { justify-content: center; margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.admin-tab { background: none; border: 0; padding: .8rem 1.1rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-tab.active { color: var(--brand); border-color: var(--brand); }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.admin-card h3 { margin-top: 0; }
.admin-note { background: var(--brand-light); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.4rem; }
.admin-note code { background: #fff; padding: .1em .4em; border-radius: 4px; font-size: .85em; }

/* reorder list */
.reorder { list-style: none; padding: 0; margin: 0; }
.reorder li {
  display: flex; align-items: center; gap: .8rem; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: .6rem;
}
.reorder li[draggable="true"] { cursor: grab; }
.reorder li.dragging { opacity: .5; }
.reorder .grip { color: var(--muted); cursor: grab; }
.reorder .grip .ico { width: 20px; height: 20px; }
.reorder .name { font-weight: 600; flex: 1; text-transform: capitalize; }
.reorder .locked { font-size: .75rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: .15em .6em; border-radius: 100px; }
.reorder .move { background: #fff; border: 1px solid var(--line); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; display: grid; place-items: center; }
.reorder .move:hover { background: var(--brand-light); }
.reorder .toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }

.admin-actions { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(4px); border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 1.5rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.admin-out { width: 100%; min-height: 200px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .82rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; background: #0f1b2d; color: #cfe0f5; white-space: pre; overflow: auto; }
.admin-list-item { display: flex; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .5rem; }
.admin-list-item .title { flex: 1; font-weight: 600; }
.admin-list-item .date { font-size: .82rem; color: var(--muted); }
.chip-btn { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem; cursor: pointer; font-size: .85rem; font-weight: 600; }
.chip-btn:hover { background: var(--brand-light); }
.chip-btn--danger { color: #b42318; } .chip-btn--danger:hover { background: #fdecea; }
