@charset "utf-8";
/* CSS Document */

/* ====== BREAKPOINT REFERENCE ====== */
/*
Mobile:        max-width: 768px
Tablet:        769px - 1023px  
Desktop:       1024px - 1199px
Large Desktop: 1200px+
*/

/* Base Styles */
:root {
  --navy: #003366;
  --light-blue: #6a89ba;
  --gold: #da9434;	
  --white: #ffffff;
  --gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "montserrat", sans-serif;
}

html {
  scroll-padding-top: 200px;
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  background: var(--gray);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "bebas-neue-pro", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--navy)
}

/* Accessibility Features */
.accessibility-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.fab-icon {
  color: #ffffff;
  font-size: 24px;
}

.accessibility-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: rgba(0,65,137,0.85);
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  width: 280px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-weight: 500;
}

.accessibility-panel h3{
	font-size: 2rem;
}

.accessibility-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.control-group {
  margin: 15px 0;
}

.control-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

button {
  padding: 8px 12px;
  margin: 5px 5px;
  border: none;
  border-radius: 4px;
  background: #f5f5f5;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
}

/* Translations */
.translate-select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #003366;
  cursor: pointer;
}

.translated {
  transition: color 0.3s ease;
}

/* Read-aloud specific styles */
.reading-mode * {
  cursor: pointer !important;
  transition: all 0.2s ease;
}

/* Exclude accessibility panel from reading mode hover effects */
body.reading-mode *:hover:not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-fab) {
  background-color: #f8f9fa !important;
  border: 2px solid #2196f3 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
  transform: translateY(-1px) !important;
}

.currently-reading {
  background-color: #e8f5e8 !important;
  border: 2px solid #4caf50 !important;
  border-radius: 4px !important;
  position: relative;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.currently-reading::before {
  content: '🔊';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #4caf50;
  color: #003366;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.read-aloud-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.indicator-message {
  background: #2196f3;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    opacity: 0.9;
  }
}

/* Button overrides for reading mode */
body.reading-mode button,
body.reading-mode input[type="button"],
body.reading-mode input[type="submit"],
body.reading-mode .learn-more {
  background-color: #003366 !important;
  color: #fff !important;
}

body.reading-mode button:hover,
body.reading-mode .accessibility-panel button:hover,
body.reading-mode input[type="button"]:hover,
body.reading-mode input[type="submit"]:hover,
body.reading-mode .learn-more:hover {
  background-color: #0056b3 !important;
  color: #fff !important;
  border: 1px solid #004494 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: none !important;
}

/* Currently reading buttons */
button.currently-reading,
input[type="button"].currently-reading,
input[type="submit"].currently-reading,
.learn-more.currently-reading {
  background-color: #2e7d32 !important;
  color: #fff !important;
  border: 2px solid #4caf50 !important;
}

/*=======HEADER STYLES============== */
.site-header {
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER CONTENT LAYOUT ======= */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

/* ======== LOGO SECTION ========== */
.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: white;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: "bebas-neue-pro", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 200px;
}

/* ======= HEADER ACTIONS (SEARCH & SOCIAL) =========== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.search-bar input {
  background: transparent;
  border: none;
  padding: 8px 15px;
  color: white;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Hide browser default clear buttons */
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-moz-search-cancel-button,
.search-bar input::-ms-clear,
.search-bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none !important;
}

/* Custom clear button */
.search-clear-btn {
  position: absolute;
  right: 45px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  color: #FFFFFF !important;
  border: none;
  background: none !important;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0;
  box-sizing: border-box;
}

.search-clear-btn:hover {
  color: #da9434;
  transform: translateY(-50%) scale(1.1);
  transform-origin: 50% 0;
}

.search-bar.has-text .search-clear-btn {
  display: flex;
}

.search-bar button {
  background: #da9434;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  background: #c8841f;
  transform: scale(1.1);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
}

.social-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ====== MOBILE NAVIGATION TOGGLE ======= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======= NAVIGATION =========== */
.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav-menu > li > a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: "bebas-neue-pro-expanded", sans-serif;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #da9434;
}

/* ========== DROPDOWN STYLES ============ */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 250px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  margin: 0;
}

.dropdown-mega {
  display: flex;
  min-width: 600px;
  gap: 30px;
}

.dropdown-section {
  flex: 1;
}

.dropdown-heading {
  color: #da9434;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #da9434;
}

.dropdown-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown li a,
.dropdown-sublist li a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.dropdown li a:hover,
.dropdown-sublist li a:hover {
  color: #da9434;
  padding-left: 10px;
}

/* ==== SEARCH RESULTS STYLES ==== */
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 400px;
  max-height: 500px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--navy);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-title {
  font-weight: 500;
  font-size: 0.9rem;
}

.search-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-results-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
}

.search-results-info {
  padding: 15px 20px 10px;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.search-result-item h4 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-item h4 a:hover {
  color: #da9434;
}

.search-result-item p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.search-result-url {
  font-size: 0.8rem;
  color: #999;
}

.no-results {
  padding: 30px 20px;
  text-align: center;
}

.no-results p {
  margin: 0 0 15px 0;
  color: #666;
}

.search-suggestion {
  font-size: 0.9rem;
  margin-bottom: 10px !important;
}

.search-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-suggestions li a {
  color: #da9434;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #da9434;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.search-suggestions li a:hover {
  background: #da9434;
  color: white;
}

mark {
  background: #fff3cd;
  color: #856404;
  padding: 1px 2px;

  border-radius: 2px;
}

/* Custom scrollbar for search results */
.search-results-content::-webkit-scrollbar {
  width: 6px;
}

.search-results-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.search-results-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ============ MOBILE STYLES ================ */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 0;
  }

  .header-actions {
    gap: 10px;
  }

  .search-bar {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 20px;
  }

  .search-bar input {
    width: 120px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .search-bar button {
    padding: 6px 8px;
  }

  .social-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-text {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .main-nav.active {
    max-height: calc(100vh - 80px);
    padding: 20px 0;
    overflow-y: auto;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu > li > a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .has-dropdown > a {
    cursor: pointer;
  }

  .has-dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  .has-dropdown.active > a::after {
    transform: rotate(180deg);
  }
	
  .has-dropdown:hover .dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    max-height: 0 !important;
    padding: 0 20px !important;
  }
	
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
  }

  .dropdown-mega {
    flex-direction: column;
    min-width: auto;
    gap: 15px;
	max-height: none;  
  }

  /* FORCE DISABLE ALL HOVER STATES ON MOBILE */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus .dropdown,
  .has-dropdown:active .dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    max-height: 0 !important;
    padding: 0 20px !important;
  }
  
  /* ONLY SHOW WHEN EXPLICITLY ACTIVATED */
  .has-dropdown.active .dropdown {
    max-height: 1000px !important;
    padding: 15px 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .dropdown-heading {
    font-size: 0.8rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }

  .dropdown li a,
  .dropdown-sublist li a {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .dropdown li a:hover,
  .dropdown-sublist li a:hover {
    padding-left: 15px;
  }
	
  /* Ensure Interactive Games link has proper spacing */
  .dropdown-sublist li:last-child {
    padding-bottom: 15px; /* Extra space for last item */
  }	

  /* Mobile search results */
  .search-results {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    transform: translateY(100%) !important;
    z-index: 10000 !important;
  }

  .search-results.active {
    transform: translateY(0) !important;
  }

  .search-results-header {
    padding: 20px !important;
    position: sticky;
    top: 0;
    z-index: 10001;
  }

  .search-results-content {
    height: calc(100vh - 80px) !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto;
    padding: 0;
  }

  .search-result-item {
    padding: 20px;
  }

  .no-results {
    padding: 40px 20px;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .search-suggestions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
	
  .header,
  .nav {
	margin-bottom: 0;
  }	
	
  /* FORCE ALL DROPDOWNS CLOSED WHEN MOBILE MENU OPENS */
  .main-nav.active .has-dropdown:not(.active) .dropdown {
    max-height: 0 !important;
    padding: 0 20px !important;
    overflow: hidden !important;
  }
  
  /* Ensure nested dropdowns also start closed */
  .main-nav.active .has-dropdown .has-dropdown:not(.active) .dropdown {
    max-height: 0 !important;
    padding: 0 20px !important;
  }
}

/* ==== DESKTOP AND TABLET STYLES === */
@media (min-width: 769px) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ==== TABLET STYLES === */
@media (max-width: 1024px) and (min-width: 769px) {
  .search-bar input {
    width: 150px;
  }

  .logo-text {
    font-size: 1rem;
    max-width: 150px;
  }

  .nav-menu > li > a {
    padding: 20px 15px;
  }
}

/* ========= LARGE DESKTOP STYLES ============ */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .search-bar input {
    width: 250px;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom:10px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/*Hero Carousel*/
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(217, 224, 239, 0.3) 0%,
    rgba(210, 232, 255, 0.2) 100%
  );
  z-index: 2;
}

/* Carousel indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero {
    height: 100vh; 
    margin-bottom: 0;
  }
  
  .hero-image img {
    height: 100vh;
  }
  
  .carousel-indicators {
    bottom: 15px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
	position:relative;
    height: auto;
	min-height:100vh;
	width: 100vw;
	overflow: hidden;
    margin-bottom: 40px;
	  padding-bottom: 12rem;
	z-index:1;
  }
  
  .hero-image img {
	width: 100%;
    height: auto;
	display: block;
  }
	
  .intro-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3), transparent);
  }
}

/* Large Desktop Styles */
@media (min-width: 1025px) {
  .hero {
    height: 100vh;
    margin-bottom: 0;
  }
  
  .hero-image img {
    height: 100vh;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: none;
  }
  
  .cta-button:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.indicator:focus,
.cta-button:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}


/*INTRO SECTION*/
.intro-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent 100%
  );
  color: white;
  z-index: 3;
  padding: 1.15rem 0 2rem;
}

.intro-section .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Title */
.intro-section .section-title {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(4,8,54,0.70);
}

/* Intro Content */
.intro-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-text {
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  max-width: 100%;
}

/* Stats Section */
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
  background: rgba(0,51,102,0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 51, 102, 0.3);
}

.stat-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.15rem;
  line-height: 1.15;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.stat-label {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* CTA Buttons */
.intro-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 51, 102, 0.9);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 51, 102, 0.3);
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
  background: rgba(2,48,94,0.3);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background: var(--gold);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Tablet Styles */
@media (min-width: 481px) {
  .intro-section {
    padding: 2rem 0 2.5rem;
  }
  
  .intro-section .container {
    padding: 0 1.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .intro-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 0.9rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .intro-cta {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .cta-button {
    width: auto;
    min-width: 200px;
    font-size: 0.9rem;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .intro-section {
    padding: 2.5rem 0 3rem;
  }
  
  .intro-section .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
  
  .intro-content {
    gap: 2rem;
  }
  
  .intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .intro-stats {
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .stat-item {
    padding: 1.25rem 1rem;
  }
  
  .stat-number {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-width: 220px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1025px) {
  .intro-section {  
    padding: 3rem 0 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .intro-text {
    font-size: 1.2rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }
  
  .cta-button:hover,
  .cta-button:focus {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .intro-section {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.8) 70%,
      transparent 100%
    );
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
  }
  
  .cta-button {
    border: 2px solid #333;
  }
  
  .cta-button.secondary {
    border: 3px solid rgba(255, 255, 255, 0.8);
  }
}

/* Focus styles for better accessibility */
.cta-button:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.cta-button.secondary:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .stat-item {
    background: rgba(255, 255, 255, 0.2); 
	backdrop-filter: blur(10px);
  }
  
  .cta-button {
    background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
  }
}


/* Focus styles for accessibility */
.indicator:focus,
.cta-button:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ====== GRID LAYOUT ====== */
.content-grid {
  padding: 40px 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 10px;
}

.grid-item > a:last-child {
  margin-top: auto;
}

.grid-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.grid-item-content {
  padding: 20px;
}

.grid-item h3 {
  color: var(--navy);
  margin-bottom: 5px;
  padding: 5px;
  text-align: center;
  font-size: 2em;
}

.grid-item p {
  color: #003366;
  line-height: 1.6;
  padding: 10px;
}

/* ====== HOVER EFFECTS ====== */
.grid-item:hover {
  transform: translateY(-5px);
}

/* ====== LEARN MORE BUTTON ====== */
.learn-more {
  padding: 10px;
  margin-right: 16px;
  margin-bottom: 5px;
  margin-left: auto;
  align-content: center;
  display: block;
  background: rgba(0, 51, 102, 1);
  font-family: "bebas-neue-pro", sans-serif;
  font-size: 1.15em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  text-align: center;
}

.learn-more:hover {
  background: rgba(0, 51, 102, 0.9);
  border-color: #da9434;
  transform: translateY(-2px);
}

.learn-more i {
  transition: transform 0.3s ease;
}

.learn-more:hover i {
  transform: translateX(5px);
}

.fa-circle-chevron-right {
  color: #da9434;
}

/* ====== ACCESSIBILITY ====== */
.learn-more:focus {
  outline: 3px solid #da9434;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .learn-more,
  .learn-more i,
  .grid-item {
    transition: none;
    transform: none;
  }
  
  .grid-item:hover,
  .learn-more:hover {
    transform: none;
  }
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 767px) {
  .content-grid {
    padding: 30px 0;
  }

  .grid-item {
    margin-bottom: 20px;
    min-height: 350px;
  }

  .grid-item img {
    height: 200px;
    margin-bottom: 15px;
  }

  .grid-item-content {
    padding: 15px;
  }

  .grid-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .grid-item p {
    padding: 5px;
    font-size: 0.95rem;
  }

  .learn-more {
    margin: 10px auto 10px auto;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* ====== TABLET STYLES ====== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 1200px;
  }

  .content-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .grid-item {
    margin-bottom: 0;
  }

  .learn-more {
    margin-right: 20px;
    padding: 12px 16px;
  }
}

/* ====== DESKTOP STYLES ====== */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }

  .quick-links .container {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .content-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .grid-item {
    margin-bottom: 0;
  }

  .hero {
    height: 80vh;
  }
}

/* ====== LARGE DESKTOP STYLES ====== */
@media (min-width: 1200px) {
  .content-grid .container {
    gap: 40px;
  }

  .grid-item {
    min-height: 450px;
  }

  .grid-item img {
    height: 280px;
  }

  .grid-item-content {
    padding: 25px;
  }

  .learn-more {
    padding: 12px 20px;
    font-size: 1.1em;
  }
}




/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--navy);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0; 
    z-index: 9999;
    cursor: pointer;
    font-size: 20px;
}

	.back-to-top.visible {
		opacity: 1;
	}

	.back-to-top:hover {
		background: #da9434;
		transform: scale(1.1);
	}

/*Hide the button when mobile nav is open */
@media (max-width: 768px) {
  .back-to-top {
    z-index: 998; /* Lower than mobile nav */
  }
  
  /* Hide back-to-top when mobile nav is active */
  .nav.active ~ .back-to-top,
  .mobile-nav-open .back-to-top,
  body.nav-open .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}


/* ====== TOOLTIP STYLING ====== */

/* Tooltip Trigger */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #0066cc;
  cursor: pointer;
  border-bottom: 1px dotted #0066cc;
  padding-bottom: 1px;
  text-decoration: none;
}

.tooltip-trigger:hover {
  color: #004499;
  border-bottom-color: #004499;
}

.tooltip-trigger i {
  margin-left: 4px;
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.tooltip-trigger:hover i {
  transform: scale(1.1);
}

/* Tooltip Container */
.tooltip-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

/* Tooltip Base Styles */
.tooltip {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  max-width: 300px;
  width: calc(100% - 40px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  z-index: 1000;
  pointer-events: none;
  border: 1px solid #e0e0e0;
}

.tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip Arrow */
.tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  z-index: 1001;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e0e0e0;
  z-index: 1000;
}

/* Tooltip Content */
.tooltip-content {
  padding: 12px 16px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.tooltip-content h5 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
}

.tooltip-content p {
  margin: 0;
}

.tooltip-content p + p {
  margin-top: 8px;
}

/* Info Icon Specific Styling */
.fas.fa-info-circle {
  font-size: 10px;
  padding: 1px;
  margin: 0;
  color: #0066cc;
  transition: color 0.2s ease;
}

.tooltip-trigger:hover .fas.fa-info-circle {
  color: #004499;
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 768px) {
  .tooltip {
    position: fixed;
    left: 20px !important;
    top: auto !important;
    bottom: 20px;
    transform: translateY(20px);
    width: calc(100% - 40px);
    max-width: none;
    border-radius: 8px;
  }

  .tooltip.active {
    transform: translateY(0);
  }

  /* Hide arrows on mobile */
  .tooltip::before,
  .tooltip::after {
    display: none;
  }

  .tooltip-content {
    padding: 16px;
    padding-right: 40px; /* Make room for close button */
  }

  /* Close button for mobile */
  .tooltip-content::after {
    content: "×";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .tooltip-content::after:hover {
    background-color: #f0f0f0;
    color: #333;
  }

  /* Larger touch targets on mobile */
  .tooltip-trigger {
    padding: 8px 4px;
    margin: -8px -4px;
  }

  .tooltip-trigger i {
    font-size: 0.9em;
  }
}

/* ====== TABLET STYLES ====== */
@media (min-width: 769px) and (max-width: 1023px) {
  .tooltip {
    max-width: 350px;
  }

  .tooltip-content {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}

/* ====== DESKTOP STYLES ====== */
@media (min-width: 1024px) {
  .tooltip {
    max-width: 400px;
  }

  .tooltip-content {
    padding: 16px 20px;
    font-size: 1rem;
  }

  /* Enhanced hover effects for desktop */
  .tooltip-trigger:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 2px;
  }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
  .tooltip,
  .tooltip-trigger i {
    transition: none;
  }

  .tooltip.active {
    transform: none;
  }

  .tooltip-trigger:hover i {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tooltip {
    border: 2px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .tooltip-trigger {
    border-bottom: 2px solid #0066cc;
  }

  .tooltip-content h5 {
    color: #000;
  }
}

/* ====== TOOLTIP POSITIONING VARIANTS ====== */
.tooltip.tooltip-top {
  bottom: 100%;
  margin-bottom: 10px;
  transform: translateY(-10px);
}

.tooltip.tooltip-top.active {
  transform: translateY(0);
}

.tooltip.tooltip-bottom {
  top: 100%;
  margin-top: 10px;
}

.tooltip.tooltip-left {
  right: 100%;
  margin-right: 10px;
  transform: translateX(-10px);
}

.tooltip.tooltip-left.active {
  transform: translateX(0);
}

.tooltip.tooltip-right {
  left: 100%;
  margin-left: 10px;
  transform: translateX(10px);
}

.tooltip.tooltip-right.active {
  transform: translateX(0);
}

/* ====== FOOTER STYLES ====== */
footer {
  background: var(--navy);
  color: white;
  padding: 40px 0 20px 0;
  width: 100%;
  margin: 0;
  position: relative;
}

footer h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: white;
  font-weight: 500;
}

footer p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #da9434;
}

footer a:focus {
  outline: 2px solid #da9434;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ====== FOOTER CONTAINER ====== */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== FOOTER GRID ====== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-grid a {
  color: white;
  line-height: 1.5;
}

/* ====== QUICK LINKS STYLING ====== */
.footer-grid ul {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-grid li:last-child {
  margin-bottom: 0;
}

/* ====== MAP SECTION ====== */
.map {
  text-align: left;
}

.map iframe {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border: 0;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== SOCIAL ICONS ====== */
.social-icons {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  flex-wrap: wrap;
  align-items: center;
}

.social-icons a {
  text-decoration: none;
  font-size: 2rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.social-icons a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.social-icons a:focus {
  outline: 2px solid #da9434;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ====== SOCIAL MEDIA BRAND COLORS ====== */
.fa-instagram {
  color: rgb(52, 58, 64);
  background: rgb(32, 36, 40);
  border-radius: 8px;
  padding: 2px;
}

.fill-gradient-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.fa-square-facebook {
  color: #3b5998;
  background-image: linear-gradient(
    to bottom,
    transparent 20%,
    white 20%,
    white 93%,
    transparent 93%
  );
  background-size: 75%;
  background-position: 70% 0;
  background-repeat: no-repeat;
}

.fa-x-twitter {
  color: #000;
  background: white;
  border-radius: 4px;
  padding: 2px;
}

.fa-spotify {
  color: #1ed760;
  background: #000;
  border-radius: 50%;
  padding: 2px;
}

.fa-youtube {
  color: #cc181e;
  background-image: linear-gradient(
    transparent 20%,
    white 20%,
    white 70%,
    transparent 70%
  );
  background-size: 40% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.fa-threads {
  color: #fff;
  background: #000;
  border-radius: 8px;
  padding: 2px;
}

/* ====== FOOTER BOTTOM ====== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 768px) {
  footer {
    padding: 30px 0 15px 0;
  }

  footer h3 {
    font-size: 1.6rem;
    text-align: center;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid ul {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
  }

  .map {
    text-align: center;
  }

  .map iframe {
    max-width: 100%;
    height: 250px;
  }

  .social-icons {
    justify-content: center;
    font-size: 1.8rem;
    gap: 20px;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 15px;
  }
}

/* ====== TABLET STYLES ====== */
@media (min-width: 769px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .map iframe {
    height: 280px;
  }

  .social-icons {
    font-size: 1.9rem;
  }
}

/* ====== DESKTOP STYLES ====== */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map iframe {
    height: 320px;
  }
}

/* ====== LARGE DESKTOP STYLES ====== */
@media (min-width: 1200px) {
  .footer-container {
    padding: 0 40px;
  }

  .footer-grid {
    gap: 50px;
  }

  .map iframe {
    height: 350px;
    max-width: 350px;
  }

  .social-icons {
    font-size: 2.2rem;
  }
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
  .social-icons a {
    transition: none;
  }
  
  .social-icons a:hover {
    transform: none;
  }
  
  footer a {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  footer {
    border-top: 2px solid white;
  }

  .footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
  }

  .social-icons a:focus,
  footer a:focus {
    outline-width: 3px;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  footer {
    background: white !important;
    color: black !important;
    padding: 20px 0 !important;
  }

  footer h3,
  footer p,
  footer a {
    color: black !important;
  }

  .social-icons,
  .map {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}