:root {
  --accent: #003366;
  --card-bg: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url("campus-bg.jpg") center/cover no-repeat fixed;
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* top bar logo */
.top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
}

.logo-small {
  height: 50px;
}

/* HERO */
.hero {
  padding: 100px 16px 48px;
  text-align: center;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.logo-hero {
  height: 60px;
}

/* pills */
.pill-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.pill {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.innovate {
  background: #ffcc00;
  color: #111;
}

.achieve {
  background: #00bfff;
}

.lead {
  background: #ff4d4d;
}

/* nav */
.main-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  display: inline-block;
  padding: 6px 8px;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* cards */
.card {
  background: var(--card-bg);
  margin: 28px auto;
  padding: 22px;
  border-radius: 12px;
  max-width: 980px;
  backdrop-filter: blur(4px);
}

.card.small {
  max-width: 760px;
}

/* headings */
section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 26px);
}

/* team */
.team-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.member {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 10px;
  min-width: 200px;
  max-width: 300px;
}

/* gallery grid */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.gallery-box {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.box-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
  color: #fff;
  padding: 12px;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-align: center;
}

/* footer */
.footer {
  text-align: center;
  padding: 14px 10px;
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.35);
}

/* === SIMPLIFIED MODAL STYLES === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(to bottom, #2c3e50, #1a1a2e);
  border-radius: 15px;
  max-width: 90%;
  max-height: 90%;
  width: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  color: white;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 5px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slide-caption {
  margin-top: 15px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  max-width: 80%;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 10px;
  overflow-x: auto;
  justify-content: center;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
}

.thumbnail.active {
  border: 2px solid #ffcc00;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* === PROFESSIONAL ENHANCEMENTS === */
html {
  scroll-behavior: smooth;
}

.card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.main-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  text-decoration: none;
  color: #ffcc00;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover::after {
  width: 80%;
}