/* ==========================================================================
   SVCP PHARMACY - THEME & MULTI-TIER NAVIGATION STYLESHEET (css/svcp-theme.css)
   Includes: Full-width Hero Slider, Multi-level Dropdowns, Clean Spacing
   ========================================================================== */

:root {
  --svcp-navy: #223983;
  --svcp-navy-dark: #121f47;
  --svcp-navy-light: #2e4cad;
  --svcp-orange: #f49323;
  --svcp-orange-dark: #d9770c;
  --svcp-blue-accent: #2754ba;
  --svcp-topbar-bg: #e9e4e1;
  --svcp-gray-light: #f8fafc;
}

/* --- Multi-Level Dropdown Menus --- */
.main-navbar .navbar-nav .nav-item {
  position: relative;
}

.main-navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--svcp-orange);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  padding: 8px 0;
  margin-top: 0;
  min-width: 240px;
}

.main-navbar .dropdown-item {
  color: #2c3e50;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.22s ease, background-color 0.22s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

.main-navbar .dropdown-item:hover {
  background-color: #eef2ff;
  color: var(--svcp-navy);
  text-decoration: none !important;
}

.main-navbar .dropdown-item i.submenu-caret {
  font-size: 0.75rem;
  color: var(--svcp-orange);
  margin-left: 10px;
}

/* --- Submenu Arrows & Toggle Animations --- */
.main-navbar .nav-link .nav-sub-arrow {
  font-size: 0.72rem;
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.main-navbar .nav-item.dropdown:hover .nav-sub-arrow,
.main-navbar .nav-item.dropdown.show .nav-sub-arrow,
.main-navbar .nav-item.dropdown .dropdown-toggle[aria-expanded="true"] .nav-sub-arrow {
  transform: rotate(180deg);
  color: var(--svcp-orange);
}

.main-navbar .dropdown-item .submenu-arrow {
  font-size: 0.75rem;
  color: var(--svcp-orange);
  margin-left: 10px;
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
}

.dropdown-submenu:hover > .dropdown-item .submenu-arrow,
.dropdown-submenu.open > .dropdown-item .submenu-arrow,
.dropdown-submenu.show > .dropdown-item .submenu-arrow {
  transform: rotate(90deg);
}

/* Mobile Toggler Button with Animated Bars / Close Icon */
.svcp-nav-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  padding: 6px 12px !important;
  color: #ffffff !important;
  font-size: 1.15rem;
  line-height: 1;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
}

.svcp-nav-toggler:hover,
.svcp-nav-toggler:focus {
  background: rgba(244, 147, 35, 0.25) !important;
  border-color: var(--svcp-orange) !important;
  color: #ffffff !important;
}

.svcp-nav-toggler .toggler-bars-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.svcp-nav-toggler .toggler-close-icon {
  display: none;
  color: var(--svcp-orange);
  font-size: 1.25rem;
}

/* When mobile menu is open, show the Close (X) icon in toggler */
.svcp-nav-toggler:not(.collapsed) .toggler-bars-icon,
.svcp-nav-toggler[aria-expanded="true"] .toggler-bars-icon {
  display: none !important;
}

.svcp-nav-toggler:not(.collapsed) .toggler-close-icon,
.svcp-nav-toggler[aria-expanded="true"] .toggler-close-icon {
  display: inline-block !important;
  transform: rotate(90deg);
  animation: togglerSpin 0.25s ease-out forwards;
}

@keyframes togglerSpin {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(90deg); opacity: 1; }
}

/* Top bar inside Mobile Menu Drawer with Close Icon */
.mobile-nav-header {
  background: rgba(18, 31, 71, 0.95);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid rgba(244, 147, 35, 0.4);
}

.mobile-nav-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.mobile-nav-close-btn {
  background: rgba(244, 147, 35, 0.15);
  border: 1px solid var(--svcp-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.mobile-nav-close-btn i {
  color: var(--svcp-orange);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.mobile-nav-close-btn:hover,
.mobile-nav-close-btn:active {
  background: var(--svcp-orange);
  color: #ffffff;
  transform: scale(1.03);
}

.mobile-nav-close-btn:hover i {
  color: #ffffff;
  transform: rotate(90deg);
}

/* Nested Submenu (Level 2 & 3) */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: -3px;
  left: 100%;
  margin-left: 1px;
  border-top: 3px solid var(--svcp-orange);
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  animation: fadeInSubmenu 0.2s ease-in-out;
}

@keyframes fadeInSubmenu {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- FULL-WIDTH HERO SLIDER FIX --- */
.hero-slider-fullwidth {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background-color: #0b1120;
}

.hero-slider-fullwidth .carousel-item {
  height: 600px;
  min-height: 600px;
  aspect-ratio: 1380 / 600;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-slider-fullwidth .hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 28, 68, 0.92) 0%, rgba(34, 57, 131, 0.75) 55%, rgba(0, 0, 0, 0.35) 100%);
  display: flex;
  align-items: center;
}

.hero-slider-fullwidth .hero-badge-tag {
  display: inline-flex;
  align-items: center;
  background: var(--svcp-orange);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 25px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(244, 147, 35, 0.4);
}

.hero-slider-fullwidth .hero-main-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-slider-fullwidth .hero-subtitle-text {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 720px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-slider-fullwidth .hero-actions-wrap {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-slider-fullwidth .carousel-indicators li {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 6px;
  border: none;
}

.hero-slider-fullwidth .carousel-indicators .active {
  background-color: var(--svcp-orange);
  width: 60px;
}

.hero-slider-fullwidth .carousel-control-prev,
.hero-slider-fullwidth .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 57, 131, 0.6);
  border-radius: 50%;
  margin: 0 20px;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.hero-slider-fullwidth .carousel-control-prev:hover,
.hero-slider-fullwidth .carousel-control-next:hover {
  background: var(--svcp-orange);
  opacity: 1;
}

/* --- Campus Life Secondary Section (Separated & Elevated) --- */
.campus-life-showcase-section {
  background: #ffffff;
  padding: 60px 0;
  border-bottom: 4px solid var(--svcp-navy);
}

/* --- Stats Strip Section --- */
.quick-stats-strip {
  background: var(--svcp-navy-dark);
  color: #ffffff;
  padding: 30px 0;
  border-bottom: 3px solid var(--svcp-orange);
}

.stat-box {
  text-align: center;
  padding: 10px;
}

.stat-box-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--svcp-orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Responsive Rules */
@media (max-width: 1199px) {
  .hero-slider-fullwidth .carousel-item {
    height: 520px;
    min-height: 520px;
    aspect-ratio: auto;
  }
}

@media (max-width: 991px) {
  .hero-slider-fullwidth .carousel-item {
    height: 480px;
    min-height: 480px;
    aspect-ratio: auto;
  }
  .hero-slider-fullwidth .hero-main-title {
    font-size: 2.2rem;
  }
/* Mobile Menu Responsive Layout & Multi-Tier Styling (max-width: 1199.98px) */
@media (max-width: 1199.98px) {
  .main-navbar .navbar-collapse {
    background: #101c44;
    padding: 14px 16px 20px;
    border-radius: 12px;
    margin-top: 10px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-navbar .nav-link {
    padding: 11px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .main-navbar .nav-link:hover,
  .main-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--svcp-orange) !important;
  }

  .main-navbar .nav-link .nav-sub-arrow {
    margin-left: auto;
    padding-left: 12px;
    font-size: 0.85rem;
    color: var(--svcp-orange);
  }

  .main-navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-left: 3px solid var(--svcp-orange);
    border-radius: 6px;
    box-shadow: none;
    padding: 6px 0;
    margin: 6px 0 10px 10px;
    min-width: auto;
    width: auto;
  }

  .main-navbar .dropdown-item {
    color: #e2e8f0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }

  .main-navbar .dropdown-item:hover,
  .main-navbar .dropdown-item:active {
    background: rgba(244, 147, 35, 0.18);
    color: #ffffff;
  }

  /* Nested Submenu (Level 2 & 3) in Mobile */
  .dropdown-submenu {
    position: static;
  }

  .dropdown-submenu > .dropdown-item .submenu-arrow {
    margin-left: auto;
    padding-left: 10px;
    font-size: 0.82rem;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static !important;
    display: none;
    float: none;
    margin: 6px 0 8px 12px;
    border-left: 2px dashed rgba(244, 147, 35, 0.6);
    border-top: none;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border-radius: 4px;
    padding: 4px 0;
  }

  .dropdown-submenu.open > .dropdown-menu,
  .dropdown-submenu.show > .dropdown-menu {
    display: block;
    animation: fadeInSubmenu 0.2s ease-in-out;
  }

  .dropdown-submenu > .dropdown-menu .dropdown-item {
    font-size: 0.84rem;
    padding: 8px 14px;
    color: #cbd5e1;
  }

  .dropdown-submenu > .dropdown-menu .dropdown-item:hover {
    color: #ffffff;
    background: rgba(244, 147, 35, 0.25);
  }
}
}

@media (max-width: 767px) {
  .hero-slider-fullwidth .carousel-item {
    height: 420px;
    min-height: 420px;
    aspect-ratio: auto;
  }
  .hero-slider-fullwidth .hero-main-title {
    font-size: 1.8rem;
  }
  .hero-slider-fullwidth .hero-subtitle-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-slider-fullwidth .carousel-item {
    height: 360px;
    min-height: 360px;
  }
  .hero-slider-fullwidth .hero-main-title {
    font-size: 1.5rem;
  }
}

/* --- Header Top White Area Fix --- */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

.topbar-strip {
  margin-top: 0 !important;
}

/* --- Events & Announcements Infinite Auto-Scroll --- */
.events-scroller {
  height: 330px !important;
  overflow: hidden !important;
  position: relative;
}

.events-scroll-track {
  display: flex;
  flex-direction: column;
  animation: infiniteEventsScroll 18s linear infinite;
}

.events-scroller:hover .events-scroll-track {
  animation-play-state: paused;
}

@keyframes infiniteEventsScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* --- Social Circle Styles --- */
.social-linkedin { background-color: #0077b5; }
.social-linkedin:hover { background-color: #005582; }

/* --- Mobile Responsiveness Enhancements (Requirement 5) --- */
@media (max-width: 767px) {
  .hero-slider-fullwidth .carousel-control-prev,
  .hero-slider-fullwidth .carousel-control-next {
    width: 42px;
    height: 42px;
    margin: 0 8px;
    font-size: 0.9rem;
  }

  .stat-box {
    padding: 8px 4px;
  }

  .stat-box-number {
    font-size: 1.65rem;
  }

  .stat-box-title {
    font-size: 0.78rem;
  }

  #programs-slider .institution-card {
    width: 290px !important;
  }

  .about-experience-badge {
    bottom: -10px !important;
    right: -10px !important;
    padding: 8px 14px !important;
  }

  .about-experience-badge h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  #programs-slider .institution-card {
    width: 260px !important;
  }
  .stat-box-number {
    font-size: 1.4rem;
  }
}


