@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7fafc;
  --text: #0f172a;
  --accent: #149ddb;
  --accent-weak: #149ddb22;
  --muted: #64748b;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: white; border-bottom: 1px solid #e2e8f0;
}
.brand { font-weight: 700; letter-spacing: .2px; }

/* Nav list */
.nav-list {
  display: flex; gap: 6px; margin-left: auto; list-style: none;
}
.nav-list a {
  display: block; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.nav-list a:hover { background: var(--accent-weak); }
.nav-list a.active { background: var(--accent); color: #fff; }

/* Mobile collapse */
.menu-toggle {
  display: none;
  border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer;
}

.card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  margin: 80px auto;
  font-family: 'Playfair Display', serif;
  z-index: 1;

}

.card h2 {
  margin-bottom: 20px;
  color: #149ddb;
}

.quote {
  font-style: italic;
  color: #555;
    font-size: clamp(1.1rem, 1.6vw + .6rem, 1.8rem);
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav-list {
    position: absolute; right: 14px; top: 54px;
    flex-direction: column; width: min(260px, 90vw);
    background: white; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 8px; display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
  }
  .nav-list.show { display: flex; }
}

/* Layout */
.container { max-width: 980px; margin: 32px auto; padding: 0 16px; }

.page-title {
  font-size: clamp(1.1rem, 1.6vw + .6rem, 1.8rem);
  line-height: 1.5; color: var(--muted);
  border-left: 4px solid var(--accent);
  padding: 10px 14px; background: white; border-radius: 8px;
  margin-bottom: 24px;
}


bubble-container {
  position: fixed;   /* was relative */
  left: 0;
  right: 0;
  bottom: 0;         /* pin to screen bottom */
  height: 250px;
  overflow: hidden;
  z-index: -1;        /* adjust if it hides behind content; try 10–100 if needed */
  pointer-events: none; /* so it doesn't block clicks */
}

.bubble {
  position: absolute;
  bottom: -28px;
  animation: floatUp ease-in forwards;
  opacity: 0.5;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-250px);
  }
}

/* Bubbles animation (no images, just soft circles) */
/*.bubbles {
  position: relative; height: 280px; background: linear-gradient(180deg, #fff, #f1f5f9);
  overflow: hidden; border-radius: 14px; border: 1px solid #e2e8f0;
}
.bubble {
  position: absolute; bottom: -60px; width: 24px; height: 24px;
  background: radial-gradient(circle at 30% 30%, #ffffffcc, #ffffff00),
              var(--accent-weak);
  border-radius: 50%;
  animation: rise linear infinite;
  opacity: .8;
}*/
/* Create a variety of bubbles */
/*.bubble:nth-child(1) { left: 8%;  animation-duration: 9s;  width: 22px; height: 22px; }
.bubble:nth-child(2) { left: 18%; animation-duration: 11s; width: 18px; height: 18px; }
.bubble:nth-child(3) { left: 28%; animation-duration: 10s; width: 26px; height: 26px; }
.bubble:nth-child(4) { left: 40%; animation-duration: 12s; width: 16px; height: 16px; }
.bubble:nth-child(5) { left: 52%; animation-duration: 8s;  width: 28px; height: 28px; }
.bubble:nth-child(6) { left: 64%; animation-duration: 10s; width: 20px; height: 20px; }
.bubble:nth-child(7) { left: 74%; animation-duration: 9s;  width: 24px; height: 24px; }
.bubble:nth-child(8) { left: 86%; animation-duration: 13s; width: 18px; height: 18px; }
.bubble:nth-child(9) { left: 94%; animation-duration: 7s;  width: 30px; height: 30px; }*/

/*@keyframes rise {
  0%   { transform: translateY(0)     scale(1);   opacity: .85; }
  70%  { transform: translateY(-220%) scale(1.05); opacity: .9; }
  100% { transform: translateY(-260%) scale(1.1);  opacity: 0; }
}
*/
/* Page sections */
.page h1 { margin-bottom: 8px; font-size: 1.4rem; }
.page p  { color: var(--muted); }



/* IUG Section */
.section-header { margin-bottom: 16px; }
.section-header h1 { font-size: clamp(1.3rem, 1.2vw + 1rem, 2rem); margin-bottom: 6px; }
.section-desc { color: var(--muted); margin-top:12px;}

.feature-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 20px;
}

.btn.feature {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: transform .05s ease, background .2s ease;
}
.btn.feature:hover { background: #f8fafc; }
.btn.feature:active { transform: translateY(1px); }

/* Announcements list */
.announcements-block { margin-top: 10px; }
.announcements-block .ann-title { font-size: 1.2rem; margin-bottom: 10px; }

.ann-list { list-style: none; display: grid; gap: 10px; }
.ann-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px;
}
.ann-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.ann-date { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.ann-title-text { font-size: 1.05rem; }

.ann-body { color: var(--muted); margin-top: 6px; }
.ann-link {
  display: inline-block; margin-top: 8px; text-decoration: none;
  color: var(--accent);
}
.ann-link:hover { text-decoration: underline; }

.muted { color: var(--muted); }

.ann-desc-att { list-style: none; margin-top: 8px; display: grid; gap: 6px; padding-left: 0; }
.ann-desc-att li a { text-decoration: none; color: var(--accent); }
.ann-desc-att li a:hover { text-decoration: underline; }

.att-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  margin-right: 8px;
  text-transform: lowercase; /* matches your 'google-forms' style */
}

/*.ann-attach { margin-top: 10px; }*/

/* Separator between description attachments and the single attachment */
.ann-sep {
  margin: 12px 0;
  border-top: 1px dashed #e2e8f0;
}

/* Video row */
.ann-attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-icon {
  display: inline-flex;
  line-height: 0;
  color: #ef4444; /* subtle red; change if you like */
}

/* Existing links keep their style */
.ann-attach .ann-link { text-decoration: none; color: var(--accent); }
.ann-attach .ann-link:hover { text-decoration: underline; }

/* Current Graduation Projects */
.current-gp .section-header { margin-bottom: 14px; }
.current-gp h1 { font-size: clamp(1.2rem, 1.1vw + 1rem, 1.8rem); }

.proj-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.proj-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.proj-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.proj-main { min-width: 0; }
.proj-title { font-size: 1.05rem; margin-bottom: 6px; }

.proj-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.members {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.members-count { font-weight: 600; color: var(--text); }

.proj-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  background: #f8fafc;
  color: var(--text);
}

.proj-actions { margin-left: auto; }
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text);
}
.btn:hover { background: #f8fafc; }
.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { 
	  background: var(--accent);
	filter: brightness(0.95);
}

@media (max-width: 720px) {
  .proj-row { flex-direction: column; align-items: stretch; }
  .proj-actions { margin-left: 0; }
}

.btn.feature.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Layout stays same, just stack tags under members */
.proj-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}
/* first row: members, second row: tags */
.members { display: inline-flex; align-items: center; gap: 6px; }
.members-count { font-weight: 600; color: var(--text); }

.proj-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  background: #f8fafc;
  color: var(--text);
}

/* Course grid */
.course-grid {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat( auto-fill, minmax(180px, 1fr) );
}

.course-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.course-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.course-poster {
  position: relative;
  width: 100%;
  /* keep posters consistent: 3:4 ratio (like a vertical poster) */
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: grid;
  place-items: center;
}

.course-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-placeholder {
  width: 64%;
  height: 64%;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 2rem;
  color: #64748b;
  background: #f1f5f9;
}

.course-info {
  padding: 10px 12px 12px;
}

.course-name {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.course-id {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hover affordance */
.course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .1s ease;
}

.btn-followup {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  background: #14B8A6;
/*    background: #F59E0B;*/
  color: #fff;
}
.btn-followup:hover {
	    background:   #0D9488; 
/*  background: #D97706;*/


}

.proj-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: flex-start; /* align to left edge */
  gap: 6px; /* space between buttons */
}

.proj-actions .btn {
  width: 100%;
}


/* Project Details */
.project-details { display: grid; gap: 16px; }
.pd-title { font-size: clamp(1.2rem, 1.2vw + 1rem, 2rem); }

.pd-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.pd-meta-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 10px 12px; display: grid; gap: 4px;
}
.pd-label { font-size: .85rem; color: var(--muted); }
.pd-value { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.badge-done { background: #dcfce7; color: #166534; }     /* green */
.badge-pending { background: #fef3c7; color: #92400e; }  /* amber */

.pd-abstract {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px;
}
.pd-abstract h2 { font-size: 1.05rem; margin-bottom: 6px; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid #e2e8f0; background: #fff; color: var(--text);
}
.btn-secondary:hover { background: #f8fafc; }

.btn-video {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; background: #ef4444; color: #fff; /* red */
}
.btn-video:hover { background: #dc2626; }

/* Reuse the Follow Up style (you picked Emerald earlier) */
.btn-followup {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; background: #10B981; color: #fff;
}
.btn-followup:hover { background: #059669; }
