/* ============================================================
   HASSAN S. RANA Ph.D. — PERSONAL ACADEMIC WEBSITE
   Shared stylesheet — link in every page
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #002537;
  --accent: #1B6A8C;
  --sky:    #A9D1DF;
  --gold:   #C49A2A;
  --light:  #F4F8FB;
  --text:   #2C2C2C;
  --muted:  #555555;
  --border: #D0E4EE;
  --white:  #FFFFFF;
}

html, body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── FIXED PROFILE HEADER ── */
.profile-group {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 400px;
  background-color: var(--navy);
  background-image: url('images/HR.png');
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding-top: 40px;
  box-sizing: border-box;
  z-index: 100;
  overflow: hidden;
}

/* Subtle decorative overlay circles */
.profile-group::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(169,209,223,0.07);
  pointer-events: none;
}
.profile-group::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(196,154,42,0.05);
  pointer-events: none;
}

/* Photo circle */
.circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: var(--sky);
  background-image: url('images/HassanRana.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 25%;
  border: 4px solid rgba(255,255,255,0.35);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* Name */
.name-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}

/* Subtitle */
.name-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Social icon row */
.icon-container {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.small-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.small-circle:hover {
  background: var(--sky);
  color: var(--navy);
}

/* Capsule navigation */
.capsule-button {
  display: flex;
  height: 36px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 50px;
  align-items: center;
  padding: 0 5px;
  gap: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.capsule-button a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.25rem 1.1rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.capsule-button a:hover {
  background: var(--light);
}
.capsule-button a.active {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
}

/* ── MAIN CONTENT AREA ── */
.main-content-wrapper {
  margin-top: 400px;
  flex-grow: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
  background: var(--white);
}

.content-container {
  width: 90%;
  max-width: 750px;
  padding: 1.5rem 20px;
  box-sizing: border-box;
}

/* ── SECTION HEADINGS ── */
.content-container h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.content-container h3::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}

/* Section label (small caps above heading) */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  margin-top: 0;
}
.section-label.mt { margin-top: 2rem; }

/* Body text */
.content-container p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.content-container p strong { color: var(--navy); font-weight: 600; }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── PUBLICATION ITEMS ── */
.pub-list { list-style: none; padding: 0; margin: 0; }

.pub-item {
  padding: 1rem 1rem 1rem 1.25rem;
  border-left: 3px solid var(--border);
  margin-bottom: 0.9rem;
  background: var(--light);
  transition: border-color 0.2s;
}
.pub-item:hover { border-left-color: var(--accent); }

.pub-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.pub-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}
.pub-text em { font-style: italic; color: var(--accent); }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}

.pub-journal {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
}

.pub-doi {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--white);
  background: var(--navy);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.pub-doi:hover { background: var(--accent); }

/* ── TEACHING ITEMS ── */
.course-entry {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--sky);
}

.course-entry h4 {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.course-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--sky);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.course-description {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.course-details { display: flex; flex-direction: column; gap: 0.25rem; }

.course-detail-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.82rem;
}
.course-inst {
  font-weight: 600;
  color: var(--navy);
  min-width: 280px;
  flex-shrink: 0;
}
.course-sem { color: var(--muted); }

/* ── ABOUT PAGE EXTRAS ── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.expertise-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky);
  padding: 1.1rem;
  background: var(--light);
  transition: border-left-color 0.2s;
}
.expertise-card:hover { border-left-color: var(--accent); }
.expertise-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.expertise-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0; }

.credential-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.credential-row:first-of-type { border-top: 1px solid var(--border); }
.credential-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 2px;
}
.credential-value { color: var(--text); line-height: 1.5; }
.credential-value strong { color: var(--navy); font-weight: 600; }
.credential-value small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

.deura-link-block {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.deura-link-block p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin: 0;
}
.deura-link-block strong { color: var(--white); }
.btn-sky {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.83rem;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.btn-sky:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: var(--sky); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .profile-group { height: 360px; padding-top: 20px; }
  .circle { width: 100px; height: 100px; }
  .name-text { font-size: 1.2rem; }
  .main-content-wrapper { margin-top: 360px; }
  .capsule-button { width: 95%; }
  .capsule-button a { font-size: 0.78rem; padding: 0.25rem 0.75rem; }
  .course-inst { min-width: 180px; }
  .credential-label { min-width: 100px; }
  .expertise-grid { grid-template-columns: 1fr; }
}
