:root {
  --brand: #0b5ed7;
  --muted: #6b7280;
  --bg: #f7f7fb;
  --maxw: 1100px;
  --radius: 8px;
  --gap: 1.25rem;
  --container-padding: 1rem;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial;
  margin: 0;
  background: var(--bg);
  color: #111827;
  line-height: 1.5;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.site-header {
 background: linear-gradient(270deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
      background-size: 800% 800%;
      animation: gradientShift 12s ease infinite;
      padding: 15px 40px;
      /*display: flex;*/
      margin: auto;
      justify-content: space-between;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      position: sticky;
      top: 0;
      z-index: 1000;
}
/* Gradient animation keyframes */
    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0;
}
/* Group logo and brand on the left */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand {
  margin-left: 0.25rem;
}
/* Push the main nav to the right */
.site-nav {
  margin-left: auto;
}
.brand {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  font-size: 30px;
}
/* Logo styling */
.logo img {
	 height: 50px;   /* adjust size */
      width: auto;    /* keep aspect ratio */
    }
.logo img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
/* Nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
}
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  float:left;
  gap: 10px;
}

.site-nav a {
      text-decoration: none;
      color: #ffffff;
     /* padding: 0.5rem 0.5rem;
	  border-radius: 6px;*/
      font-size: 18px; 
      position: relative;
      transition: color 0.3s ease;
    }

    /* Gradient underline with glow */
.site-nav a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
      transition: width 0.4s ease;
      border-radius: 2px;
      /* Ambient reflective glow */
      box-shadow:
        0 0 6px #ff00ff,
        0 0 12px #00ffff,
        0 0 18px #ffff00;
    }

    .site-nav a:hover {
      color: #00ffff;
    }

    nav a:hover::after {
      width: 100%;
    }

    /* Chevron indicator for items with submenu */
    .nav-item-with-submenu > a {
      position: relative;
      padding-right: 1rem;
    }
    .nav-item-with-submenu > a::after {
      content: '▾';
      display: inline-block;
      margin-left: 0.35rem;
      font-size: 0.85rem;
      color: #ffffff;
      transition: transform 0.18s ease, color 0.18s ease;
      transform-origin: center;
    }
    .nav-item-with-submenu:hover > a::after,
    .nav-item-with-submenu[aria-expanded="true"] > a::after {
      transform: rotate(180deg);
      color: #ffff00;
    }

    /* Focus styles for accessibility */
    .nav-item-with-submenu > a:focus {
      outline: 3px solid rgba(0, 204, 255, 0.18);
      outline-offset: 3px;
      color: #00ffff;
    }
    .nav-item-with-submenu > a:focus::after {
      transform: rotate(180deg);
      color: #ffff00;
    }
    .nav-toggle:focus {
      outline: 3px solid rgba(11, 94, 215, 0.15);
      outline-offset: 3px;
    }

/* Submenu styling */
.nav-item-with-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(270deg, #ff00ff, #00ffff);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  border-radius: 0 0 6px 6px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item-with-submenu:hover .submenu {
  display: flex;
}

.submenu li {
  padding: 0;
}

.submenu li a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  transition: background 0.2s ease;
  position: relative;
}

.submenu li a::after {
  display: none;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffff00;
}




/* Hero 
.hero {
  background: linear-gradient(90deg, rgba(11, 94, 215, 0.06), rgba(0, 0, 0, 0));
  padding: 3.5rem 0;
}
.hero-inner {
  max-width: 900px;
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.hero p {
  color: var(--muted);
  margin: 0 0 1rem;
} */

/* Banner Carousel */
.hero-banner {
  position: relative;
  width: 95%;
  height:35vh;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 4rem;
  overflow: hidden;
  background: #2a2929;
  box-shadow: #2a2929 0px 3px 8px;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 50%;
  min-height: 35vh;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

/* Slide caption styling */
.slide-caption {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.slide-caption h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
}

.slide-caption p {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

/* Positioned captions */
.slide-caption--positioned {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
}

/* Banner navigation buttons */
.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: #fff;
}

.banner-prev {
  left: 1rem;
}

.banner-next {
  right: 1rem;
}

/* Banner indicators (dots) */
.banner-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator.active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Utility */
.section {
  padding: 2rem 0;
}

.subsection {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e6e9ef;
}

.subsection:first-child {
  border-top: none;
  margin-top: 0;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 0;
  background: #e6eefb;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}

/* Gallery */
.gallery {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.photo {
  background-size: cover;
  background-position: center;
  height: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

/* Contact form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  max-width: 100%;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.05);
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

.contact-map iframe {
  border-radius: 8px;
}
.form-row {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}
label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
input,
textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  font: inherit;
}
.form-msg {
  margin-top: 0.4rem;
  color: var(--brand);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: #f5f5f5;
  border-top: 1px solid #e6e9ef;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: #111827;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-section p {
  margin: 0.5rem 0;
}

.footer-section a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #0a4ba3;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  display: inline-block;
}

.footer-divider {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 1.5rem 0;
}

.footer-copyright {
  margin: 0;
  text-align: center;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .container {
    padding: 0 0.9rem;
  }
  .hero {
    padding: 2.2rem 0;
  }
  .banner-slides {
    height: 45vh;
  }
  .slide-caption {
    padding: 1rem;
    margin: 1rem auto;
    max-width: calc(100% - 2rem);
  }
  /* On smaller screens, force captions to center and stack inside the slide */
  .slide-caption--positioned {
    position: relative;
    top: auto;
    transform: none;
    left: auto;
    right: auto;
    margin: 1rem auto;
    max-width: calc(100% - 2rem);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    left: 0;
    right: 20px;
    background: #fff;
    top: 64px;
    border-bottom: 1px solid #eef2ff;
    display: none;
  }
  .site-nav[aria-hidden="false"] {
    display: block;
  }
  .site-nav > ul {
    flex-direction: column;
    padding: 0.5rem;
  }
  .site-nav a {
    padding: 0.8rem 1rem;
  }
  .submenu {
    position: static;
    display: none;
    background: linear-gradient(270deg, #ff00ff, #00ffff);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    border-radius: 4px;
    margin-top: 0.5rem;
    min-width: unset;
  }
  .nav-item-with-submenu:hover .submenu,
  .nav-item-with-submenu[aria-expanded="true"] .submenu {
    display: flex;
  }
  .header-inner {
    gap: 0.5rem;
  }
  .hero {
    padding: 1.75rem 0;
  }
  .grid.cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .banner-slides {
    height: 36vh;
  }
  .slide-caption {
    padding: 0.75rem;
  }
  .banner-prev,
  .banner-next {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* Subject Links Grid */
.subject-links-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.subject-card {
	text-decoration: none;
	background: #ffffff;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
}

.subject-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	background: radial-gradient(circle at 30% 30%, rgba(11, 94, 215, 0.3), transparent 70%),
	            radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.3), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.subject-card:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
	            0 0 30px rgba(11, 94, 215, 0.4),
	            0 0 60px rgba(0, 255, 255, 0.2);
	border-color: var(--brand, #0b5ed7);
}

.subject-card:hover::before {
	opacity: 1;
}

.subject-card:focus {
	outline: 2px solid var(--brand, #0b5ed7);
	outline-offset: 2px;
}

.subject-icon {
	font-size: 2.5rem;
	margin-bottom: 0.75rem;
	display: block;
}

.subject-name {
	color: #111827;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.4;
}

.subject-card:hover .subject-name {
	color: var(--brand, #0b5ed7);
}

/* Search input above subject links */
.search-wrapper {
  margin: 1rem 0 0.5rem;
  display: flex;
  justify-content: center;
}

#subjectSearch {
  width: 100%;
  max-width: 560px;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(16,24,40,0.04);
  font-size: 0.95rem;
}

#subjectSearch:focus {
  outline: 2px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(11,94,215,0.1);
}

.search-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  text-align: center;
}

.search-highlight {
  outline: 3px solid rgba(11,94,215,0.18);
  outline-offset: 4px;
  transform: translateY(-3px) scale(1.02);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Grid */
@media (max-width: 900px) {
	.subject-links-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.2rem;
	}
}

@media (max-width: 600px) {
	.subject-links-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.subject-card {
		padding: 1rem;
	}

	.subject-icon {
		font-size: 2rem;
		margin-bottom: 0.5rem;
	}

	.subject-name {
		font-size: 0.9rem;
	}
}

/* Portal Cards Grid */
.portal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.portal-card {
	text-decoration: none;
	background: #ffffff;
	padding: 2rem 1.5rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
	color: #111827;
}

.portal-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 8px;
	background: radial-gradient(circle at 30% 30%, rgba(11, 94, 215, 0.3), transparent 70%),
	            radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.3), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.portal-card:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
	            0 0 30px rgba(11, 94, 215, 0.4),
	            0 0 60px rgba(0, 255, 255, 0.2);
	border-color: var(--brand, #0b5ed7);
}

.portal-card:hover::before {
	opacity: 1;
}

.portal-card--disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.portal-card--disabled:hover {
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-color: transparent;
}

.portal-card--disabled:hover::before {
	opacity: 0;
}

.portal-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	display: block;
}

/* Image-specific portal icon sizing (keeps emoji fallback) */
.portal-icon--img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

/* Ensure portal content sits above the ambient glow pseudo-element */
.portal-card > * {
  position: relative;
  z-index: 2;
}

.portal-card h3 {
	margin: 0.5rem 0;
	font-size: 1.1rem;
	color: var(--brand, #0b5ed7);
}

.portal-card p {
	margin: 0.5rem 0 0 0;
	font-size: 0.9rem;
	color: #6b7280;
	line-height: 1.4;
}

.portal-card:hover h3 {
	color: #0856cc;
}

/* Responsive Portal Grid */
@media (max-width: 900px) {
	.portal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.2rem;
	}
}

@media (max-width: 600px) {
	.portal-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.portal-card {
		padding: 1.5rem 1rem;
	}

	.portal-icon {
		font-size: 2.5rem;
		margin-bottom: 0.75rem;
	}

	.portal-card h3 {
		font-size: 1rem;
	}

	.portal-card p {
		font-size: 0.85rem;
	}
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
}
