/* ===================================
   HOME PAGE – home.css
   Styles specific to index.html
   =================================== */

/* ─── 3. COVER SECTION ────────────────────────────────────────── */
.cover-section {
  position: relative;          /* default: in normal flow (below header) */
  width: 100%;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
  z-index: 900;
}

/* The actual image */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark gradient overlay so text is readable */
.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 40, 0.55) 0%,
    rgba(10, 14, 40, 0.75) 60%,
    rgba(10, 14, 40, 0.88) 100%
  );
}

/* Text block on top of image */
.cover-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-bottom: 3.5rem;
  padding-top: 1.5rem;
  color: #ffffff;
  /* container centres content & provides the shared left margin */
}

.cover-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.cover-description {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.cover-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.8rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

.cover-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

/* ─── 4. MAIN CONTENT ─────────────── */
.home-content {
  background: var(--color-white);
}

/* ─── 5. INTRO BLURB ──────────────────────────────────────────── */
.home-intro {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.home-intro-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.home-intro-text {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── 6. RESEARCH FOCUS ───────────────────────────────────────── */
.research-focus-section {
  padding-bottom: 3rem;
  background: var(--color-white);
}

.research-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Each item */
.rf-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: var(--color-bg-light);
  transition: box-shadow 0.2s ease;
}

.rf-item:hover {
  box-shadow: 0 4px 18px rgba(30, 37, 79, 0.1);
}

/* Square figure */
.rf-figure {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.rf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rf-body {
  flex: 1;
}

.rf-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.rf-desc {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ─── 7. PUBLICATIONS HIGHLIGHT (Surveys & Research Works) ───── */
.publications-highlight-section {
  padding-bottom: 3.5rem;
  background: var(--color-white);
}

.publications-highlight-section--alt {
  background: var(--color-white);
  padding-top: 0.5rem;
}

.pub-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Clickable card —
   Grid layout:
     [image]  [title + year]
     [desc    ____________ ]
*/
.pub-highlight-item {
  display: grid;
  grid-template-areas:
    "cover  meta"
    "desc   desc";
  grid-template-columns: 90px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0 0.85rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.pub-highlight-item:hover {
  box-shadow: 0 6px 24px rgba(30, 37, 79, 0.13);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

/* Portrait journal cover image — left column */
.pub-cover-wrap {
  grid-area: cover;
  width: 90px;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.pub-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta block (right of image) */
.pub-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-self: start;
}

.pub-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-dark);
  line-height: 1.4;
  margin: 0;
}

.pub-year {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Description — spans both columns */
.pub-desc {
  grid-area: desc;
  font-size: 0.87rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

/* ─── 8. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .pub-highlight-grid,
  .research-focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cover-section {
    height: 60vh;
  }
  .pub-highlight-grid,
  .research-focus-grid {
    grid-template-columns: 1fr;
  }
  .rf-figure {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cover-section {
    height: 55vh;
  }
}
