/* ===== VARIABLES ===== */
:root {
  --navy: #050a30;
  --red: #FE0201;
  --gold: #7e6849;
  --white: #ffffff;
  --light: #f5f6f8;
  --text: #333333;
  --text-muted: #666666;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  padding-top: 72px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h4, h5, h6 { font-family: 'DM Sans', sans-serif; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(254,2,1,0.3); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:1.2rem 2.5rem;
  height: 80px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { height: 140px; width: auto; margin-top: 45px; }
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.50rem;
  align-items: center;
  margin-top: 10px;
}
.navbar-nav > li > a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: block;
  letter-spacing: 0.3px;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  list-style: none;
  min-width: 210px;
  padding: 0.4rem 0;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-item-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: all 0.15s;
}
.dropdown-menu li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  padding-left: 1.5rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== HERO (HOME) ===== */
.hero {
  height: calc(100vh - 72px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 2rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 1.75rem;
  font-style: italic;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.container { max-width: 1180px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 1rem auto 0;
}

/* ===== FEATURE CARDS (HOME) ===== */
.features { background: var(--light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-top-color: var(--red);
}
.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== ABOUT (HOME) ===== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.about-text p { color: var(--text-muted); }
.about-text .btn { margin-top: 1.5rem; }
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-images img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 200px;
}
.about-images img:first-child {
  grid-column: 1 / -1;
  height: 250px;
}

/* ===== CTA ===== */
.cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: 1rem; }
.cta p { opacity: 0.75; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.page-hero p {
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.page-hero .divider { margin-top: 1.25rem; }

/* ===== TEAM PAGE ===== */
.team-intro {
  background: var(--light);
  padding: 4rem 2rem;
}
.team-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.team-intro img { border-radius: 8px; width: 100%;object-position: center top; max-height: none; }
.team-intro h2 { color: var(--navy); margin-bottom: 1rem; font-size: 1.8rem; }
.team-intro p { color: var(--text-muted); }
.team-intro .btn { margin-top: 1.5rem; }

.team-section { background: var(--white); }
.team-section.alt { background: var(--light); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2rem;
}
.team-card { text-align: center; }
.team-card img {
  width: 140px;
  height: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1rem;
  border: 3px solid var(--navy);
  transition: border-color 0.2s;
}
.team-card:hover img { border-color: var(--red); }
.team-card h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}
.team-card .role {
  color: var(--red);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-card .program { color: var(--text-muted); font-size: 0.8rem; }

.competition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.competition-member {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--red);
}
.competition-member h5 { color: var(--navy); font-size: 0.95rem; margin-bottom: 0.2rem; }
.competition-member span { color: var(--text-muted); font-size: 0.8rem; }

.statutes-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.statutes-box p { opacity: 0.8; margin-bottom: 1.5rem; }

/* ===== PARTNERS PAGE ===== */
.partners-section { background: var(--white); }
.partners-section.alt { background: var(--light); }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.lab-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.lab-card:hover { transform: translateY(-4px); }
.lab-card img { width: 100%; height: 180px; object-fit: cover; }
.lab-card .lab-info { padding: 1.75rem; }
.lab-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.25rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.lab-card .professor { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.lab-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CONTACT PAGE ===== */
.contact-section { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.contact-form-wrap h2 { color: var(--navy); margin-bottom: 1.5rem; font-size: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--navy); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dde0e6;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(5,10,48,0.08); }
.form-group textarea { min-height: 160px; resize: vertical; }
.contact-info-wrap { padding-top: 0.5rem; }
.contact-info-wrap h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 1.25rem; font-family: 'DM Sans', sans-serif; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-detail .icon { font-size: 1.25rem; margin-top: 0.1rem; flex-shrink: 0; }
.contact-detail a { color: var(--red); }
.contact-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.contact-social a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #dde0e6;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
}
.contact-social a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ===== PROJECT PAGES ===== */
.project-content { background: var(--white); }
.project-content .container { max-width: 900px; }
.project-content h2 { color: var(--navy); margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.project-content h3 { color: var(--navy); margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.project-content p { color: var(--text-muted); }
.project-content ul { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.project-content li { margin-bottom: 0.4rem; }

.project-image-full {
  width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
  max-height: 500px;
  object-fit: cover;
  object-position: center top;
}
.project-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.project-images-grid img {
  border-radius: 8px;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Competition table */
.competition-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.competition-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}
.competition-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #eee;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.competition-table tr:nth-child(even) td { background: var(--light); }
.competition-table tr:first-child td { font-weight: 600; color: var(--red); }

/* ===== BIOSENSINGDAYS SPECIFIC ===== */
.countdown-section { background: var(--light); text-align: center; }
.countdown-wrap { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.countdown-unit { text-align: center; }
.countdown-unit .number {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  min-width: 90px;
}
.countdown-unit .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 0.5rem;
  font-weight: 600;
}
.countdown-separator {
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.1rem;
}

.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.schedule-day {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.schedule-day h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--red);
}
.schedule-item { margin-bottom: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0; }
.schedule-item:last-child { border-bottom: none; }
.schedule-item strong { color: var(--navy); font-size: 0.85rem; display: block; margin-bottom: 0.15rem; }
.schedule-item span { color: var(--text-muted); font-size: 0.8rem; }

.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.speaker-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.speaker-card:hover { transform: translateY(-4px); }
.speaker-card .speaker-info { padding: 1.5rem; }
.speaker-card h4 { color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.speaker-card .affiliation { color: var(--gold); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.speaker-card .talk-title { font-style: italic; color: var(--navy); font-size: 0.875rem; margin-bottom: 0.75rem; opacity: 0.8; }
.speaker-card p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }

.register-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
}
.register-box h2 { color: var(--white); margin-bottom: 1rem; }
.register-box p { opacity: 0.8; margin-bottom: 2rem; }

/* ===== BIOSENSINGDAYS ABOUT GRID ===== */
.bsd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 200px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.6; }
.footer-links h4 { color: rgba(255, 255, 255, 0.892); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-links ul li a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--white); }
.footer-social { text-align: right; }
.footer-social h4 { color: rgb(255, 0, 0); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.footer-social-links { display: flex; gap: 1rem; justify-content: flex-end; }
.footer-social-links a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  transform: scale(1);
}
.footer-social-links a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}
.footer-social-links a[aria-label="LinkedIn"] {
  background: #0077b5;
  color: white;
}
.footer-social-links a:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }
.mt-2 { margin-top: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-images { grid-template-columns: 1fr 1fr; }
  .about-images img:first-child { grid-column: 1 / -1; }
  .team-intro-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .bsd-about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-social { text-align: left; }
  .footer-social-links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  body { padding-top: 64px; }
  .navbar { padding: 0.75rem 1.25rem; height: 64px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0;
    text-align: center;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav > li > a {
    padding: 0.65rem 1.5rem;
    border-radius: 0;
    display: block;
    width: 100%;
  }
  .nav-item-dropdown > a::after { display: none; }
  .dropdown-menu {
    position: static;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .dropdown-menu li a {
    padding: 0.45rem 1.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
  }
  .dropdown-menu li a:hover {
    padding-left: 1.5rem;
    color: rgba(255,255,255,0.85);
    background: none;
  }
  section { padding: 3.5rem 1.25rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 1fr; }
  .about-images img:first-child { grid-column: auto; }
  .countdown-wrap { gap: 1.25rem; }
  .countdown-unit .number { font-size: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
