:root {
	--bg: #ffffff;
	--card: #ffffff;
	--border: rgba(0, 0, 0, 0.08);
	--text: #1a1a1a;
	--muted: #666666;
  /* Logo palette */
	--blue: #1da3ea;
	--cyan: #31c8f6;
	--orange: #fa9f0e;
	--yellow: #fdc41b;
	--navy: #052755;
	--shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	--radius: 16px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
	background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
	color: var(--text);
	overflow-x: hidden;
}

.container-xl {
	max-width: 1180px;
}

/* ===== Mobile polish (no HTML changes) ===== */
@media (max-width: 991.98px) {
	.navbar .navbar-brand span small {
		display: block;
		opacity: .9;
	}

	.navbar .navbar-brand {
		gap: .5rem;
	}

	.hero {
		padding-top: 90px;
	} /* fixed navbar spacing */;
}

@media (max-width: 575.98px) {
	.container-xl {
		padding-left: 14px;
		padding-right: 14px;
	}

	.hero h1 {
		font-size: 1.5rem;
		line-height: 1.2;
	}

	.hero p {
		font-size: .98rem;
	}

	.hero-card {
		margin-top: 8px;
	}

	.glass {
		border-radius: 16px;
	}

	.modal-dialog {
		margin: .75rem;
	}

	.btn {
		white-space: nowrap;
	}

	.partner-card img {
		max-height: 46px;
	}

	.tagline {
		font-size: 12px !important;
	}

	.brand-logo {
		width: 60px !important;
		height: 50px;
		border-radius: 14px;
		background: rgba(29, 163, 234, 0.08);
		border: 1px solid rgba(29, 163, 234, 0.16);
		padding: 2px;
		box-shadow: 0 8px 20px rgba(29, 163, 234, 0.12);
		object-fit: contain;
	}
}

/* Make horizontal partner slider behave on small screens */
.partner-slider {
	overflow: hidden;
}

.partner-track {
	gap: 12px;
}


/* Navbar */
.navbar {
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95) !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	transition: all 0.25s ease;
}

.navbar.scrolled {
	background: rgba(255, 255, 255, 0.98) !important;
	border-bottom-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.navbar-dark .navbar-nav .nav-link {
	color: var(--text) !important;
	font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover {
	color: var(--blue) !important;
}

/* Brand (with logo image) */
.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-family: Poppins, Inter, sans-serif;
	letter-spacing: 0.2px;
	text-decoration: none;
	color: var(--text);
}

.brand:hover {
	color: var(--text);
}

.brand-logo {
	width: 100px;
	height: 60px;
	border-radius: 14px;
	background: rgba(29, 163, 234, 0.08);
	border: 1px solid rgba(29, 163, 234, 0.16);
	padding: 2px;
	box-shadow: 0 8px 20px rgba(29, 163, 234, 0.12);
	object-fit: contain;
}

.brand small {
	color: var(--muted);
	display: block;
	margin-top: -2px;
}

/* Buttons */
.btn-brand {
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	box-shadow: 0 10px 25px rgba(29, 163, 234, 0.18);
}

.btn-brand:hover {
	filter: brightness(1.08);
	color: #fff;
	transform: translateY(-1px);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--text);
	backdrop-filter: blur(10px);
}

.btn-ghost:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--text);
	border-color: rgba(0, 0, 0, 0.15);
}

.btn-admin {
	background: linear-gradient(135deg, var(--orange), var(--yellow));
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #08101f;
	font-weight: 800;
	box-shadow: 0 10px 25px rgba(250, 159, 14, 0.15);
}

.btn-admin:hover {
	filter: brightness(1.05);
	color: #08101f;
	transform: translateY(-1px);
}

/* =========================================================
   HERO (EduWorld reference-style)
========================================================= */
.hero.hero-edu{
  background: #fff;
  position: relative;
  padding: 120px 0 42px;
  overflow: hidden;
}

/* soft doodle vibe (no external assets) */
.hero.hero-edu::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(250,159,14,.12), transparent 60%),
    radial-gradient(880px 520px at 88% 18%, rgba(29,163,234,.12), transparent 60%),
    radial-gradient(500px 320px at 74% 68%, rgba(49,200,246,.10), transparent 60%);
  pointer-events:none;
}

.hero.hero-edu .hero-title{
  font-family: Poppins, Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.05;
  margin-top: 14px;
  text-transform:Uppercase;
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
}

.hero.hero-edu .hero-sub{
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 14px;
  max-width: 54ch;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 18px;
}

/* =========================================================
   Collage block (right side)
========================================================= */
.hero-collage{
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-right: 74px; /* space for actions pill */
  z-index: 1;
}

.hc-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  min-height: 160px;
}

.hc-card img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
}

/* shapes similar to reference */
.hc-schools{ border-radius: 22px; }
.hc-students{ border-radius: 22px; }
.hc-staff{ border-radius: 22px 22px 90px 22px; }
.hc-suppliers{ border-radius: 50%; min-height: 180px; }

/* label tags */
.hc-tag{
  position:absolute;
  top: -12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color:#fff;
  box-shadow: 0 12px 24px rgba(2,6,23,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}

.hc-tag--blue{ background: rgba(5,39,85,.92); }
.hc-tag--purple{ background: rgba(124,58,237,.92); }
.hc-tag--orange{ background: rgba(250,159,14,.95); color:#111827; }
.hc-tag--green{ background: rgba(34,197,94,.92); }

/* right vertical actions pill */
.hc-actions{
  position:absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 10px 8px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
}

.hc-action{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.hc-action:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15,23,42,.12);
}

.hc-ic{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(250,159,14,.14);
  border: 1px solid rgba(250,159,14,.20);
  color: #b45309;
}

.hc-tx{
  display:none; /* keep like icon-only reference */
}

/* =========================================================
   Bottom stats (4 cards like reference)
========================================================= */
.hero-stats{
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.hero-stat{
  background: #0a3b73; /* deep navy-ish like reference */
  border-radius: 16px;
  padding: 16px 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(2,6,23,.12);
  height: 100%;
}

.hs-top{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    flex-wrap: nowrap;
    justify-content: center;
}

.hs-top i{
  font-size: 25px;
  opacity: .95;
}

.hs-value{
  font-size: 25px;
  letter-spacing: .2px;
}

.hs-label{
  text-align:center;
  margin-top: 6px;
  font-size: 18px;
  opacity: .92;
  font-weight: 700;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 991.98px){
  .hero.hero-edu{ padding-top: 96px; }
  .hero-collage{ margin: 10px auto 0; padding-right: 0; max-width: 560px; }
  .hc-actions{ display:none; } /* hide actions pill on mobile like most sites */
}

@media (max-width: 575.98px){
  .hero-collage{ grid-template-columns: 1fr 1fr; gap: 12px; }
  .hc-card{ min-height: 140px; }
  .hc-suppliers{ min-height: 160px; }
}

/* Hero */
.hero {
	padding: 120px 0 64px;
	position: relative;
	background: linear-gradient(
    90deg,
    rgba(29, 163, 234, 0.08),
    rgba(250, 159, 14, 0.08)
  );
}

.hero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(29, 163, 234, 0.2);
	background: rgba(29, 163, 234, 0.08);
	border-radius: 999px;
	color: var(--blue);
	font-weight: 600;
}

.hero h1 {
	font-family: Poppins, Inter, sans-serif;
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.05;
	margin-top: 14px;
	font-size: clamp(2.1rem, 3.4vw, 3.4rem);
}

.gradient-text {
	background: linear-gradient(135deg, var(--cyan), var(--orange));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero p {
	color: var(--muted);
	font-size: 1.05rem;
	margin-top: 14px;
	max-width: 52ch;
}

.hero-card {
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.hero-card .top {
	padding: 18px 18px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dots {
	display: flex;
	gap: 7px;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
}

.dot:nth-child(1) {
	background: rgba(250, 159, 14, 0.9);
}

.dot:nth-child(2) {
	background: rgba(49, 200, 246, 0.9);
}

.dot:nth-child(3) {
	background: rgba(29, 163, 234, 0.9);
}

.hero-card .body {
	padding: 18px;
}

.mini-stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: rgba(248, 250, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	margin-bottom: 12px;
}

.mini-stat .label {
	color: var(--muted);
	font-size: 0.92rem;
}

.mini-stat .value {
	font-weight: 800;
	color: var(--text);
}

.pulse-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	background: rgba(49, 200, 246, 0.1);
	border: 1px solid rgba(49, 200, 246, 0.3);
	color: var(--blue);
	font-weight: 700;
	font-size: 0.92rem;
}

.pulse {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(49, 200, 246, 0.95);
	box-shadow: 0 0 0 0 rgba(49, 200, 246, 0.55);
	animation: pulse 1.6s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(49, 200, 246, 0.55);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(49, 200, 246, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(49, 200, 246, 0);
	}
}

/* Login Modal Enhancements */
.login-header {
	background: linear-gradient(135deg, #1DA3EA, #31C8F6);
	padding: 20px;
	border-radius: 18px 18px 0 0;
	color: #fff;
}

.login-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #ffffff;
	color: #1DA3EA;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: 0 12px 30px rgba(0,0,0,.15);
	margin: -52px auto 10px;
}

.input-icon {
	position: relative;
}

.input-icon i {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: rgba(5,39,85,.55);
	font-size: 1rem;
}

.input-icon input {
	padding-left: 42px;
}

.login-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
	color: rgba(5,39,85,.45);
	font-size: .85rem;
}

.login-divider::before,
.login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(5,39,85,.12);
}

/* Staff/Admin Login Enhancements */
.staff-header {
	background: linear-gradient(135deg, #052755, #1DA3EA);
	padding: 20px;
	border-radius: 18px 18px 0 0;
	color: #fff;
}

.staff-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #ffffff;
	color: #052755;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
	margin: -52px auto 10px;
	border: 3px solid rgba(29,163,234,.25);
}

.security-note {
	background: rgba(250,159,14,.10);
	border: 1px solid rgba(250,159,14,.25);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: .9rem;
	color: #6a3a00;
}

.role-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(5,39,85,.08);
	border: 1px solid rgba(5,39,85,.16);
	font-size: .8rem;
	font-weight: 800;
	color: #052755;
}

/* Student Registration Enhancements */
.register-header {
	background: linear-gradient(135deg, #1DA3EA, #31C8F6);
	padding: 22px;
	border-radius: 18px 18px 0 0;
	color: #fff;
}

.register-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #ffffff;
	color: #1DA3EA;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	box-shadow: 0 14px 36px rgba(0,0,0,.15);
	margin: -56px auto 10px;
	border: 3px solid rgba(49,200,246,.25);
}

.step-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(29,163,234,.08);
	border: 1px solid rgba(29,163,234,.18);
	font-size: .8rem;
	font-weight: 800;
	color: #052755;
}

.form-hint {
	font-size: .85rem;
	color: rgba(5,39,85,.6);
}

/* Sections */
section {
	padding: 76px 0;
}

.section-title {
	font-family: Poppins, Inter, sans-serif;
	letter-spacing: -0.4px;
	font-weight: 800;
	margin: 0;
	color: var(--text);
}

.section-subtitle {
	margin-top: 10px;
	color: var(--muted);
	max-width: 70ch;
}

.glass {
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature {
	padding: 18px;
	height: 100%;
}

.icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(29, 163, 234, 0.1);
	border: 1px solid rgba(29, 163, 234, 0.2);
	margin-bottom: 12px;
	color: var(--blue);
}

.feature h5 {
	margin: 8px 0 6px;
	font-weight: 800;
	color: var(--text);
}

.feature p {
	color: var(--muted);
	margin: 0;
}

#how {
	background: linear-gradient(
    90deg,
    rgba(29, 163, 234, 0.08),
    rgba(250, 159, 14, 0.08)
  );
}

.steps .step {
	padding: 16px;
	display: flex;
	gap: 14px;
}

.step .num {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(250, 159, 14, 0.1);
	border: 1px solid rgba(250, 159, 14, 0.3);
	font-weight: 900;
	color: var(--orange);
	flex: 0 0 auto;
}

.step p {
	margin: 0;
	color: var(--muted);
}

.step h5 {
	color: var(--text);
}

/* Testimonials */
.quote {
	padding: 18px;
	height: 100%;
}

.quote .stars {
	color: rgba(250, 159, 14, 0.98);
}

.quote p {
	color: var(--muted);
	margin: 10px 0 14px;
}

.quote .who {
	display: flex;
	align-items: center;
	gap: 10px;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: rgba(29, 163, 234, 0.1);
	border: 1px solid rgba(29, 163, 234, 0.2);
	display: grid;
	place-items: center;
	color: var(--blue);
}

.who small {
	color: var(--muted);
	display: block;
	margin-top: -2px;
}

/* Partners Section */
#partners {
	background: radial-gradient(1200px 800px at 20% 0%, rgba(59,130,246,.25), transparent 55%), radial-gradient(1000px 700px at 80% 10%, rgba(34,197,94,.18), transparent 55%), linear-gradient(180deg, #070b14 0%, #0b1220 35%, #070b14 100%);
}

.partner-slider {
	overflow: hidden;
	position: relative;
}

.partner-track {
	display: flex;
	gap: 24px;
	animation: partnerScroll 28s linear infinite;
}

.partner-card {
	min-width: 180px;
	height: 110px;
	background: #fff;
	border: 1px solid rgba(5,39,85,.12);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px rgba(2,20,45,.08);
}

.partner-card img {
	max-width: 160px;
	max-height: 100px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: .85;
	transition: all .25s ease;
}

.partner-card:hover img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.05);
}

.partner-slider:hover .partner-track {
	animation-play-state: paused;
}

@keyframes partnerScroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

#events {
	background: linear-gradient(
    90deg,
    rgba(29, 163, 234, 0.08),
    rgba(250, 159, 14, 0.08)
  );
}

.popup-alert {
    color:white;
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1055;
    min-width: 300px;
    max-width: 90%;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* Footer */
footer {
	padding: 44px 0 28px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: radial-gradient(
      900px 600px at 15% 0%,
      rgba(29, 163, 234, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 85% 10%,
      rgba(250, 159, 14, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #ffffff 100%);
}

.footer-link a {
	color: var(--muted);
	text-decoration: none;
}

.footer-link a:hover {
	color: var(--blue);
}

/* Modals */
.modal-content {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	color: var(--text);
}

.form-control,
.form-select {
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--text);
}

.form-control:focus,
.form-select:focus {
	background: white;
	border-color: rgba(29, 163, 234, 0.55);
	box-shadow: 0 0 0 0.2rem rgba(29, 163, 234, 0.15);
	color: var(--text);
}

.form-text {
	color: rgba(0, 0, 0, 0.6);
}

.alert {
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Small helpers */
.divider {
	height: 1px;
	background: rgba(0, 0, 0, 0.08);
	margin: 22px 0;
}

.badge-soft {
	background: rgba(248, 250, 255, 0.8);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--muted);
	padding: 0.45rem 0.6rem;
	border-radius: 999px;
	font-weight: 700;
}

/* Dropdown menu for light theme */
.dropdown-menu-dark {
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--text);
}

.dropdown-menu-dark .dropdown-item {
	color: var(--text);
}

.dropdown-menu-dark .dropdown-item:hover {
	background: rgba(248, 250, 255, 0.8);
	color: var(--blue);
}

/* Accordion for light theme */
.accordion-item.glass {
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-button {
	background: white;
	color: var(--text);
}

.accordion-button:not(.collapsed) {
	background: white;
	color: var(--blue);
}

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

/* Counter animation */
.counter {
	color: var(--blue);
}

/* ===== Events slider ===== */
.events-slider {
	display: flex;
	gap: 14px;
	overflow: auto;
	scroll-snap-type: x mandatory;
	padding: 6px 4px 10px;
	-webkit-overflow-scrolling: touch;
}

.events-slider::-webkit-scrollbar {
	height: 8px;
}

.events-slider::-webkit-scrollbar-thumb {
	border-radius: 10px;
}

.event-card {
	flex: 0 0 auto;
	width: 340px;
	scroll-snap-align: start;
	overflow: hidden;
}

@media (max-width: 575.98px) {
	.event-card {
		width: 86vw;
	}
}

.event-media {
	position: relative;
	height: 180px;
	overflow: hidden;
}

.event-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.02);
}

.event-pill {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	backdrop-filter: blur(10px);
	background: rgba(255,255,255,.55);
	border: 1px solid rgba(255,255,255,.55);
}

.event-body {
	padding: 14px;
}

.event-title {
	font-size: 1.05rem;
	margin: 0;
}

.event-meta {
	margin-top: 10px;
	color: var(--muted);
	font-size: 0.92rem;
}

.meta-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 6px;
}

.meta-row i {
	margin-top: 2px;
}


/* Mobile collapsed menu background (otherwise it blends into hero) */
@media (max-width: 991.98px) {
	.navbar .navbar-collapse {
		margin-top: 10px;
		padding: 12px;
		border-radius: 16px;
    /* glass background */
		background: rgba(255,255,255,.75);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border: 1px solid rgba(255,255,255,.55);
	}

  /* make links readable on light collapse background */
	.navbar .nav-link {
		color: #0b1220 !important;
	}

  /* dropdown menu inside collapse */
	.navbar .dropdown-menu {
		position: static;
		float: none;
		width: 100%;
		margin-top: 8px;
	}
}
/* Ensure hamburger icon is visible */
.navbar .navbar-toggler {
	border: 0;
	box-shadow: none !important;
}

.navbar .navbar-toggler-icon {
	filter: invert(1);
 /* makes it visible on light background */;
}

/* =========================
   GALLERY (matches glass theme)
========================= */
.gallery-card{
  width:100%;
  border:0;
  padding:0;
  text-align:left;
  overflow:hidden;
  border-radius:18px;
  position:relative;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
  filter:saturate(1.05);
  transform: scale(1.01);
  transition: transform .25s ease, filter .25s ease;
}

.gallery-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 20%, rgba(0,0,0,.35) 100%);
  opacity:.75;
  pointer-events:none;
}

.gallery-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}
.gallery-card:hover img{
  transform: scale(1.06);
  filter:saturate(1.12) contrast(1.02);
}

.gallery-badge{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
  padding:.38rem .6rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  color:#fff;
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}

.gallery-modal-media{
  border-radius:16px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.08);
  background:#fff;
}

.gallery-modal-media img{
  width:100%;
  height:auto;
  display:block;
}

.gallery-masonry {
    column-count: 4;
    column-gap: 1rem;
}
@media (max-width: 992px) { .gallery-masonry { column-count: 3; } }
@media (max-width: 768px) { .gallery-masonry { column-count: 2; } }

.gallery-album {
    break-inside: avoid;
    margin-bottom: 1rem;
    cursor: zoom-in;
    transition: transform .25s ease;
}
.gallery-album:hover {
    transform: scale(1.03);
}

.gallery-album img {
    width: 100%;
    border-radius: 14px;
}

.carousel-inner img {
    width: 100%;
    border-radius: 18px;
    cursor: zoom-in;
}

/* Section background similar to screenshot */
.weekly-news{
  padding: 24px 0 10px;
  background: #f6f7f9;
}

/* "See More →" on right */
.weekly-news .see-more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: #d2691e; /* warm accent like screenshot */
  opacity: .95;
}
.weekly-news .see-more:hover{ opacity: 1; text-decoration: underline; }
.weekly-news .see-more .arrow{ transition: transform .2s ease; }
.weekly-news .see-more:hover .arrow{ transform: translateX(2px); }

/* card */
.news-card{
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(16, 24, 40, .06);
}
.news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(16, 24, 40, .12);
}

/* image */
.news-media{
  display: block;
  position: relative;
  height: 185px;
  overflow: hidden;
  background: #eef1f4;
}
.news-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .25s ease;
}
.news-card:hover .news-media img{ transform: scale(1.06); }

/* content */
.news-body{
  padding: 12px 14px 14px;
}
.news-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25rem;
  color: #1f2937;
}
.news-title:hover{ text-decoration: underline; }

/* list of links under title (Weekly Highlight like screenshot) */
.news-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.news-link{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1rem;
  text-decoration: none;
  color: #6b7280;
}
.news-link:hover{
  color: #111827;
  text-decoration: underline;
}

/* compact card used in Weekly Fun News */
.news-card--compact .news-media{ height: 160px; }
.news-card--compact .news-body{ padding-top: 10px; }

.weekly-divider{
  height: 24px;
}

/* Outer shell (main visual container) */
#institutionModal .institution-shell {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 20px;
  padding: 20px;
}

/* Panels */
#institutionModal .panel {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
}

/* Left info panel */
#institutionModal .panel-left {
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
}

/* Right form panel */
#institutionModal .panel-right {
  background: #ffffff;
}

/* Header brand */
#institutionModal .brand-badge {
  background: rgba(37,99,235,.12);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 600;
}

/* Titles */
#institutionModal .h-title {
  font-weight: 800;
  color: #1e293b;
}

/* Pills */
#institutionModal .pill {
  background: rgba(99,102,241,.12);
  border: none;
  color: #1e293b;
  font-weight: 600;
}

/* Divider */
#institutionModal .divider {
  height: 1px;
  background: rgba(15,23,42,.12);
  margin: 14px 0;
}

/* Inputs */
#institutionModal .form-control,
#institutionModal .form-select {
  border-radius: 12px;
}

#institutionModal .form-control:focus,
#institutionModal .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 .2rem rgba(99,102,241,.2);
}

/* Radio buttons */
#institutionModal .form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}

/* Buttons */
#institutionModal .btn-primary {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(37,99,235,.25);
}

#institutionModal .btn-primary:hover {
  box-shadow: 0 12px 26px rgba(37,99,235,.35);
}

/* Backdrop – safe */
#institutionModal ~ .modal-backdrop.show {
  background: rgba(15,23,42,.55);
}
