/* COTR Seminary - Header, Navigation, Top Bar, Drawer & Footer Styles */

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: #c7d2e7;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 6px 0;
}

.top-bar-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-buttons img {
  height: 30px;
  width: auto;
  border-radius: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-bar-buttons img:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px;
}

.top-bar-social a {
  color: #a8b9d8;
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.top-bar-social a:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.12);
}

.top-bar-btn-apply {
  background-color: var(--accent-gold);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.top-bar-btn-apply:hover {
  background-color: var(--accent-gold-dark);
  color: #ffffff;
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 99;
  transition: all 0.3s ease;
}

.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  animation: slideDown 0.35s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Desktop Main Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 30px 0;
  margin: 0 14px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav-item:hover > .nav-link,
.nav-item.active > .nav-link {
  color: var(--accent-blue);
}

.nav-item:hover > .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--accent-gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  z-index: 1000;
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  padding: 0;
}

.dropdown-link {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid #f2f2f2;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.dropdown-item:last-child > .dropdown-link {
  border-bottom: none;
}

.dropdown-link:hover {
  background-color: #f7f9fc;
  color: var(--accent-blue);
  padding-left: 26px;
}

/* ==========================================================================
   Mobile Header & Sliding Drawer
   ========================================================================== */
.mobile-header-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-logo img {
  height: 46px;
  width: auto;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: #121c2e;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.35);
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.35s ease;
  padding: 30px 20px 40px 20px;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-gold);
}

.mobile-submenu-toggle {
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 14px;
  padding: 5px 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-submenu-toggle.expanded {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.mobile-submenu {
  list-style: none;
  padding: 0 0 10px 15px;
  margin: 0;
  display: none;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu-link {
  display: block;
  padding: 8px 0;
  color: #cbd5e1;
  font-size: 13.5px;
}

.mobile-submenu-link:hover {
  color: var(--accent-gold);
}

@media (max-width: 991px) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: block;
  }
  .site-header {
    display: none;
  }
  .mobile-header-bar {
    display: flex;
  }
  .top-bar-inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-navy-dark);
  color: #b7c5df;
  font-size: 14px;
  padding-top: 65px;
  position: relative;
}

.footer-top {
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 65px;
  width: auto;
}

.footer-about-text {
  line-height: 1.7;
  color: #cbd5e1;
}

.footer-widget-title {
  color: var(--bg-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b7c5df;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-contact-info p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-contact-info a {
  color: var(--accent-gold);
}

.footer-contact-info a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  padding: 22px 0;
  background-color: #091224;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #8da2c4;
}

.footer-bottom-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-social a {
  color: #8da2c4;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-bottom-social a:hover {
  color: var(--accent-gold);
}

@media (max-width: 767px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
