/* ===========================================================
   Uniaisa Journal Series — stylesheet
   =========================================================== */
:root {
  --navy: #0d1b3e;
  --navy-2: #142a5c;
  --blue: #2b59ff;
  --blue-dark: #1d3fbf;
  --gold: #f4b740;
  --ink: #1a2238;
  --muted: #5b6478;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-navy-soft: #f0f3fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(13, 27, 62, .06);
  --shadow-md: 0 14px 40px rgba(13, 27, 62, .10);
  --maxw: 1180px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(43, 89, 255, .28); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: var(--shadow-md); }

/* ===== Topbar ===== */
.topbar { background: var(--navy); color: #cdd6f4; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topbar__text { opacity: .9; }
.topbar__link { color: var(--gold); font-weight: 600; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--navy); }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-family: var(--font-serif); font-size: 1.25rem;
}
.brand__accent { color: var(--blue); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); transition: width .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: 6px; }

.lang-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch__btn {
  border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: .8rem;
  padding: 6px 13px; border-radius: 999px; color: var(--muted); transition: all .18s ease;
}
.lang-switch__btn.is-active { background: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(43, 89, 255, .3); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1100px 500px at 80% -10%, rgba(43, 89, 255, .45), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1c356e 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding-block: 84px 96px; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.hero__title { font-family: var(--font-serif); font-size: clamp(2.6rem, 5.5vw, 4.1rem); line-height: 1.05; font-weight: 600; letter-spacing: -.5px; }
.hero__lead { margin-top: 18px; font-size: 1.1rem; color: #c8d2ee; max-width: 30em; }
.hero__buttons { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__cards { display: grid; gap: 16px; }
.feature-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); transition: transform .2s ease, background .2s ease;
}
.feature-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
.feature-card__icon { font-size: 1.7rem; }
.feature-card h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.feature-card p { color: #c2cdec; font-size: .92rem; }
.feature-card__link { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ===== Stats ===== */
.stats { background: var(--navy-2); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 38px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 600; color: var(--gold); }
.stat__label { font-size: .9rem; color: #c2cdec; }

/* ===== Sections ===== */
.section { padding-block: 84px; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section__title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.15; color: var(--navy); }
.section__head .eyebrow { color: var(--blue); }
.section__intro { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.section__cta { text-align: center; margin-top: 44px; }

/* ===== Chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Journal grid ===== */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journal {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.journal:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.journal__cover {
  height: 150px; display: grid; place-items: center; color: #fff; font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 600; position: relative;
}
.journal__cover span { position: relative; z-index: 1; }
.journal__cover--img { color: transparent; }
.journal-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.02rem; }
.journal__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); }
.journal__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.journal__cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.journal__title { font-size: 1.06rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.journal__issn { font-size: .82rem; color: var(--muted); }
.journal__btn { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: .88rem; color: var(--blue); }

/* ===== Indexing ===== */
.indexing { background: var(--bg-soft); }
.indexing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.index-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.index-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.index-card p { color: var(--muted); }
.link-arrow { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blue); }
.index-logos {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; align-items: center;
}
.index-logos span {
  font-weight: 700; color: var(--navy); opacity: .55; font-size: 1.02rem; letter-spacing: .02em;
  padding: 6px 4px; transition: opacity .2s ease;
}
.index-logos span:hover { opacity: 1; }

/* ===== Team ===== */
/* Flex layout: a single member is centered; adding more wraps and stays centered. */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.member { flex: 1 1 300px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.member:hover { transform: translateY(-4px); }
.member__avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy));
}
.member__name { color: var(--navy); font-size: 1.18rem; }
.member__role { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 12px; }
.member p { color: var(--muted); font-size: .92rem; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }
.cta__inner { text-align: center; padding-block: 70px; }
.cta h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; }
.cta p { margin: 14px auto 28px; max-width: 40em; color: #d4ddf6; font-size: 1.06rem; }

/* ===== Blog ===== */
.blog { background: var(--bg-soft); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); }
.post__cover { height: 128px; position: relative; }
.post__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .22)); }
.post__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; background: var(--gold); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: .8rem; color: var(--muted); font-weight: 600; }
.post__body h3 { margin: 10px 0 8px; font-size: 1.16rem; color: var(--navy); line-height: 1.3; font-family: var(--font-serif); }
.post__body p { color: var(--muted); font-size: .92rem; }
.post__body .link-arrow { margin-top: auto; padding-top: 12px; }

/* ===== Contact ===== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__info p { color: var(--muted); margin-top: 12px; }
.contact__list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.contact__list li { color: var(--ink); }
.contact__list strong { color: var(--navy); }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg-soft); transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 89, 255, .14); background: #fff; }
.form__status { margin-top: 12px; font-size: .9rem; font-weight: 600; color: #1f9d55; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #c2cdec; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: .92rem; max-width: 26em; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: #fff; transition: transform .18s ease, background .18s ease, color .18s ease; }
.footer__social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__col a, .footer__col span { display: block; color: #aebada; font-size: .9rem; padding-block: 4px; transition: color .15s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .85rem; }

/* ===== Read-more button (looks like a link) ===== */
button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
button.link-arrow:hover { text-decoration: underline; }

/* ===== Post modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 18, 40, .6); backdrop-filter: blur(3px); animation: modalFade .2s ease; }
.modal__dialog {
  position: relative; z-index: 1; width: min(720px, 92vw); max-height: 88vh; overflow: auto;
  margin: 6vh auto; background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: modalRise .25s ease;
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .15s ease;
}
.modal__close:hover { background: #fff; color: var(--blue); }
.modal__cover { height: 200px; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.modal__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); border-radius: inherit; }
.modal__cover .post__tag { position: absolute; left: 24px; bottom: 16px; z-index: 1; }
.modal__body { padding: 30px 34px 34px; }
.modal__meta { font-size: .82rem; color: var(--muted); font-weight: 600; }
.modal__title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin: 8px 0 16px; line-height: 1.25; }
.modal__content { color: var(--ink); font-size: 1.02rem; }
.modal__content p { margin: 0 0 14px; }
.modal__content p:last-child { margin-bottom: 0; }
.modal__link { margin-top: 22px; }
.modal__link[hidden] { display: none; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== Floating chat ===== */
.float-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #25d366; color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 26px rgba(37, 211, 102, .4); font-size: .9rem; transition: transform .2s ease;
}
.float-chat:hover { transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; }
  .indexing__grid, .contact__inner { grid-template-columns: 1fr; }
  .journal-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 22px 18px; transform: translateY(-130%);
    transition: transform .28s ease; box-shadow: var(--shadow-md); margin-left: 0;
  }
  .nav.is-open { transform: none; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 560px) {
  .journal-grid, .blog-grid, .footer__inner { grid-template-columns: 1fr; }
  .topbar__text { display: none; }
  .topbar__inner { justify-content: center; }
  .section { padding-block: 60px; }
}
