/* ----------------------------------------------
   ORIGINAL COLOUR SCHEME + GOLD BORDER + BLUE SHIMMER ON HOVER
   Fully responsive, safe, and TV-ready
---------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #2a3a8c, #3a4aac);
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding: clamp(12px, 3vw, 40px);
  position: relative;
  overflow-x: hidden;
  font-size: clamp(14px, 2vw, 18px);
}

/* floating orbs */
.bg-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { top: 5%; left: 5%; }
.orb-2 { bottom: 5%; right: 5%; }
.orb-3 { display: none; }

.portal-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* hero card – glass effect */
.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: clamp(16px, 5vw, 32px);
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: clamp(24px, 5vw, 48px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 221, 0, 0.15);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 221, 0, 0.3);
}

.main-title {
  font-size: clamp(1.8rem, 8vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffdd00, #ff6b00);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(to right, #ffdd00, #ff6b00);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.subhead {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: clamp(60px, 10vw, 120px);
  height: 4px;
  background: linear-gradient(to right, #ffdd00, #ff6b00);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* responsive grid */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 3vw, 30px);
  margin: 30px 0;
}

/* ----- CARD STYLES (gold border, blue shimmer on hover) ----- */
.study-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: clamp(16px, 3vw, 24px);
  padding: clamp(20px, 4vw, 30px);
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 2px solid #ffdd00;               /* GOLD BRIM */
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Shimmering blue hover effect */
.study-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 60, 120, 0.85);     /* deep blue base */
  border-color: #3b82f6;                   /* vivid blue border */
  box-shadow: 0 0 15px 3px rgba(59, 130, 246, 0.6), 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Optional: animated shimmer overlay (light sweep) */
.study-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
  animation: shimmer 0.8s forwards;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.card-icon {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 15px;
  color: #ffdd00;                         /* gold icon */
  transition: color 0.3s ease;
}
.study-card:hover .card-icon {
  color: #60a5fa;                         /* soft blue on hover */
}

.study-card h3 {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  margin-bottom: 12px;
  font-weight: 600;
}

.study-card p {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.4;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #ffdd00, #ff6b00);
  color: #1a2a6c;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

.study-card:hover .card-link {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.02);
}

/* special cards (optional tint) */
.special-card {
  background: rgba(255, 255, 255, 0.18);
  border-left: 3px solid #ffdd00;   /* keep gold accent */
}
.special-card:hover {
  border-left-color: #3b82f6;
}

/* info banner */
.info-banner {
  background: rgba(0, 0, 0, 0.3);
  border-radius: clamp(12px, 3vw, 20px);
  padding: clamp(12px, 3vw, 20px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 20px);
  margin: 30px 0 20px;
  border-left: 4px solid #ffdd00;
  flex-wrap: wrap;
}

.info-banner i {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #ffdd00;
}

.banner-text {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  flex: 1;
}

/* footer */
.portal-footer {
  margin-top: clamp(30px, 6vw, 60px);
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-links {
  margin-top: 8px;
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
}

/* TV / large screen optimization */
@media (min-width: 1920px) {
  .portal-container { max-width: 1800px; }
  .sections-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .study-card p { font-size: 1.1rem; }
}

/* Mobile optimisations */
@media (max-width: 640px) {
  .hero-card { padding: 20px; }
  .info-banner { flex-direction: column; text-align: center; }
  .card-link { padding: 6px 16px; }
}

/* touch & tap improvements */
a, button, .study-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}