/* ========================================
   MINDSCAPES CHILDREN'S MUSEUM
   Bootstrap-Enhanced Stylesheet
   ======================================== */

/* ========================================
   1. CUSTOM VARIABLES & OVERRIDES
   ======================================== */

:root {
  --primary-color: #FF6B35;
  --primary-hover: #E55A2B;
  --secondary-color: #4ECDC4;
  --secondary-hover: #3DB8AF;
  --dark-blue: #2C3E50;
  --dark-darker-blue: #131619;
  --light-gray: #F8F9FA;
  --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-teal: linear-gradient(135deg, #d85b35 0%, #e5b04d 100%);
  --gradient-dark-blue: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
}

/* ========================================
   2. BOOTSTRAP CUSTOMIZATIONS
   ======================================== */

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover) !important;
  border-color: var(--secondary-hover) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* ========================================
   3. HEADER & NAVIGATION
   ======================================== */

.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  font-size: 0.9rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--dark-blue) !important;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.75rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
} */

.dropdown-toggle::after {
  display: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* ========================================
   4. MEGA MENU
   ======================================== */

.mega-menu {
  width: 100%;
  left: 0;
  margin-top: 0;
  border-radius: 0 0 15px 15px;
  min-width: 600px;
}

.mega-menu .dropdown-header {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu .dropdown-item {
  transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
  background-color: #FF6B35;
  color: #fff !important;
  padding-left: 1.5rem;
}

@media (max-width: 991px) {
  .mega-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
  background-color: #FF6B35;
  }


}

/* ========================================
   5. PAGE HEADER
   ======================================== */

.page-header {
  background: var(--gradient-teal);
  color: #ffffff;
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}

.page-header * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumbs {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--light-gray) !important;
  text-decoration: none;
  background-color: var(--primary-color);
}


/* ========================================
   6. HERO SECTION
   ======================================== */

.hero-banner {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark-blue);
  color: #fff;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   7. CARDS & COMPONENTS
   ======================================== */

.card {
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.exhibit-card,
.program-card {
  overflow: hidden;
  border-radius: 10px;
}

.exhibit-card img,
.program-card img {
  transition: transform 0.3s ease;
}

.exhibit-card:hover img,
.program-card:hover img {
  transform: scale(1.1);
}

/* ========================================
   8. FORMS
   ======================================== */

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-blue);
}

/* ========================================
   9. FOOTER
   ======================================== */

.site-footer {
  background-color: var(--dark-darker-blue);
  color: #fff;
}

.site-footer h4 {
  color: var(--secondary-color);
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--secondary-color);
}

/* Footer Link Styles */
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Active State for Footer Links */
.footer-link.active {
  color: #FF6B35;
  font-weight: 600;
}

.footer-link.active::before {
  content: '▸';
  margin-right: 5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Hover effect for all footer links */
.footer-link:hover::before {
  content: '▸';
  margin-right: 5px;
}

/* Footer Headings */
.site-footer h4,
.site-footer h5 {
  color: #fff;
}

/* Bottom bar links active state */
.site-footer .border-top a.active {
  color: #FF6B35 !important;
  font-weight: 600;
}

/* ========================================
   10. UTILITY CLASSES
   ======================================== */

.gradient-bg {
  background: var(--gradient-teal);
}

.shadow-custom {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ========================================
   11. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   12. RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

/* ========================================
   13. DROPDOWN CHEVRON ICONS
   ======================================== */

/* Show chevron on dropdown toggles */
.navbar-nav .dropdown-toggle::after {
  display: inline-block !important;
  margin-left: 0.4rem;
  content: "\f282";
  /* Bootstrap Icons chevron-down */
  font-family: "bootstrap-icons" !important;
  border: none !important;
  vertical-align: middle;
  font-size: 0.75rem;
}

/* Mobile Menu Styling */
@media (max-width: 991px) {

  /* Navbar collapse with smooth transition */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* Nav items spacing */
  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  /* Nav links */
  .navbar-nav .nav-link {
    padding: 0.875rem 1rem !important;
    color: var(--dark-blue) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Dropdown toggle - chevron on the right in mobile */
  .navbar-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-nav .dropdown-toggle::after {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease;
  }

  /* Rotate chevron when dropdown is open in mobile */
  .navbar-nav .dropdown.show .dropdown-toggle::after,
  .navbar-nav .mega-menu-dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Dropdown menu mobile styling */
  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: var(--light-gray);
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0;
  }

  /* Dropdown items */
  .navbar-nav .dropdown-item {
    padding: 0.75rem 2rem;
    color: var(--dark-blue);
    font-size: 0.95rem;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
  }

  .navbar-nav .dropdown-item.active {
    background-color: var(--primary-color);
    color: #fff !important;
  }

  /* Mega menu in mobile */
  .mega-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    background-color: var(--light-gray);
  }

  .mega-menu .row {
    margin: 0;
  }

  .mega-menu .col-lg-6 {
    padding: 0;
  }

  .mega-menu .dropdown-header {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--dark-blue);
  }

  .mega-menu .dropdown-header:first-child {
    margin-top: 0;
  }

  .mega-menu .dropdown-item {
    padding: 0.75rem 2rem;
  }

  .mega-menu hr {
    margin: 0.5rem 1rem;
  }

  /* CTA Button in mobile */
  .navbar-nav .btn-primary {
    margin: 1rem;
    text-align: center;
  }

  /* Mobile navbar toggler */
  .navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
  }

  .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ========================================
   MARQUEE SCROLL FOR HEADER CLOSURE DATES
   ======================================== */

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.marquee-item i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.marquee-item.highlight {
    color: #FF8C42;
    font-weight: 600;
}

.marquee-item.highlight i {
    color: #FF8C42;
}

/* Pause on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Social links hover effect */
.hover-scale {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.hover-scale:hover {
    transform: scale(1.15);
    color: #FF8C42 !important;
}

/* Keyframe animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-item {
        font-size: 0.7rem;
        padding: 0 12px;
    }
    
    .marquee-content {
        animation: marqueeScroll 20s linear infinite;
    }
    
    .header-top {
        padding: 6px 0;
    }
}