@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
  /* Professional Navy + White + Gold — classic institutional palette */
  --green-deep:    #001f4d;   /* rich navy                  */
  --green-dark:    #003580;   /* deep institutional blue    */
  --green-mid:     #0052a3;   /* medium navy blue           */
  --green-soft:    #1a6bbf;   /* softer blue                */
  --teal:          #c8820a;   /* gold accent                */
  --teal-light:    #f0b429;   /* light gold                 */
  --gold:          #c8820a;   /* gold                       */
  --gold-light:    #f0b429;   /* light gold                 */
  --cream:         #f5f7fa;   /* clean off-white bg         */
  --white:         #ffffff;
  --text-dark:     #0d1b2a;
  --text-mid:      #2c3e5a;
  --text-soft:     #607387;
  --border:        #dde3ed;
  --shadow-sm:     0 2px 8px rgba(0,31,77,0.07);
  --shadow-md:     0 8px 30px rgba(0,31,77,0.12);
  --shadow-lg:     0 20px 60px rgba(0,31,77,0.17);
  --transition:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:        12px;
  --radius-lg:     20px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f5f7fa;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 3px; }

/* =============================================
   HEADER
   ============================================= */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 2rem;
}
.logo-wrap {
  display: flex; align-items: center; gap: 0.85rem;
  flex-shrink: 0;
}
.logo-wrap img {
  width: 42px; height: 42px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block; color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; letter-spacing: 0.3px;
}
.logo-text span {
  display: block; color: var(--teal-light);
  font-size: 0.72rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 500;
}
.main-nav ul {
  display: flex; align-items: center; gap: 0.25rem;
}
.main-nav a {
  display: block; padding: 0.5rem 0.9rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem; font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--teal-light);
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem;
  cursor: pointer; padding: 0.5rem;
  transition: var(--transition);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▼';
  font-size: 0.65rem;
  margin-left: 0.4rem;
}
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; min-width: 160px;
  list-style: none; margin: 0.5rem 0 0 0; padding: 0.5rem 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block; padding: 0.6rem 1.2rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem; font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--teal-light);
  padding-left: 1.4rem;
}

/* =============================================
   PAGE LAYOUT (sidebar + main)
   ============================================= */
.page-layout {
  max-width: 1400px; margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  position: sticky; top: 90px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.sidebar-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
}
.sidebar-header p {
  font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.7;
  font-family: 'DM Mono', monospace;
}
.sidebar-header strong {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  color: var(--text-mid);
  font-size: 0.85rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.sidebar-nav a::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--teal);
  transform: scaleY(0); transition: var(--transition);
  transform-origin: center;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(200,130,10,0.07);
  color: var(--green-dark);
  padding-left: 1.6rem;
}
.sidebar-nav a:hover::before, .sidebar-nav a.active::before {
  transform: scaleY(1);
}
.sidebar-nav li:last-child a { border-bottom: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 50%, var(--green-mid) 100%);
  padding: 5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,130,10,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,130,10,0.1) 0%, transparent 50%);
}
.hero-grid {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 3rem;
}
.hero-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(200,130,10,0.15), var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-badge {
  background: rgba(200,130,10,0.2);
  border: 1px solid rgba(200,130,10,0.4);
  color: var(--gold-light);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}
.hero-info { flex: 1; }
.hero-label {
  font-size: 0.72rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal-light);
  font-family: 'DM Mono', monospace;
  margin-bottom: 0.5rem; font-weight: 500;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; color: var(--white);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title {
  font-size: 1.1rem; color: var(--teal-light);
  font-weight: 500; margin-bottom: 0.3rem;
}
.hero-dept {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.85rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
  transition: var(--transition);
}
.hero-tag:hover {
  background: rgba(200,130,10,0.2);
  border-color: var(--teal);
  color: var(--teal-light);
}
.hero-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 0.6rem 1rem;
  color: rgba(255,255,255,0.85); font-size: 0.82rem;
  transition: var(--transition);
}
.contact-chip:hover {
  background: rgba(200,130,10,0.15);
  border-color: rgba(200,130,10,0.4);
}
.contact-chip .icon { font-size: 1rem; }
.contact-chip strong {
  display: block; font-size: 0.65rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 0.1rem;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--green-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.stat-item {
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 500; margin-top: 0.3rem;
  display: block;
  font-family: 'DM Mono', monospace;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title::after {
  content: '';
  display: inline-block; flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin-left: 0.5rem;
  border-radius: 2px;
  position: relative; top: -1px;
}

/* =============================================
   NEWS BOX
   ============================================= */
.news-box {
  background: linear-gradient(135deg, #133b6d, #1f5aa8);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 45px rgba(17, 67, 120, 0.25);
  position: relative; overflow: hidden;
}
.news-box::before {
  content: 'NEWS';
  position: absolute; right: -10px; top: -10px;
  font-size: 5rem; font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.08);
  letter-spacing: -2px;
}
.news-box h3 {
  font-family: 'Playfair Display', serif;
  color: #f8fbff; font-size: 1.05rem;
  margin-bottom: 1rem; display: flex;
  align-items: center; gap: 0.5rem;
}
.news-ticker {
  display: flex; flex-direction: column; gap: 0.7rem;
  animation: ticker-bob 10s ease-in-out infinite alternate;
}
.news-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem; border-radius: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.98);
  font-size: 0.9rem; line-height: 1.6;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-16px);
  animation: slide-in 0.75s ease forwards;
  border-left: 4px solid rgba(173, 216, 255, 0.9);
}
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:hover {
  background: rgba(255,255,255,0.24);
  transform: translateX(6px);
}
.news-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(180deg, #cfe8ff, #67a4ff);
  flex-shrink: 0; margin-top: 4px;
  animation: blink 1.6s ease-in-out infinite, glow 2.5s ease-in-out infinite alternate;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes ticker-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes glow {
  from { box-shadow: 0 0 0 rgba(255,255,255,0.2); }
  to { box-shadow: 0 0 10px rgba(173, 216, 255, 0.45); }
}

/* =============================================
   CONTENT CARDS
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card p {
  color: var(--text-mid); line-height: 1.8;
  font-size: 0.95rem;
}

/* =============================================
   GRID LAYOUTS
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

/* =============================================
   INTEREST CARDS
   ============================================= */
.interest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.interest-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.interest-card:hover::before { transform: scaleX(1); }
.interest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.interest-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.interest-card h4 {
  color: var(--green-dark); font-size: 0.95rem;
  font-weight: 600; margin-bottom: 0.5rem;
}
.interest-card p { color: var(--text-soft); font-size: 0.85rem; line-height: 1.6; }

/* =============================================
   PROJECT CARDS
   ============================================= */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.project-card h4 { color: var(--green-dark); font-size: 0.9rem; font-weight: 600; line-height: 1.4; flex: 1; }
.project-badge {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white); font-size: 0.7rem;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-weight: 600; white-space: nowrap;
  font-family: 'DM Mono', monospace;
}
.project-badge.ongoing { background: linear-gradient(135deg, var(--green-soft), var(--teal)); }
.project-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tag {
  background: rgba(200,130,10,0.1);
  color: var(--green-mid); font-size: 0.72rem;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-weight: 500; border: 1px solid rgba(200,130,10,0.25);
}
.project-funding {
  font-family: 'DM Mono', monospace;
  color: var(--gold); font-size: 0.82rem; font-weight: 600;
}

/* =============================================
   SCHOLAR CARDS (teaser on homepage)
   ============================================= */
.scholar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0.75rem; transition: var(--transition);
  position: relative; overflow: hidden;
}
.scholar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.scholar-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.scholar-card:hover::after { transform: scaleX(1); }
.scholar-avatar {
  width: 100px; height: 100px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--border);
  transition: var(--transition);
}
.scholar-card:hover .scholar-avatar { border-color: var(--teal); }
.scholar-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.scholar-year {
  font-size: 0.72rem; color: var(--text-soft);
  font-family: 'DM Mono', monospace;
}
.scholar-research {
  font-size: 0.78rem; color: var(--text-mid);
  line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.scholar-link {
  font-size: 0.78rem; color: var(--teal);
  font-weight: 600; display: flex;
  align-items: center; gap: 0.3rem;
  transition: var(--transition);
}
.scholar-link:hover { color: var(--green-dark); gap: 0.5rem; }

/* =============================================
   MEMBERSHIP & COLLAB ITEMS
   ============================================= */
.membership-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f5f7fa; border-radius: 8px;
  border-left: 3px solid var(--teal);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.membership-item:hover { transform: translateX(4px); background: rgba(200,130,10,0.07); }
.membership-item strong { color: var(--green-dark); font-size: 0.9rem; display: block; }
.membership-item span { color: var(--text-soft); font-size: 0.82rem; }
.membership-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* =============================================
   QUICK LINKS GRID
   ============================================= */
.quicklink-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
}
.quicklink-card:hover { background: var(--green-dark); color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quicklink-card:hover p, .quicklink-card:hover h4 { color: rgba(255,255,255,0.9); }
.quicklink-icon { font-size: 2rem; }
.quicklink-card h4 { font-size: 0.9rem; color: var(--green-dark); font-weight: 600; transition: var(--transition); }
.quicklink-card p { font-size: 0.78rem; color: var(--text-soft); transition: var(--transition); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--green-deep);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--white);
  display: block; margin-bottom: 0.75rem;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--teal-light); font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
  font-family: 'DM Mono', monospace;
}
.footer-col li {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: var(--transition); }
.footer-col a:hover { color: var(--teal-light); padding-left: 4px; }
.footer-bottom {
  max-width: 1400px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.35); font-size: 0.78rem;
  font-family: 'DM Mono', monospace;
}

/* =============================================
   UTILITY
   ============================================= */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-soft { color: var(--text-soft); font-size: 0.85rem; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.anim-up { animation: fadeInUp 0.6s ease-out forwards; }
.anim-left { animation: fadeInLeft 0.6s ease-out forwards; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner { grid-template-columns: auto 1fr; }
  .hero-contact { display: none; }
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-name { font-size: 2.2rem; }
  .hero-tags { justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* =============================================
   SCHOLAR SECTION VISIBILITY TOGGLE
   ============================================= */
#completed { display: none; }
#ongoing { display: block; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem; background: rgba(0,0,0,0.3); }
  .nav-toggle { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 1rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem; }
  .hero-name { font-size: 1.8rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .page-layout { padding: 1.5rem 1rem; }
}
