/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f9f9f9;
  color: #1a2b49;
  overflow-x: hidden;
  line-height: 1.6;
}


/* Reset link styles */
a {
  text-decoration: none;
  color: inherit;
}
/* Global Smooth Transitions */
a, button, .btn, .card, .links-grid a {
  transition: all 0.3s ease-in-out;
}

/* --- NAVBAR --- */
.main-nav {
  background: #1a2b49;
  color: #f8e1a1;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 2rem;
  background: #0d1a30;
}

.top-bar a {
  margin: 0 0.7rem;
  color: #f8e1a1;
  font-weight: 500;
}

.logo-menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-3px);
}

/* Dropdown Menu */
.main-menu ul {
  list-style: none;
  display: flex;
}

.main-menu ul li {
  position: relative;
  margin-left: 2rem;
  cursor: pointer;
}

.main-menu ul li a {
  color: #f8e1a1;
  font-weight: 600;
}

.submenu {
  display: none;
  position: absolute;
  background: #ffffff;
  color: #1a2b49;
  top: 100%;
  left: 0;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.3s ease;
}

.submenu li {
  padding: 0.7rem 1rem;
}

.submenu li a {
  color: #1a2b49;
}

.main-menu ul li:hover .submenu {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* --- HERO --- */
.hero {
  background: url('https://source.unsplash.com/1600x900/?university,campus') center/cover no-repeat;
  height: 85vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,43,73,0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  margin: 0.3rem;
  cursor: pointer;
}

.btn.primary {
  background: #f8e1a1;
  color: #1a2b49;
}

.btn.primary:hover {
  background: #e6c97f;
  transform: scale(1.05);
}

.btn.secondary {
  background: transparent;
  border: 2px solid #f8e1a1;
  color: #f8e1a1;
}

.btn.secondary:hover {
  background: #f8e1a1;
  color: #1a2b49;
  transform: scale(1.05);
}

/* --- QUICK LINKS --- */
.quick-links {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: flex-end; /* text at bottom */
  justify-content: center;
  height: 220px; /* fixed height for consistency */
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background-size: cover;      /* cover, but centered */
  background-position: center; 
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.link-card .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 42, 102, 0.55); /* ABU navy overlay */
  transition: background 0.3s ease;
}

.link-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1rem;
  color: #f8e1a1; /* ABU gold */
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.link-card:hover {
  transform: scale(1.05);
}

.link-card:hover .overlay {
  background: rgba(10, 42, 102, 0.75);
}

/* --- NEWS --- */
.news-highlights {
  background: #f2f6fa;
  padding: 4rem 2rem;
  text-align: center;
}

.news-highlights h2 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* center align cards */
  gap: 0.5rem;               /* very small space between cards */
  max-width: 1000px;
  margin: 0 auto;            /* centers group */
}

.card {
  background: #fff;
  padding: 1rem;             /* slightly smaller padding inside */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 0 1 280px;
  max-width: 280px;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.4s ease;
}

.card.visible {
  transform: translateY(0);
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* --- FOOTER --- */
footer {
  background: #1a2b49;
  color: #f8e1a1;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-links a {
  color: #f8e1a1;
  margin: 0 0.7rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* Quick Links Grid */
.quick-links {
  padding: 2rem;
  background: #f9f9f9;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.link-card {
  position: relative;
  height: 180px;               /* consistent card height */
  background-size: cover;       /* make image cover the card */
  background-position: center;  /* center the image */
  background-repeat: no-repeat; /* prevent tiling */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: scale(1.05);       /* small zoom on hover */
}

.link-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.link-card:hover .overlay {
  background: rgba(0,0,0,0.55);
}

.link-card h3 {
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}





.news-highlights {
  padding: 2rem;
  background: #f5f5f5;
}

.news-highlights h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'Merriweather', serif;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.card-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}



/* ---------- About page additions ---------- */
.small-hero { height: 40vh; min-height: 300px; display:flex; align-items:center; }
.small-hero .hero-content { max-width:1100px; margin:0 auto; color: #fff; z-index:2; }

/* about layout */
.container { max-width:1200px; margin:2.5rem auto; padding:0 1.25rem; }
.about-grid { display:grid; grid-template-columns: 360px 1fr; gap:1.6rem; align-items:start; }

/* chancellor card */
.chancellor-card { display:flex; gap:1rem; background:#fff; border-radius:12px; box-shadow:0 12px 30px rgba(18,34,64,0.08); overflow:hidden; padding:1rem; }
.chancellor-media img { width:140px; height:140px; object-fit:cover; border-radius:10px; }
.chancellor-body h3 { margin:0 0 0.25rem; font-size:1.25rem; }
.muted { color:#6b7280; }

/* accordion */
.about-accordion { background:#fff; border-radius:12px; padding:0.5rem; box-shadow:0 8px 20px rgba(18,34,64,0.06); }
.accordion-item + .accordion-item { margin-top:0.6rem; }
.accordion-toggle { width:100%; background:transparent; border:0; text-align:left; padding:0.9rem 1rem; font-weight:700; cursor:pointer; border-radius:8px; transition:background 0.2s; }
.accordion-toggle:hover { background:#f3f6fb; }
.accordion-panel { max-height:0; overflow:hidden; transition:max-height 0.45s ease, padding 0.3s; padding:0 1rem; }
.accordion-panel.open { padding:0.9rem 1rem; max-height:600px; }

/* board grid */
.board-section { margin-top:2.5rem; }
.section-title { font-size:1.6rem; margin-bottom:1rem; color:#1a2b49; }
.board-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; }
.board-card { background:#fff; border-radius:12px; padding:1rem; text-align:center; box-shadow:0 10px 24px rgba(18,34,64,0.06); transition:transform 0.25s, box-shadow 0.25s; }
.board-card:hover { transform:translateY(-6px); box-shadow:0 18px 40px rgba(18,34,64,0.09); }
.board-media img { width:100%; height:140px; object-fit:cover; border-radius:8px; }

/* subtle reveal animations using utility classes */
.page-fade .card-anim { opacity:0; transform:translateY(18px); transition:opacity 0.6s ease, transform 0.6s ease; }
.card-anim.visible { opacity:1; transform:none; }

/* responsive */
@media (max-width:900px) {
  .about-grid { grid-template-columns: 1fr; }
  .chancellor-card { flex-direction:row; align-items:center; }
  .chancellor-media img { width:120px; height:120px; }
  .small-hero { height:32vh; }
}



.split-hero {
  display: flex;
  height: 90vh; /* full viewport hero */
  position: relative;
  overflow: hidden;
}

.hero-left {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}

.hero-right {
  flex: 1;
  background: rgba(10, 42, 102, 0.95); /* ABU navy overlay */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: -200px;   /* push overlay deeper into the image */
  width: 300px;   /* make overlay much wider */
  height: 120%;   /* stretch a little taller so bottom is fully covered */
  background: inherit;
  transform: skewX(-12deg);
  z-index: -1;
}

.hero-text {
  max-width: 500px;
  padding: 2rem;
  animation: fadeInUp 1.2s ease;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn.primary {
  background: #e7d188; /* ABU gold */
  color: #0a2a66;      /* navy text */
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.btn.primary:hover {
  background: #fff;
  color: #0a2a66;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .split-hero {
    flex-direction: column;
    height: auto;
  }

  .hero-left, .hero-right {
    flex: none;
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
  }

  .hero-right::before {
    display: none; /* remove angle on mobile */
  }

  .hero-text {
    text-align: center;
  }
}












/* --- FEATURED SECTION --- */
.featured-section {
  display: flex;
  flex-wrap: wrap;
  margin: 4rem auto;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.featured-left {
  flex: 1;
  background: #0a2a66; /* ABU navy */
  color: white;
  padding: 3rem 2rem;
}

.featured-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-left p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn.gold {
  background: #d4af37;   /* ABU gold */
  color: #0a2a66;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.gold:hover {
  background: #fff;
  color: #0a2a66;
}

.featured-right {
  flex: 1;
  background: #f2f6fa;
  padding: 3rem 2rem;
}

.featured-right h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: #0a2a66;
}

.featured-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-right li {
  margin-bottom: 1rem;
}

.featured-right a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #0a2a66;
  font-weight: 600;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.featured-right a:hover {
  background: #d4af37;
  color: #0a2a66;
  transform: translateX(6px);
}










.academics-section {
  display: flex;
  min-height: 85vh;
  background: #fdfdfd;
  font-family: 'Montserrat', sans-serif;
}

/* Sidebar */
.academics-sidebar {
  width: 25%;
  background: #0a2a66; /* ABU navy */
  color: #fff;
  padding: 1.5rem;
  border-right: 3px solid #d4af37; /* ABU gold */
}

.academics-sidebar input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.academics-sidebar input:focus {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.6);
}

.academics-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.academics-sidebar li {
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.academics-sidebar li:hover {
  background: #d4af37; /* gold hover */
  color: #0a2a66;
  transform: translateX(5px);
}

/* Programs area */
.academics-programs {
  flex: 1;
  padding: 2rem 3rem;
  background: #fff;
  overflow-y: auto;
}

.programs-group {
  display: none;
  animation: fadeIn 0.5s ease;
}

.programs-group.active {
  display: block;
}

.programs-group h2 {
  color: #0a2a66;
  font-size: 1.8rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.programs-group ul {
  list-style: none;
  padding: 0;
}

.programs-group li {
  padding: 0.6rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  transition: color 0.3s, transform 0.2s;
}

.programs-group li:hover {
  color: #0a2a66;
  transform: translateX(4px);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#collegeList li.active {
  background: #d4af37;  /* ABU gold */
  color: #0a2a66;
  font-weight: bold;
}





.info-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  color: #fff;
}

.info-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,42,102,0.6); /* dark blue overlay */
}

.info-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  backdrop-filter: blur(10px); /* frosted glass effect */
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.info-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-form input,
.info-form select {
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
}

.info-form input:focus,
.info-form select:focus {
  outline: 2px solid #d4af37; /* ABU gold highlight */
}

.info-form .consent {
  font-size: 0.9rem;
  color: #eee;
  text-align: left;
}

.info-form button {
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  background: #d4af37; /* ABU gold */
  color: #0a2a66;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.info-form button:hover {
  background: #c19b2e;
}
