@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --oxford-blue: #002147;
  --dark-bg: #f8fafc;
  --electric-cyan: #0284c7;
  --magenta: #0369a1; /* Changed from purple to a standard dark blue */
  --text-main: #0f172a;
  --text-muted: #475569;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(16px);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.05), transparent 25%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
}

.text-gradient {
  background: linear-gradient(90deg, var(--electric-cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Bento Components */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, 1fr);
}

/* Inner page hero with background image */
.hero-inner {
  position: relative;
  overflow: hidden;
  background-color: #001a3a; /* Dark fallback if image fails */
}

.hero-inner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.38);
  z-index: 0;
  transform: scale(1.05);
}

/* Extra gradient overlay for depth */
.hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,26,58,0.55) 0%, rgba(0,50,100,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner .hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-inner .hero-content h1 {
  color: #ffffff;
}

.hero-inner .hero-content p {
  color: rgba(255,255,255,0.85);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(2, 132, 199, 0.1);
}

.glass-card:hover::before {
  left: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--electric-cyan);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-main);
  margin-bottom: 5px;
  transition: var(--transition);
  border-radius: 3px;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--oxford-blue), var(--electric-cyan));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--electric-cyan);
  color: var(--electric-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
}

/* Sections */
section {
  padding: 6rem 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Offset nav */
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  background: rgba(0, 255, 255, 0.1);
  color: var(--electric-cyan);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Footer */
/* --- Site Footer --- */
.site-footer {
  background-color: var(--oxford-blue);
  color: white;
  padding: 4rem 0 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.2;
}
.footer-brand span {
  font-size: 1.1rem;
  color: var(--electric-cyan);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--electric-cyan);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links-group h4, .footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-links-group h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 40px;
  height: 2px;
  background-color: var(--electric-cyan);
}

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

.footer-links-group ul li {
  margin-bottom: 0.8rem;
}

.footer-links-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links-group a:hover {
  color: var(--electric-cyan);
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact ul li svg {
  flex-shrink: 0;
  color: var(--electric-cyan);
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

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

/* Utilities */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.span-2 {
  grid-column: span 2;
}

.span-1 {
  grid-column: span 1;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.mobile-only-btn {
  display: none;
}

/* Article Cards */
.article-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(2,132,199,0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,33,71,0.07);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0,33,71,0.15);
  border-color: rgba(2,132,199,0.4);
}
.article-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-img-wrap img { transform: scale(1.06); }
.article-date {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,33,71,0.82);
  color: #fff;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.article-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-cat {
  display: inline-block;
  background: linear-gradient(90deg, rgba(2,132,199,0.1), rgba(103,232,249,0.1));
  color: var(--electric-cyan);
  border: 1px solid rgba(2,132,199,0.2);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}
.article-title {
  color: var(--oxford-blue);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-read-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--electric-cyan);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap 0.2s ease;
}
.article-card:hover .article-read-more { gap: 0.7rem; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding-top: 100px;
    padding-left: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-container .btn-secondary {
    display: none; /* Hide apply button on mobile nav bar, keep inside menu if needed */
  }

  .desktop-only-btn {
    display: none;
  }
  
  .mobile-only-btn {
    display: block;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .glass-card {
    grid-column: span 1 !important;
  }
  
  .responsive-grid-2, .responsive-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .span-2, .span-1 {
    grid-column: span 1 !important;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem !important;
  }
  
  .logo {
    gap: 0.5rem;
  }
  
  .logo img {
    height: 36px !important;
    width: 36px !important;
  }
  
  .logo span > span:first-child {
    font-size: 0.85rem !important;
  }

  .logo span > span:last-child {
    font-size: 0.72rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }

  /* Footer links tighter wrap */
  .footer-links {
    gap: 1rem;
  }
  
  /* All inline grids collapse on mobile */
  [style*="display: grid"],
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Prevent forced multi-column from inline spans */
  [style*="grid-column: span 2"],
  [style*="grid-column: span 3"],
  [style*="grid-column: span 4"] {
    grid-column: span 1 !important;
  }

  /* Fix minmax grids causing horizontal scroll (like alumni.php) */
  .bento-grid, .responsive-grid-2, .responsive-grid-3, .roster-grid, [style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats strips: always full-width single column */
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Grid children overrides */
  [style*="display: grid"] > *,
  [style*="display:grid"] > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Stats strip borders: remove vertical dividers */
  [style*="border-right"] {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Hero min-height smaller on mobile to prevent overflow */
  .hero {
    min-height: auto !important;
    padding-top: 130px !important;
    padding-bottom: 3.5rem !important;
    align-items: flex-start;
  }
  
  .hero-inner {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 2.5rem !important;
  }

  /* Buttons on mobile */
  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  /* Hero badge wrap */
  .hero-badges {
    gap: 0.5rem;
  }

  /* Programme 4-day timeline */
  .timeline-item {
    flex-direction: column;
  }

  /* Article detail sidebar: hide or stack */
  [style*="grid-template-columns: 1fr 300px"] > *:last-child {
    position: static !important;
  }

  /* Remove large decorative orbs */
  [style*="width: 300px"][style*="height: 300px"],
  [style*="width: 350px"][style*="height: 350px"] {
    display: none;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.9rem !important; }
  h2 { font-size: 1.5rem !important; }

  .btn-group, [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
    flex-direction: column;
    align-items: stretch;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  top: 150px; /* Top right below hero/header */
  right: -5px;
  background-color: #25d366;
  color: white;
  border-radius: 30px 0 0 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 12px 25px 12px 18px;
  box-shadow: -2px 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.floating-whatsapp:hover {
  transform: translateX(-10px);
  background-color: #1ebe57;
  color: white;
}

.floating-whatsapp img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
