:root { 
  --bg: #F9F8F6;
  --text: #2b2b2b;
  --primary: #C9B59C;
  --accent: #EFE9E3;
  --muted: #7a7a7a;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.12);
  --spacing: 20px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header.reveal {
  position: relative;
  top: 0;
  background-color: var(--primary);
  box-shadow: 0 2px 6px var(--shadow);
  color: var(--white);
  z-index: 1000;
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}

header.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Flex Wrapper */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing) 0;
  gap: 30px;
  flex-wrap: wrap;
}

/* Left Block: Logo + Title */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 250px;
}

.logo {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;

  /* Prevent layout jump */
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgb(255, 255, 255);
  transition: transform 0.3s, box-shadow 0.3s;
}

.header-text .title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

/* Right Block: Affiliation */
.header-right {
  text-align: right;
  flex-shrink: 0;
  max-width: 420px;
}

.established {
  position: relative;
  left: -10px; 
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
  color: #ffffffcc;
  line-height: 1.5;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .header-left {
    justify-content: center;
  }

  .header-right {
    text-align: center;
    max-width: 100%;
  }

  .established {
    font-size: 0.85rem;
    margin-top: 10px;
  }
}


/* =========================
   Main Navigation Styles
   ========================= */
.sub-nav {
  position: sticky;
  top: 0;  
  left: 0;
  width: 100%;
  background-color: var(--accent);
  padding: 10px 0;
  z-index: 2000;
  box-shadow: 0 2px 6px var(--shadow);
}

.sub-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin-right: 15px;
  transition: color 0.3s;
}

.sub-nav .nav-link:hover {
  color: var(--primary);
}

.sub-nav.sticky {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background-color: var(--accent);
  box-shadow: 0 2px 6px var(--shadow);
}

/* allow dropdowns to overflow */
.sub-nav, .sub-nav .wrap, .nav-inner { overflow: visible; }

/* Inner nav container */
.nav-inner {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; 
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Links & Dropdown triggers (TOP LEVEL ONLY) */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

/* Underline animation using ::before (avoid clash with Bootstrap caret ::after) */
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::before { width: 100%; }

/* =========================
   Dropdown Styles
   ========================= */
.nav-item { position: relative; }

.sub-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  z-index: 2100; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sub-nav .dropdown-item {
  padding: 10px 20px;
  color: var(--text);
}

.sub-nav .dropdown-item:hover {
  background-color: var(--primary); 
  color: #ffffff;
  border-radius: 20px;
}

/* Make dropdown visible and user-friendly */
.navbar .dropdown-menu {
  min-width: 220px;  
  padding: 10px 0;   
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.navbar .dropdown-item {
  padding: 8px 16px;
  font-size: 15px;
  white-space: nowrap; 
}

.navbar .dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block; 
}

@media (min-width: 992px) {
  .dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep navbar and dropdowns always on top */
.navbar {
  position: relative;
  z-index: 1000;
}

.dropdown-menu {
  position: absolute;
  z-index: 1100; 
}

/* Hamburger button styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

/* Bars inside the hamburger */
.hamburger .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Animations when toggled */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hover effect to signal interactivity */
.hamburger:hover .bar {
  background-color: var(--primary); 
}

/* Show hamburger only on small screens */
@media (max-width: 991px) {
  .hamburger {
    display: flex;  
  }

  .nav-inner {
    display: none; 
    flex-direction: column;
    background-color: var(--accent);
    padding: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
  }

  .nav-inner.open {
    display: flex; 
  }
}

/* Make sure hero section never overlaps */
.hero-img-wrapper {
  position: relative;
  z-index: 1; 
}

/* Hero Image */
.hero-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-bottom: 30px;
}
.hero-caption {
  text-align: center;
  margin: 8px 0 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Welcome Section */
.welcome-note {
  max-width: 80%;
  margin: auto;
  border: 2px solid #D9CFC7;
  background: #EFE9E3;
  color: var(--text);
  padding: 1rem 1rem;
  text-align: justify;
  border-radius: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.welcome-note h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
}

/* CTA Button */
.button-container {
  text-align: center;
}

.cta-btn {
  display: inline-block; 
  margin: 0 auto;
  padding: 10px 20px;
  font-weight: bold;
  color: var(--white);
  background-color: var(--primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  justify-content: center;
}
.cta-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* News Ticker */
.ticker-container {
  width: 75%;
  height: 400px;  
  border: 2px solid #D9CFC7;
  border-radius: 12px;
  padding: 10px;
  background: #EFE9E3;
  overflow: hidden;
  display: block; 
  margin: 0 auto;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.ticker-container a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.ticker-container a:hover {
  color: #8f7b5e;
  text-decoration: underline;
}

/* Maps Embed */
.responsive-map {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  min-height: 400px; 
  border-radius: 12px;
}

.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Back to top */
#back-to-top {
  display: none;               
  position: fixed;             
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--primary); 
  color: var(--white);
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  display: block;
  opacity: 0.9;
}

#back-to-top:hover {
  opacity: 1;
}

/* Footer */
.footer-dark {
  background-color: var(--primary);   
  color: var(--white);             
  padding: var(--spacing) 0;
  text-align: center;
}

.footer-dark .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-dark .footer-social a {
  color: var(--white);
  margin: 0 8px;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.footer-dark .footer-social a:hover {
  color: #000000;
}

/* For proper reveal animation */
.reveal.footer-dark {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.footer-dark.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner p.mb-0.small > a {
  color: #000000;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-caption {
    font-size: 0.85rem;
  }
  .welcome-note h1 {
    font-size: 2rem;
  }
  .welcome-note .subtext {
    font-size: 1rem;
  }
  .header-text .established {
    margin-left: 0;
    margin-top: 2px;
  }
}

/* About College */
li .attribution {
  display: block;
  text-align: right;
}
