/* ============================================================
   Dr. Areej Salaymeh — Personal Academic Website
   style.css — green academic theme inspired by classic faculty
   pages, with a fresh, modern polish.
   ============================================================ */

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

:root {
  --bg:           #f4f7fb;   /* page background: cool light gray-blue */
  --card:         #ffffff;
  --blue:         #1d4e89;   /* primary: headings & links     */
  --blue-mid:     #2c6cb0;
  --blue-bright:  #3d8bd4;   /* header banner accent          */
  --blue-deep:    #143a66;   /* darker / hover                */
  --accent:       #5eb3f0;   /* bright accent                 */
  --text:         #2a2f36;
  --text-muted:   #5a6572;
  --footer:       #102236;
  --footer-text:  #9fb0c2;
  --border:       #d3dbe6;   /* separators                    */
  --border-solid: #e1e7ef;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(20,40,70,.08);
  --shadow-lg: 0 8px 30px rgba(20,40,70,.14);
  --transition: 0.2s ease;
  --max-w: 1060px;
  --serif: 'Lora', 'Palatino Linotype', Palatino, Garamond, Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }

img { max-width: 100%; display: block; }
img[alt="email address"] { display: inline-block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ----------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---------- Header / Banner -------------------------------- */
.site-header {
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-mid) 100%);
  border-bottom: 4px solid var(--blue-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.header-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: center;
  min-height: 88px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand a { color: #fff; text-decoration: none; }
.brand a:hover { color: #fff; text-decoration: none; }
.brand__name {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__name { color: #fff; }

/* Menu */
.menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.menu a:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
}
.menu a.active {
  background: var(--blue-deep);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Page Grid (home: two columns) ------------------ */
.page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  padding: 48px 28px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

/* Single-column inner pages */
.page--single {
  display: block;
  max-width: 820px;
  padding: 48px 28px 64px;
}

/* ---------- Sidebar ---------------------------------------- */
.sidebar { position: sticky; top: 112px; margin-left: -20px; }

.sidebar__photo {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  margin: 0 auto 22px;
}

.sidebar__initials {
  width: 220px; height: 220px;
  margin: 0 auto 22px;
  border-radius: var(--radius);
  background: var(--blue-deep);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 700;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.sidebar__card {
  background: var(--card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.sidebar__title {
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
}
.sidebar__dept {
  color: var(--text);
  font-size: .82rem;
  line-height: 1.35;
  margin-bottom: 10px;
  white-space: nowrap;
}
.sidebar__org {
  color: var(--text-muted);
  font-size: .8rem;
  margin-bottom: 10px;
  white-space: nowrap;
}
.sidebar__email {
  font-size: .92rem;
  margin-bottom: 0;
  word-break: break-word;
  display: flex;
  justify-content: center;
}

.sidebar__card h2 {
  font-size: 1.25rem;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--blue-bright);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .92rem;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row i {
  color: var(--blue-mid);
  width: 18px;
  text-align: center;
  margin-top: 5px;
  flex-shrink: 0;
}
.contact-row .label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.sidebar__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.sidebar__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition);
}
.sidebar__social a:hover { background: var(--blue-deep); text-decoration: none; }

/* ---------- Content / Posts -------------------------------- */
.content { min-width: 0; }

.post {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--border);
}
.post:last-child { border-bottom: none; margin-bottom: 0; }

.post__title {
  font-size: 2rem;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.post__title--sub { font-size: 1.1rem; }

.post__rule {
  width: 56px; height: 3px;
  background: var(--blue-bright);
  border-radius: 2px;
  margin-bottom: 20px;
}

.entry { text-align: justify; }
.entry p { line-height: 1.75; }
.entry strong { color: var(--text); font-weight: 700; }

.highlight {
  color: var(--blue-mid);
  font-weight: 700;
}

/* Research interest inline tags */
.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.interest-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  background: rgba(61,139,212,.12);
  color: var(--blue-deep);
  border: 1px solid rgba(29,78,137,.20);
}

/* ---------- News list -------------------------------------- */
.news { list-style: none; }
.news li {
  padding: 6px 0 6px 26px;
  border-bottom: 1px dashed var(--border);
  position: relative;
  line-height: 1.5;
  font-size: .88rem;
  text-align: justify;
}
.news li:last-child { border-bottom: none; }
.news li::before {
  content: '';
  position: absolute;
  left: 4px; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.news .date {
  font-weight: 400;
  color: inherit;
}

/* ---------- Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--serif);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 2px solid var(--blue);
  transition: background var(--transition), color var(--transition);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Inner-page section blocks ---------------------- */
.lead { font-size: 1.08rem; color: var(--text); margin-bottom: 24px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--text-muted); line-height: 1.65; }
.card .interests { margin-top: 12px; }

/* Publications */
.pub-year {
  font-size: 1.3rem;
  color: var(--blue);
  border-left: 4px solid var(--blue-bright);
  padding-left: 14px;
  margin: 36px 0 16px;
}
.pub-list { list-style: none; }
.pub-item {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .85rem;
  line-height: 1.5;
  text-align: justify;
}
.pub-item:last-child { border-bottom: none; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state i { font-size: 2.4rem; color: var(--blue-bright); margin-bottom: 14px; }

/* Courses taught */
.course-org {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin: 40px 0 0;
}
.course-org:first-of-type { margin-top: 6px; }
.course-org__note {
  display: block;
  font-size: .85rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1px;
  margin-bottom: 4px;
}
.course-list { list-style: none; margin-top: 6px; }
.course {
  padding: 3px 0;
  line-height: 1.45;
}
.course:last-child { border-bottom: none; }
.course__head { display: block; }
.course__code {
  font-weight: 700;
  color: var(--blue-mid);
  margin-right: 6px;
}
.course__name { font-weight: 600; color: var(--text); }
.course__terms {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
}
.course__terms::before { content: ""; }

/* Graduate research lab alumni */
.alumni-list { list-style: none; }
.alum {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.alum:last-child { border-bottom: none; }
.alum__name {
  display: block;
  font-weight: 600;
  color: var(--blue);
  font-size: .92rem;
}
.alum__project {
  display: block;
  font-style: italic;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.55;
  margin-top: 4px;
}
.alum__project::before {
  content: "Project: ";
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}
.alum__award {
  display: block;
  margin-top: 4px;
  font-size: .88rem;
  font-weight: 400;
  color: var(--text-muted);
}
.alum__award i { color: var(--blue-mid); margin-right: 4px; }
.alum__date {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Lab intro bar — above photo banner */
.lab-intro-bar {
  background: var(--bg);
  padding: 28px 0 20px;
}
.lab-intro-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
}

/* Lab page header — logo left, text right */
.lab-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 6px;
}
.lab-logo {
  display: block;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}
.lab-header__text { display: flex; flex-direction: column; gap: 6px; }
.lab-header__title { margin: 0; }

/* Lab page subtitle */
.lab-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  font-style: normal;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

/* Lab highlight callout (home page) */
.lab-callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(61,139,212,.12), rgba(29,78,137,.08));
  border: 1px solid rgba(29,78,137,.18);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.lab-callout__icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.lab-callout h3 { font-size: 1.3rem; margin-bottom: 6px; }
.lab-callout p { font-size: .95rem; color: var(--text); margin-bottom: 14px; }
@media (max-width: 520px) { .lab-callout { flex-direction: column; gap: 12px; } }

/* Lab member card */
.member {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.member:last-child { border-bottom: none; }
.member__photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.member__name { font-weight: 700; color: var(--blue); }
.member__role { font-size: .9rem; color: var(--text-muted); }

/* Lab Director featured card */
.director-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 16px;
}
.director-card__photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  border: 4px solid var(--blue-mid);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.director-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.director-card__founder {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  background: var(--blue-mid);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}
.director-card__title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-mid);
  margin-top: 4px;
}
.director-card__role {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.director-card__bio {
  margin-top: 14px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: justify;
}
.director-card__links {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.director-card__links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-mid);
}
.director-card__links a i { margin-right: 5px; }
@media (max-width: 600px) {
  .director-card { flex-direction: column; align-items: center; text-align: center; }
  .director-card__links { justify-content: center; }
}

/* MIND Lab dark sidebar variant */
.sidebar--mindlab .sidebar__photo {
  border-radius: 50%;
  border: 3px solid #d4a23a;
  box-shadow: 0 0 0 6px rgba(212,162,58,0.18);
  max-width: 150px;
  margin-bottom: 18px;
}
.sidebar--mindlab .sidebar__initials {
  border-radius: 50%;
  border-color: #d4a23a;
}
.sidebar--mindlab .sidebar__card {
  background: #16365c;
  border-color: rgba(94,179,240,0.15);
}
.sidebar--mindlab .sidebar__dept { color: rgba(255,255,255,0.82); white-space: normal; }
.sidebar--mindlab .sidebar__org  { color: rgba(255,255,255,0.48); white-space: normal; }
.sidebar--mindlab .sidebar__social a {
  background: rgba(255,255,255,0.1);
  color: #5eb3f0;
}
.sidebar--mindlab .sidebar__social a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}
.sidebar--mindlab a { color: #5eb3f0; }
.sidebar--mindlab a:hover { color: #fff; }

/* In the News card */
.news-feature-card {
  display: block;
  border-left: 4px solid var(--blue);
  background: linear-gradient(135deg, #eef4fb 0%, #f7faff 100%);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.news-feature-card:hover {
  background: linear-gradient(135deg, #ddeaf7 0%, #eef4fb 100%);
  border-color: var(--blue-deep);
  text-decoration: none;
}
.news-feature-card__label {
  font-size: 0.75rem;
  color: var(--blue-mid);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.news-feature-card__label i { margin-right: 5px; font-size: 0.7rem; }
.news-feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deep);
  line-height: 1.4;
}

/* MIND Lab featured video */
.lab-video-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.lab-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

/* MIND Lab photo banner */
.lab-photo-banner {
  background: var(--footer);
  padding: 32px 0 28px;
  overflow: hidden;
  position: relative;
}
.lab-photo-strip {
  display: flex;
  gap: 24px;
  padding: 16px 48px 20px;
  overflow-x: auto;
  align-items: center;
  scrollbar-width: none;
}
.lab-photo-strip::-webkit-scrollbar { display: none; }
.lab-photo-frame {
  flex-shrink: 0;
  background: #fff;
  padding: 7px 7px 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.35);
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
  transition: transform .3s ease;
}
.lab-photo-frame--cap { padding-bottom: 42px; }
.lab-photo-frame figcaption {
  font-size: 0.6rem;
  color: #555;
  text-align: center;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.3;
}
.lab-photo-frame img {
  display: block;
  height: 190px;
  width: auto;
  pointer-events: none;
  user-select: none;
  border-radius: 1px;
}
.lab-photo-frame:nth-child(1)  { transform: rotate(-2.1deg); }
.lab-photo-frame:nth-child(2)  { transform: rotate(1.6deg);  }
.lab-photo-frame:nth-child(3)  { transform: rotate(-0.8deg); }
.lab-photo-frame:nth-child(4)  { transform: rotate(2.4deg);  }
.lab-photo-frame:nth-child(5)  { transform: rotate(-1.7deg); }
.lab-photo-frame:nth-child(6)  { transform: rotate(1.1deg);  }
.lab-photo-frame:nth-child(7)  { transform: rotate(-2.5deg); }
.lab-photo-frame:nth-child(8)  { transform: rotate(0.9deg);  }
.lab-photo-frame:nth-child(9)  { transform: rotate(-1.3deg); }
.lab-photo-frame:nth-child(10) { transform: rotate(2.0deg);  }

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.82);
  border: none;
  color: var(--blue-deep);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  transition: background .2s, opacity .25s;
}
.banner-arrow:hover { background: #fff; }
.banner-arrow--left  { left: 14px;  opacity: 0; pointer-events: none; }
.banner-arrow--right { right: 14px; }
.banner-arrow--left.visible  { opacity: 1; pointer-events: auto; }
.banner-arrow--right.hidden  { opacity: 0; pointer-events: none; }
@keyframes arrow-hint {
  0%   { transform: translateY(-50%) translateX(0);    }
  35%  { transform: translateY(-50%) translateX(12px); }
  65%  { transform: translateY(-50%) translateX(5px);  }
  100% { transform: translateY(-50%) translateX(0);    }
}
.banner-arrow--right { animation: arrow-hint 0.7s ease-out 0.6s 4; }

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  background: var(--card);
  pointer-events: none;
  cursor: default;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; cursor: default; pointer-events: none; }
.gallery__item--wide img { object-fit: contain; background: var(--card); }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } .gallery__item--wide { grid-column: span 1; } }

/* Service photo gallery with captions */
.service-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}
.service-gallery__item {
  flex: 0 0 auto;
  max-width: 340px;
  margin: 0;
}
.service-gallery__item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.service-gallery__item figcaption {
  margin-top: 7px;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* Numbered list (student guide) */
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 26px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0; margin-top: 3px;
}

/* ---------- Footer ----------------------------------------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 30px 0;
  text-align: center;
}
.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: var(--footer-text);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 600;
}
.footer-menu a:hover { color: var(--accent); text-decoration: none; }
.site-footer .copyright {
  font-size: .8rem;
  letter-spacing: .03em;
  color: #6b7a8c;
  margin: 0;
}

/* ---------- Scroll animations ------------------------------ */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ------------------------------------- */
@media (max-width: 880px) {
  .page { grid-template-columns: 1fr; gap: 36px; }
  .sidebar { position: static; order: -1; max-width: 420px; margin: 0 auto; width: 100%; margin-left: auto; }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; grid-template-columns: none; }
}

@media (max-width: 680px) {
  html { font-size: 16px; }
  .header-inner { min-height: 64px; position: relative; }
  .brand__name { font-size: 1.4rem; }
  .menu { display: none; width: 100%; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; padding: 8px 0 12px; gap: 2px; }
  .menu a { padding: 10px 8px; }
  .hamburger { display: flex; position: absolute; right: 24px; top: 18px; }
  .post__title { font-size: 1.7rem; }
}
