/* Home — modern academic landing (scoped) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&display=swap');

:root {
  --home-ink: #0c2340;
  --home-ink-soft: #243b55;
  --home-mist: #eef3f8;
  --home-paper: #ffffff;
  --home-accent: #c47a72;
  --home-accent-deep: #a85f58;
  --home-line: rgba(12, 35, 64, 0.1);
  --home-shadow: 0 18px 40px rgba(12, 35, 64, 0.12);
  --home-radius: 18px;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  margin: 0 0 1.75rem;
  border-radius: var(--home-radius);
  color: #fff;
  display: flex;
  align-items: flex-end;
  animation: home-rise 0.85s var(--home-ease) both;
}

.home-hero__media,
.home-hero__media img,
.home-hero__veil {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: home-ken 18s ease-in-out infinite alternate;
}

.home-hero__veil {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(12, 35, 64, 0.92) 8%, rgba(12, 35, 64, 0.55) 52%, rgba(12, 35, 64, 0.28) 100%),
    linear-gradient(to top, rgba(12, 35, 64, 0.75), transparent 55%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem 2.25rem;
  max-width: 36rem;
}

.home-hero__brand {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", "Poppins", serif;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  animation: home-rise 0.9s var(--home-ease) 0.08s both;
}

.home-hero__title {
  margin: 0 0 0.85rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  animation: home-rise 0.9s var(--home-ease) 0.16s both;
}

.home-hero__lead {
  margin: 0 0 1.4rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  animation: home-rise 0.9s var(--home-ease) 0.24s both;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: home-rise 0.9s var(--home-ease) 0.32s both;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.25s var(--home-ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn--primary {
  background: var(--home-accent);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(196, 122, 114, 0.35);
}

.home-btn--primary:hover {
  background: var(--home-accent-deep);
  color: #fff !important;
}

.home-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.home-section {
  margin-bottom: 2rem;
  animation: home-rise 0.8s var(--home-ease) 0.2s both;
}

.home-section--feed {
  animation-delay: 0.28s;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-action {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem;
  background: var(--home-paper);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--home-ink) !important;
  box-shadow: 0 1px 0 rgba(12, 35, 64, 0.03);
  transition: transform 0.3s var(--home-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
  border-color: rgba(196, 122, 114, 0.35);
  color: var(--home-ink) !important;
}

.home-action__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--home-mist);
  color: var(--home-accent-deep);
  margin-bottom: 0.25rem;
}

.home-action__label {
  font-weight: 600;
  font-size: 0.98rem;
}

.home-action__hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7c8f;
}

.home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.home-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent-deep);
}

.home-section__title {
  margin: 0;
  font-family: "Fraunces", "Poppins", serif;
  font-size: 1.65rem;
  font-weight: 650;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

.home-section__sub {
  margin: 0;
  color: #6b7c8f;
  font-size: 0.9rem;
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-feed__skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-skel {
  height: 160px;
  border-radius: var(--home-radius);
  background: linear-gradient(90deg, #e8eef5 25%, #f5f8fb 50%, #e8eef5 75%);
  background-size: 200% 100%;
  animation: home-shimmer 1.2s linear infinite;
}

.home-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--home-paper);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.05);
  transition: transform 0.35s var(--home-ease), box-shadow 0.35s ease;
  animation: home-rise 0.7s var(--home-ease) both;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow);
}

.home-card--no-image {
  grid-template-columns: 1fr;
}

.home-card__media {
  position: relative;
  min-height: 160px;
  background: var(--home-mist);
  overflow: hidden;
}

.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--home-ease);
}

.home-card:hover .home-card__media img {
  transform: scale(1.05);
}

.home-card__body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-card__title {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", "Poppins", serif;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--home-ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.home-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: #6b7c8f;
}

.home-card__meta strong {
  color: var(--home-ink-soft);
  font-weight: 600;
}

.home-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #5a6b7d;
}

.home-card__more {
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--home-accent-deep);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-card__more:hover {
  color: var(--home-ink);
}

.home-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-mist);
  color: var(--home-ink-soft);
}

.home-empty__title {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--home-ink);
}

.home-empty__text {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7c8f;
}

.home-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.home-modal .modal-title {
  font-family: "Fraunces", serif;
  font-weight: 650;
  color: var(--home-ink);
}

.home-modal__meta {
  font-size: 0.82rem;
  color: #6b7c8f;
  margin-bottom: 1rem;
}

.home-modal__media img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.home-modal__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #425466;
  white-space: pre-wrap;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes home-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: 360px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-card {
    grid-template-columns: 1fr;
  }

  .home-card__media {
    min-height: 180px;
  }
}

@media (max-width: 575.98px) {
  .home-hero__content {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .home-hero {
    min-height: 320px;
    border-radius: 14px;
  }
}

/* Soften shared shell on Home only */
body.home-page .container-fluid.mb-5 {
  margin-bottom: 1.5rem !important;
}

body.home-page .navbar-vertical .navbar-nav {
  scrollbar-width: thin;
}
