/* Custom CSS for additional styling */

/* Thin, modern scrollbar - use on overflow-y-auto containers */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* Brand Color Variables - Single source of truth */
:root {
  --color-orange: #d9620b;
  --color-green: #4ca154;
  --color-purple: #8e42fc;
  --color-blue: #4278fc;
  
  /* Darker shades for backgrounds and gradients */
  --color-green-dark: #2d7a4f;
  
  /* Legacy blue shades (keep for now but could be consolidated) */
  --color-blue-dark-1: #03335d;
  --color-blue-dark-2: #024a87;
  --color-blue-dark-3: #022a5c;
  --color-blue-dark-4: #064074;
  --color-blue-legacy: #3B82F6;
  --color-blue-legacy-dark: #1e40af;
}

/* People Component Styles */
.umb-block-list .people-section,
section.people-section,
.people-section {
  padding: 4rem 1rem !important;
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%);
  color: white !important;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  overflow: hidden !important;
  margin: 1rem !important;
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  position: relative;
}

/* Add overlay for better text readability when background image is present */
.people-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(3, 51, 93, 0.7) 0%, rgba(2, 74, 135, 0.7) 50%, rgba(3, 51, 93, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

.people-section > * {
  position: relative;
  z-index: 1;
}

.people-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.people-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.person-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 2px var(--people-highlight-color, transparent);
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.person-photo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.person-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

.person-card:hover .person-photo {
  border-color: var(--people-hover-color, var(--color-green)) !important;
}

.person-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--people-placeholder-color, var(--color-green)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
}

.person-card:hover .person-photo-placeholder,
.person-photo-placeholder:hover {
  border-color: var(--people-hover-color, var(--color-green)) !important;
}

.initials {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.person-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.person-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.modal-linkedin {
  margin-top: 1rem;
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.linkedin-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto !important;
}

.linkedin-link:hover {
  opacity: 0.8;
  text-decoration: none !important;
}

.linkedin-icon {
  width: 32px !important;
  height: 32px !important;
  fill: white !important;
  color: white !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Person Modal Styles */
.person-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 4rem);
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ensure modal body can actually scroll within viewport */
.person-modal .modal-body {
  max-height: calc(100vh - 8rem);
  -webkit-overflow-scrolling: touch;
}

.modal-photo-container {
  margin-bottom: 1.5rem;
}

.modal-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.2);
}

.modal-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(255, 255, 255, 0.2);
}

.modal-photo-placeholder .initials {
  font-size: 3rem;
}

.modal-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.modal-title {
  font-size: 1.2rem;
  color: var(--people-modal-title-color, var(--color-green));
  margin-bottom: 1.5rem;
}

.modal-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-align: left;
}

/* Ensure empty paragraphs in modal bio still leave a full line gap */
.modal-bio p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.modal-bio p:empty,
.modal-bio p:has(br:only-child) {
  margin-bottom: 0.75rem !important;
  line-height: 1.6 !important;
  min-height: 1.6em !important;
}

.modal-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.linkedin-link:hover {
  background: #0077b5;
}

.email-link:hover {
  background: var(--color-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  .people-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .person-photo,
  .person-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-photo,
  .modal-photo-placeholder {
    width: 150px;
    height: 150px;
  }
  
  .modal-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Header specific styles */
body {
  background-color: var(--color-blue-dark-1) !important; /* Exact blue color */
  font-family:'Open Sauce One';
}

/* Navigation dropdown menu - ensure solid background */
.nav-dropdown {
  background-color: var(--color-blue-dark-1) !important;
  backdrop-filter: none;
}

/* When dropdown becomes visible (via group-hover), ensure it's fully opaque with solid background */
.group:hover .nav-dropdown {
  opacity: 1 !important;
  background-color: var(--color-blue-dark-1) !important;
  visibility: visible !important;
}

h2{
  font-size: 2em !important;
  font-weight:bold;
}
h3{
  font-size: 1.5em !important;
  font-weight:bold;
}

li{
  margin-bottom: 0.3rem;
  list-style: none;
  margin-left: 0;
}
ul li::marker {
  color: transparent; /* hide bullet color */
}

body > header > nav > a{
  text-decoration-color: var(--color-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-style: solid;
  text-decoration-color: var(--color-green);
  text-decoration-thickness: 2px;
}

/* Hero section specific styles */
.hero-section {
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%);
}

.hero-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(3, 51, 93, 1) 50%, rgba(3, 51, 93, 0.05) 100%);
}

/* Contact Form Styles */
.contact-form-section {
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form {
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue-legacy);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-counter {
  font-size: 0.875rem;
  color: #666;
  text-align: right;
  margin-top: 0.25rem;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.error {
  color: #ef4444;
}

.contact-submit-button {
  background: linear-gradient(135deg, var(--color-blue-legacy) 0%, var(--color-blue-legacy-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.contact-submit-button:hover {
  background: linear-gradient(135deg, var(--color-blue-legacy) 0%, var(--color-blue-legacy-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}

/* Scrolling Card Styles */
.scrolling-card-section {
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%);
  position: relative;
}

.scrolling-card-container {
  position: relative;
  overflow: hidden;
}

.scrolling-nav-menu {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.scrolling-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.scrolling-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.scrolling-nav-btn.active {
  background: var(--color-blue-legacy);
  border-color: var(--color-blue-legacy);
  color: white;
}

.scrolling-cards-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: height 300ms ease;
}

.scrolling-cards-track {
  display: flex;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  align-items: stretch;
}

.scrolling-card-item {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
  contain: layout paint;
  align-self: stretch;
}

/* Ensure people-section keeps rounded corners inside scrolling cards - always visible */
.scrolling-card-item .people-section,
.scrolling-cards-track .people-section,
.scrolling-card-item section.people-section,
.scrolling-cards-wrapper .people-section,
.scrolling-card-item > .people-section {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  overflow: hidden !important;
  margin: 1rem !important;
  /* Force hardware acceleration to maintain border-radius rendering */
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  /* Force repaint to ensure border-radius is always visible */
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  /* Ensure border-radius is always applied */
  will-change: transform !important;
}

.scrolling-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.scrolling-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  margin: 0 1rem;
}

.scrolling-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.scrolling-arrow-left {
  margin-left: 0;
}

.scrolling-arrow-right {
  margin-right: 0;
}

@media (max-width: 768px) {
  .scrolling-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin: 0 0.25rem;
  }
  
  .scrolling-arrow {
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
  }
  
  .scrolling-card-item {
    padding: 0 0.5rem;
  }
}

/* Video Component Styles */
.video-section {
  background: linear-gradient(135deg, var(--color-blue-dark-1) 0%, var(--color-blue-dark-2) 50%, var(--color-blue-dark-1) 100%);
}

.video-container {
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-container,
.vimeo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-player,
.vimeo-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
  opacity: 1;
}

.control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--color-blue-legacy);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-display {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

.play-icon,
.pause-icon {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none;
}

/* HoverDetails specific bullet points */
.hover-details ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.hover-details ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.hover-details ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--bullet-color, var(--color-green)); /* Use CSS variable from component, fallback to green */
  border-radius: 50%;
}

/* Ensure rich text list markers don't double in HoverDetails */
.hover-details .rich-text-content ul,
.hover-details .rich-text-content .prose ul,
.hover-details .rich-text-content .prose-invert ul,
.hover-details .rich-text-content .prose-lg ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.hover-details .rich-text-content li,
.hover-details .rich-text-content .prose li,
.hover-details .rich-text-content .prose-invert li,
.hover-details .rich-text-content .prose-lg li {
  list-style: none !important;
}

.hover-details .rich-text-content ul li::before,
.hover-details .rich-text-content .prose ul li::before,
.hover-details .rich-text-content .prose-invert ul li::before,
.hover-details .rich-text-content .prose-lg ul li::before {
  left: -1.5rem;
}

/* Breadcrumbs - Hidden visually but accessible to screen readers */
.breadcrumbs {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Image40Text60 gradient overlay */
.image40-text60-gradient {
  background: linear-gradient(
    to right,
    rgba(3, 51, 93, 1) 0%,
    rgba(3, 51, 93, 0.8) 20%,
    rgba(3, 51, 93, 0.4) 50%,
    rgba(3, 51, 93, 0.1) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Text60People40 hover expansion */
.person-expanded-info {
  transform: scale(0);
  transform-origin: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.person-expanded-info.scale-100 {
  transform: scale(1);
}

/* Callout arrow styling */
.callout-arrow {
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8));
  z-index: 51;
}

/* Make the arrow much more prominent */
.person-expanded-info .callout-arrow {
  border-left-color: rgba(0, 0, 0, 1) !important;
  filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.9));
  border-left-width: 24px !important;
  border-top-width: 24px !important;
  border-bottom-width: 24px !important;
}

/* Allow expanding containers to escape their parent bounds */
.group {
  overflow: visible !important;
}

@media (max-width: 768px) {
  .video-controls {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .control-btn {
    width: 35px;
    height: 35px;
  }
  
  .control-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .time-display {
    font-size: 0.75rem;
    min-width: 70px;
  }
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(3, 51, 93, 0.8) 0%, rgba(2, 74, 135, 0.6) 50%, rgba(3, 51, 93, 0.8) 100%);
}

/* Search input and CTA button styling */
.search-input {
  background-color: var(--color-blue-dark-2); /* Slightly lighter blue for search */
}

/* Mobile menu styling */
.mobile-menu {
  background-color: var(--color-blue-dark-2); /* Slightly lighter blue for mobile menu */
}

/* Service cards hover effects */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Border accent colors */
.border-orange-500 {
  border-color: var(--color-orange);
}

.border-green-500 {
  border-color: var(--color-green);
}

.border-purple-500 {
  border-color: var(--color-purple);
}

.border-blue-500 {
  border-color: var(--color-blue);
}

/* Text colors for service cards */
.text-orange-600 {
  color: var(--color-orange);
}

.text-green-600 {
  color: var(--color-green);
}

.text-purple-600 {
  color: var(--color-purple);
}

.text-blue-600 {
  color: var(--color-blue);
}

/* Footer specific styles */
footer {
  background-color: var(--color-blue-dark-1) !important; /* Same blue as header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }
}

/* Search input styling */
input[type="text"]::placeholder {
  color: #93c5fd; /* Light blue placeholder - keeping as is for now */
}

input[type="text"]:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--color-blue-legacy);
}

/* Ensure proper layering in hero section */
.hero-content {
  position: relative;
  z-index: 10;
}

/* Additional hero image blending */
.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(3, 51, 93, 0.85) 0%, rgba(2, 74, 135, 0.65) 50%, rgba(3, 51, 93, 0.85) 100%);
  z-index: 2;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.bg-gradient-fade-both {
        background: linear-gradient(to right,
            var(--color-blue-dark-1) 0%,
            rgba(3, 51, 93, 0.6) 20%,
            rgba(3, 51, 93, 0.6) 80%,
            var(--color-blue-dark-1) 100%
        );
    }

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

.animate-vertical-scroll {
    animation: scroll-vertically 60s linear infinite;
}

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

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

.scroll-up {
    animation: scroll-up 60s linear infinite;
}

.scroll-down {
    animation: scroll-down 60s linear infinite;
}
.pricing-table {
  max-width: 1400px; /* slightly narrower overall */
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.pricing-title {
  text-align: left;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0 0 .25rem;
}

.pricing-sub {
  color: #5b5b5b;
  margin: 0 0 1.25rem;
}

/* Grid layout with bottom alignment */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: end;
}

/* Base card styling */
.pricing-card {
  position: relative;
  overflow: visible;
  z-index: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 2rem 1.25rem; /* reduced padding */
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.pricing-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  z-index: 1;
}

/* Featured card is taller and highlighted */
.pricing-card.featured {
  background: #f8fbff;
  border-color: #2b7cff;
  box-shadow: 0 6px 16px rgba(43, 124, 255, .15);
  min-height: 108%;
}

.pricing-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(43, 124, 255, .2);
}

/* Non-featured subtle hover border */
.pricing-card:not(.featured):hover {
  border-color: #e5e7eb;
}

/* Badge styling */
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #2b7cff, #1f5dcc);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  display: inline-block;
  transition: background .2s ease;
}

.pricing-card:hover .badge {
  background: #1f5dcc;
}

.card-head {
  text-align: center;
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #111827;
}

.price-line {
  margin-bottom: 1.5rem;
}

.currency {
  font-size: 0.9rem;
}

.amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
}

.period {
  font-size: .9rem;
  color: #6b7280;
  font-weight: 500;
  margin-left: .25rem;
}

/* Features list */
.features {
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem; /* slightly smaller text */
  margin-bottom:0.3rem;
}

.features li:first-child span {
  font-weight: 600; /* semi-bold for a balanced look */
}

.features li:last-child {
  border-bottom: none;
}


.plan-button {
  display: inline-block;
  background: #2b7cff;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  margin-top: auto; /* pushes button to bottom if features list grows */
  transition: background 0.2s ease;
}

.plan-button:hover {
  background: #1f5dcc;
}


.request-plan-form {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 500px;
  width: 100%;
}

.form-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-card .intro {
  margin-bottom: 2rem;
  color: #5b5b5b;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2b7cff;
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.15);
  outline: none;
}

/* Reuse your pricing table button styling */
.plan-button {
  display: inline-block;
  background: #2b7cff;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  width: 100%;
  text-transform: none;
  font-size: 1rem;
}

.plan-button:hover {
  background: #1f5dcc;
}

.request-plan-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-column, .plan-summary {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.plan-summary h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.plan-summary .price {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.plan-summary .features {
  list-style: none;
  padding: 0;
}

.plan-summary .features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: 0.5rem 0;
}

.breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li::after {
    content: "/";
    margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
    content: "";
}

/* Slight gradient background improvement */
.checkout-section {
    /* background: linear-gradient(180deg, #f5f9ff, #e9f0fb); */
    padding: 4rem 1rem;
}

/* Container: subtle border and softer shadow */

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr; 
    gap: 3rem; /* extra spacing */
    background: transparent; /* remove shared white background */
    box-shadow: none;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.form-side, .plan-side {
    padding: 2rem;
}

/* Plan side with gradient + rounded inner card */
.plan-side {
    background: #fff; /* white box */
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-height: fit-content;
    align-self: start; /* so it doesn't stretch full height */
}

.plan-header {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plan-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #374151;
}

.plan-blurb{
  font-size:0.7em;
}
.plan-price {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2b7cff;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.features li {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.features li svg {
    fill: #22c55e;
    margin-right: 0.4rem;
}

ul.features li:last-child {
    border-bottom: none;
}

ul.features li svg {
    fill: #22c55e;
    margin-right: .6rem;
}

/* Request form labels and inputs */
.request-form label {
    font-weight: 600;
    margin-bottom: .4rem;
    display: block;
}

.request-form input,
.request-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    transition: border 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: #2b7cff;
    box-shadow: 0 0 0 3px rgba(43,124,255,0.15);
    outline: none;
}

/* Button hover effect */
.request-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #2b7cff, #1a56d9);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.request-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43,124,255,0.3);
}
.form-side {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.terms-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-label {
    display: inline-block !important; /* force override */
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.terms-container input[type="checkbox"] {
    margin: 0;
}
.request-form input[type="checkbox"] {
    width: auto !important;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.request-form label[for="terms"] {
    display: inline-block;
    vertical-align: middle;
}
.request-form label a {
    color: #2b7cff; /* or whatever your link color is */
    text-decoration: underline;
}

.request-form label a:hover {
    color: #1a56d9; /* darker on hover */
    text-decoration: none; /* optional hover effect */
}

.plan-box {
    background: #f9fbff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.addon-box {
    background: #fff8e6;
    border: 2px solid #facc15;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.addon-box h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.addon-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.addon-option input[type="checkbox"] {
    width: auto !important;
}

.addon-price {
    color: #d97706;
    font-weight: bold;
}

.success-banner {
    background-color: #d1fae5; /* soft green background */
    color: #065f46;           /* dark green text */
    padding: 1rem 1.25rem;
    border: 1px solid #a7f3d0; /* slightly darker green border */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.failure-banner {
    background-color: #b90911; /* soft green background */
    color: #ffffff;           /* dark green text */
    padding: 1rem 1.25rem;
    border: 1px solid #5f0202; /* slightly darker green border */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure accordion items stack vertically */
.features-accordion { padding-left: 0; margin: .25rem 0 0; }
.features-accordion li { list-style: none; }
.features-accordion .feature-item { 
  display: block !important;      /* override any grid/flex from the old .features styles */
}

/* Link-style toggle from before still fine */
.feature-toggle.as-link {
  display: inline-grid;
  grid-template-columns: 1.1em auto;
  gap: .45rem;
  align-items: baseline;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.feature-toggle.as-link .feature-title {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
}

/* Panel appears below the feature row */
.feature-panel{
  width: 100%;
  padding-left: calc(1em + .45rem); /* line up under text column */
  margin-top: .35rem;
  display: block;
}
.feature-panel[hidden] { display: none; }
.feature-toggle{
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;       /* so it doesn’t center in some resets */
  max-width: none;        /* kill any global button max-widths */
  white-space: normal;    /* ensure normal wrapping */
}
.feature-toggle .feature-title{
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
}
/* Tick sizing & baseline alignment */
.tick {
  width: 1em;
  height: 1em;
    fill: #10b981;
  align-self: baseline;     /* aligns to the same baseline as the text */
  /* Fallback nudge for browsers that ignore grid baseline alignment: */
  transform: translateY(.08em);
}

/* Focus state – keeps keyboard accessibility */
.feature-toggle.as-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.feature-row{
  display: grid;
  grid-template-columns: 1.1em minmax(0, 1fr); /* <- important */
  column-gap: .45rem;
  align-items: baseline;
}

.feature-row > .tick{ grid-column: 1; width: 1em; height: 1em; transform: translateY(.06em); }
/* Button wrapper should not kill underline */
.feature-row > .feature-toggle {
  grid-column: 2;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: inline-flex;      /* keep tick + text nicely aligned */
  align-items: baseline;
}

/* The actual title span gets the underline */
.feature-toggle .feature-title {
  display: inline;           /* ensure underline hugs the text */
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
  white-space: normal;       /* allow wrapping */
}
.feature-toggle.as-link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: inline; /* important: inline, not block */
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
  white-space: normal;
}

.feature-text.highlighted {
  color: #2b7cff;
  font-weight: 600;
}

/* Overlay */
.video-modal {
  position: fixed;
  inset: 0;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
.video-modal[aria-hidden="false"] { display: flex; }

.video-dialog {
  position: relative;
  width: 66.66%;
  aspect-ratio: 16/9;
  background: #000;
  z-index: 1001; /* sits above backdrop */
  display: flex;
  align-items: stretch;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1001; /* same layer as dialog content */
}

.video-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.5rem;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  z-index: 1002; /* <- IMPORTANT: higher than the video */
}

.video-open {
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: .3rem .75rem;
  margin-top: .5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s ease;
}

.video-open:hover {
  background: var(--color-blue-dark-2);
}

.event-description ul,
.event-description ol {
  list-style: disc !important;
  list-style-position: outside;
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding-left: 1.75rem !important;
}
.event-description ol { list-style: decimal !important; }
.event-description ul li::marker,
.event-description ol li::marker { color: var(--event-type-color, var(--color-green)); font-size: 1.3em; }
.event-description li { margin: 0.25rem 0; display: list-item; list-style: inherit !important; }

/* Event description paragraph spacing and line breaks */
.event-description p {
  margin: 0.9rem 0; /* default paragraph gap */
}
.event-description p + p {
  margin-top: 1.25rem; /* extra space between consecutive paragraphs */
}
.event-description br {
  display: block;
  margin: 0.6rem 0; /* visible break spacing when editors insert line breaks */
  content: "";
}

/* External content form styling for dark backgrounds */
.external-content label,
.external-content label span,
.external-content .label-span {
  color: white !important;
  font-size: 1.1rem !important;
  font-family: inherit !important;
}

.external-content input,
.external-content textarea,
.external-content select {
  color: white !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 1.1rem !important;
  font-family: inherit !important;
  padding: 0.75rem !important;
}

.external-content input::placeholder,
.external-content textarea::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.external-content button,
.external-content input[type="submit"] {
  background-color: var(--color-blue-legacy) !important;
  color: white !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-family: inherit !important;
  padding: 0.75rem 1.5rem !important;
}

.external-content button:hover,
.external-content input[type="submit"]:hover {
  background-color: var(--color-blue-legacy) !important;
}

/* Iframe styling attempts */
.external-content iframe {
  /* Try to inject CSS into iframe if possible */
}

/* Alternative: Use CSS custom properties that might be inherited */
.external-content {
  --form-text-color: white;
  --form-bg-color: transparent;
  --form-border-color: rgba(255, 255, 255, 0.3);
  --form-font-size: 1.1rem;
}

/* Rich Text Content Styling - Shared across all components */
.rich-text-content ul,
.rich-text-content ol,
.rich-text-content .prose ul,
.rich-text-content .prose ol,
.rich-text-content .prose-invert ul,
.rich-text-content .prose-invert ol,
.rich-text-content .prose-lg ul,
.rich-text-content .prose-lg ol {
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin: 1rem auto !important;
    text-align: center !important;
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
}

.rich-text-content ul,
.rich-text-content .prose ul,
.rich-text-content .prose-invert ul,
.rich-text-content .prose-lg ul {
    list-style: disc outside !important;
}

.rich-text-content ol,
.rich-text-content .prose ol,
.rich-text-content .prose-invert ol,
.rich-text-content .prose-lg ol {
    list-style: decimal outside !important;
}

.rich-text-content li,
.rich-text-content .prose li,
.rich-text-content .prose-invert li,
.rich-text-content .prose-lg li {
    list-style: inherit !important;
    list-style-position: outside !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
    padding-left: 0.25rem !important;
    text-align: left !important;
}

.rich-text-content ul li,
.rich-text-content .prose ul li,
.rich-text-content .prose-invert ul li,
.rich-text-content .prose-lg ul li {
}

.rich-text-content ol li,
.rich-text-content .prose ol li,
.rich-text-content .prose-invert ol li,
.rich-text-content .prose-lg ol li {
}

.rich-text-content ul li::marker,
.rich-text-content ol li::marker,
.rich-text-content .prose ul li::marker,
.rich-text-content .prose ol li::marker,
.rich-text-content .prose-invert ul li::marker,
.rich-text-content .prose-invert ol li::marker,
.rich-text-content .prose-lg ul li::marker,
.rich-text-content .prose-lg ol li::marker {
    color: var(--bullet-color, #10b2f2) !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
}

.rich-text-content p,
.rich-text-content .prose p,
.rich-text-content .prose-invert p,
.rich-text-content .prose-lg p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8 !important;
}

.rich-text-content p:last-child,
.rich-text-content .prose p:last-child,
.rich-text-content .prose-invert p:last-child,
.rich-text-content .prose-lg p:last-child {
    margin-bottom: 0 !important;
}