/* ========================
   Global Reset & Base
======================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9fb;
  color: #222;
  line-height: 1.6;
}

/* ========================
   Top Bar
======================== */
.top-bar {
  background: #ffcc33; /* Gold */
  color: #003366;
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top Bar Links with Icons */
.top-bar a {
  display: flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 4px;
}
.top-bar a:hover {
  background: #003366;
  color: #ffcc33;
  transform: translateY(-2px); /* subtle lift */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.top-bar a i { font-size: 14px; }

.top-bar input {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ========================
   Header
======================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;            /* WHITE menu bar */
  padding: 15px 30px;
  position: sticky;
  top: 38px;                      /* sits below gold top bar */
  z-index: 999;
  border-bottom: 2px solid #ffcc33; /* subtle gold underline */
}
.brand img.uni-logo { height: 100px; width: auto; display: block; }
.menu-toggle {
  display: none;
  background: #ffffff;
  color: #003366;
  border: 1px solid #003366;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* ========================
   Navigation
======================== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-nav li { position: relative; }
.main-nav a {
  color: #003366;                 /* Blue links on white header */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
.main-nav a:hover {               /* Gold hover, keep white background */
  color: #ffcc33;
  background: transparent;
}

/* Dropdown (white panel on desktop) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;            /* WHITE dropdown */
  min-width: 200px;
  border-radius: 0 0 6px 6px;
  z-index: 1000;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #eee;
}
.dropdown-content li { width: 100%; }
.dropdown-content li a {
  color: #003366;                 /* Blue items */
  padding: 10px;
  display: block;
  white-space: nowrap;
}
.dropdown-content li a:hover {
  background: #ffcc33;            /* Gold hover */
  color: #003366;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ========================
   Mobile Navigation
======================== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    background: #ffffff;          /* WHITE mobile menu */
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid #eee;
  }
  .main-nav ul.show { display: flex; }

  /* Dropdown shows when .open is applied; keep white background */
  .dropdown-content {
    position: static;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #ffffff;
    box-shadow: none;
    border: 0;
  }
  .dropdown.open .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
    max-height: 500px; /* enough for items */
  }
  .dropdown-content li a {
    color: #003366;
    border-bottom: 1px solid #f2f2f2;
  }
  .main-nav a { border-bottom: 1px solid rgba(0,0,0,0.06); }
}

/* ========================
   Hero
======================== */
.hero {
  height: 90vh;
  background: url("images/hero1.jpg") center/cover no-repeat;
}

/* ========================
   Welcome
======================== */
.welcome {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}
.welcome h2 { color: #003366; margin-bottom: 20px; }

/* ========================
   Footer
======================== */
.site-footer {
  background: #003366;            /* DEEP BLUE footer */
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
}
.site-footer em {
  font-family: 'Scheherazade New','Amiri',serif;
  font-size: 1.1rem;
  color: #ffcc33;                 /* Gold accent for verse */
}
.footer-seal {
  max-width: 100px;
  margin: 15px auto;
  display: block;
}

/* Footer grid navigation */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* keep your 4-col grid */
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}
.footer-col h4 {
  color: #ffcc33;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 5px 0; }
.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}
.footer-col a:hover { color: #ffcc33; }

/* Responsive footer */
@media (max-width: 768px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-nav { grid-template-columns: 1fr; } }

/* ========================
   Apply Hero
======================== */
.apply-hero {
  position: relative;
  height: 55vh; /* reduce height from 75vh to 55vh */
  background: url('images/apply-hero.jpg') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .apply-hero {
    height: 40vh; /* smaller for mobile */
    background-position: center 35%;
  }
}
/* === Contact Box Contrast Fix (Gold Links + Button) === */
.contact-box a {
  color: #ffcc33;
  text-decoration: none;
  font-weight: bold;
}

.contact-box a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-box a.btn {
  background: #ffcc33;
  color: #003366;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.contact-box a.btn:hover {
  background: #e6b800;
  color: #ffffff;
}
/* ==== HERO ==== */
.hero {
  position: relative;
  height: 55vh;
  background: url("images/hero-calendar.jpg") center 35% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
/* ==== HERO ==== */
.hero {
  position: relative;
  height: 60vh; /* slightly taller to show full image */
  background: url("images/hero-calendar.jpg") center 60% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-text p {
  font-size: 1.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

@media(max-width:768px){
  .hero { height: 60vh; background-position: center 70%; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 1rem; }
}
