/* Brand override updated with provided brand RGBs and fonts */
:root{
  /* Primary brand colors (from user-provided RGBs) */
  --brand-primary: #003865; /* RGB 0,56,101 */
  --brand-secondary: #DE7C00; /* RGB 222,124,0 */
  --brand-tertiary: #4a4c4e; /* Darker gray for better readability */

  /* Secondary / accent colors */
  --brand-highlight: #147BD1; /* RGB 20,123,209 */
  --brand-muted: #888B8D; /* RGB 136,139,141 */

  /* Typography stack */
  --font-sans: "Myriad Pro", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Typography */
body{
  font-family: var(--font-sans);
  color: var(--brand-tertiary);
  background-color: #ffffff;
}

h1,h2,h3,h4,h5,h6{
  color: var(--brand-primary);
  font-family: var(--font-sans);
}

/* Scroll offset for fixed header */
#our_history,
#support {
  scroll-margin-top: 150px;
}

#our_values,
#what_we_do {
  scroll-margin-top: 200px;
}

/* Navbar styling (legacy classes kept for compatibility) */
.navbar,
.navbar-default{
  background-color: var(--brand-primary) !important;
  border-color: transparent !important;
}
.navbar .navbar-brand img.logo{ max-height:120px; height: auto; }
/* When header becomes compact/scrolled, reduce logo size for layout */
header .navbar-default.scrolled .navbar-brand img.logo,
header .navbar.scrolled .navbar-brand img.logo { max-height:80px; height:auto; }
.navbar .nav > li > a{ color: #ffffff !important; }

/* Buttons mapped to brand tokens */
.btn-primary{
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}
.btn-default{
  background-color: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
  color: #ffffff !important;
}

/* Hero / captions: ensure contrast on image slides */
.tp-banner .tp-caption, .tp-caption.large_white_bold, .tp-caption.large_white_light{
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Utility helpers */
.text-brand{ color: var(--brand-primary) !important; }
.bg-brand{ background-color: var(--brand-primary) !important; color: #ffffff !important; }

/* Small adjustments for legacy v3 markup */
.btn-lg{ padding: 12px 22px; }

/* Notes:
 - "Myriad Pro" is referenced as the primary brand font; it is a licensed font and must be hosted or installed locally for exact rendering.
 - "Montserrat" is included as a web-friendly fallback (loaded via Google Fonts in `index.html`).
 - Next step: migrate `css/freeze.css` selectors to use these variables where appropriate.
*/

/* Hard overrides to cover legacy rules in freeze.css */
header {
  background: linear-gradient(-45deg, var(--brand-highlight) 0%, var(--brand-primary) 100%) !important;
}

header .navbar-default.scrolled {
  background: var(--brand-primary) !important;
  border-bottom-color: var(--brand-primary) !important;
}

header .navbar-default.scrolled ul.navbar-nav li a,
header .navbar-default.scrolled ul.navbar-nav li a:hover,
header .navbar-default.scrolled .navbar-nav > li > a,
header .navbar-default.scrolled .nav > li > a {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-heading .divider:after { background: var(--brand-highlight) !important; }

/* About / feature icons */
section#about .about-item i.fa,
section#features .media i.fa,
section#support .media i.fa {
  border-color: var(--brand-highlight) !important;
  color: var(--brand-highlight) !important;
}
section#about .about-item:hover i.fa,
section#features .media:hover i.fa { background: var(--brand-highlight) !important; color: #fff !important; }

/* Buttons */
.btn.btn-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}
.btn.btn-primary.inverse { background-color: transparent !important; border-color: #ffffff !important; }
.btn.btn-default { background: var(--brand-secondary) !important; border-color: var(--brand-secondary) !important; color: #fff !important; }

/* Slick / slider dots */
.slick-dots li.slick-active button { background: var(--brand-highlight) !important; }
.slick-dots li button { background: var(--brand-muted) !important; }

/* Screens filter */
section#screens .filter a { border-color: var(--brand-muted) !important; color: var(--brand-tertiary) !important; }
section#screens .filter a.active, section#screens .filter a:hover { background: var(--brand-highlight) !important; border-color: var(--brand-highlight) !important; color: #fff !important; }

/* Form controls */
form .form-control { border-color: var(--brand-muted) !important; color: var(--brand-tertiary) !important; }
form .form-control:focus { border-color: var(--brand-highlight) !important; }

/* Navbar toggles and small-screen adjustments */
.navbar-toggle { background-color: var(--brand-muted) !important; }
.navbar-toggle, .navbar-toggle:hover, .navbar-default .navbar-toggle { border-color: transparent !important; color: #fff !important; }

/* Footer and pre-loader */
footer { background: linear-gradient(-45deg, var(--brand-highlight) 0%, var(--brand-primary) 100%) !important; }
.pre-loader { background: var(--brand-primary) !important; }

/* Ensure Montserrat is applied where legacy CSS still set Lato */
body, .tp-caption { font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important; }

/* Small utility helpers for quick theme adjustments */
.text-muted-brand { color: var(--brand-muted) !important; }
.bg-highlight { background-color: var(--brand-highlight) !important; }


/* Compatibility utilities added during Bootstrap v3 -> v5 migration */
/* Make legacy `.media` flexible when we add `d-flex` classes in HTML */
.media.d-flex { display: flex !important; align-items: flex-start; gap: 1rem; }
.media.d-flex .media-body { flex: 1 1 auto !important; }

/* Map legacy navbar toggle styles to Bootstrap 5 `.navbar-toggler` */
.navbar-toggler { background-color: var(--brand-muted) !important; border: none !important; color: #fff !important; }
.navbar-toggler:focus { box-shadow: none !important; }

/* Ensure header `.navbar` gets compatible scrolled state styling used by legacy `.navbar-default.scrolled` */
header .navbar.scrolled, header .navbar-default.scrolled { border-bottom: 3px solid var(--brand-primary) !important; }

/* Mobile nav scrolled state override - ensure links are always visible */
@media screen and (max-width: 640px) {
  /* Fix header background and remove white band */
  header {
    background: var(--brand-primary) !important;
  }

  header .navbar-default,
  header .navbar-default.scrolled {
    background: var(--brand-primary) !important;
    padding: 10px 15px !important;
  }

  /* Consistent logo size on mobile */
  .navbar .navbar-brand img.logo,
  header .navbar-default .navbar-brand img.logo,
  header .navbar-default.scrolled .navbar-brand img.logo {
    max-height: 70px !important;
    width: auto !important;
  }

  /* Fix hamburger menu icon - consistent position and style */
  .navbar-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    float: none !important;
  }

  .navbar-toggle,
  .navbar-toggler {
    float: none !important;
    position: static !important;
    margin: 0 15px 0 0 !important;
    padding: 8px 10px !important;
    background: transparent !important;
    border: 2px solid #ffffff !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  .navbar-toggle .fa,
  .navbar-toggler .fa {
    color: #ffffff !important;
    font-size: 18px !important;
  }

  .navbar-brand {
    float: none !important;
    padding: 0 !important;
  }

  header .navbar-default.scrolled ul.navbar-nav li a {
    color: #ffffff !important;
  }
  header .navbar-default.scrolled ul.navbar-nav li a:hover {
    color: #ffffff !important;
  }

  /* Reduce top padding on welcome section to remove white gap */
  section#welcome.welcome-section {
    padding-top: 90px !important;
  }

  /* Make welcome hero content connect to header */
  .welcome-hero-overlay {
    padding-top: 30px !important;
  }
}

/* Provide simple mapping for legacy `.btn-default` when present */

/* Secondary Navigation Styling */
.secondary-nav {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  background-color: #003865 !important;
  padding: 15px 0;
  border-bottom: 2px solid var(--brand-highlight);
  z-index: 999;
  transition: all 0.25s ease-in-out;
}

.secondary-nav .container {
  display: flex;
  justify-content: center;
}

.secondary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.secondary-nav li {
  margin: 0 20px;
}

.secondary-nav a {
  color: #ffffff !important;
  font-size: 15px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease-in-out;
  display: inline-block;
}

.secondary-nav a:hover {
  color: var(--brand-highlight) !important;
  border-bottom-color: var(--brand-highlight);
}

/* Hero Video Section */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 120px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 56, 101, 0.6) 0%, rgba(0, 56, 101, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Alt section backgrounds */
.alt-section {
  background: #f6f6f6;
}

section#our_history {
  background: #f6f6f6;
}

/* Timeline Styling */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-highlight);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: calc(50% + 40px);
  padding-left: 40px;
  text-align: left;
}

.timeline-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.timeline-content h3 {
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--brand-tertiary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-video-container {
    height: 40vh;
    min-height: 400px;
  }
  
  .secondary-nav .nav > li {
    margin: 0 5px;
  }
  
  .secondary-nav .nav > li > a {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
}

/* Video Section Styling */
.video-row {
  margin-bottom: 60px;
  align-items: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 56, 101, 0.5);
  color: #ffffff;
  transition: background 0.3s ease;
}

.video-container:hover .video-play-overlay {
  background: rgba(0, 56, 101, 0.7);
}

.video-play-overlay i {
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.video-container:hover .video-play-overlay i {
  transform: scale(1.1);
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-highlight) 100%);
  color: #ffffff;
}

.video-placeholder i {
  margin-bottom: 15px;
  opacity: 0.9;
}

.video-placeholder p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.8;
}

.video-content {
  padding: 20px;
}

.video-content h3 {
  color: var(--brand-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.video-content p {
  color: var(--brand-tertiary);
  font-size: 1rem;
  line-height: 1.8;
}

/* Video Modal Styling */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.video-modal-content video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.video-modal-close:hover {
  color: var(--brand-highlight);
}

@media (max-width: 768px) {
  .video-row {
    margin-bottom: 40px;
  }
  
  .video-content {
    margin-top: 20px;
    padding: 0;
  }

  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: -35px;
    font-size: 35px;
  }
}
.btn-default { background-color: var(--brand-secondary) !important; border-color: var(--brand-secondary) !important; color: #fff !important; }

/* Timeline Thumbnail Images */
.timeline-thumbnail {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  float: left;
  margin-right: 15px;
}

.timeline-thumbnail:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  border-color: var(--brand-highlight);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.8)}
  to {transform: scale(1)}
}

.image-modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
}

#imageCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 50px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .image-modal-content {
    max-width: 95%;
  }
  
  .timeline-thumbnail {
    width: 45px !important;
    height: 30px !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .timeline-thumbnail {
    width: 40px !important;
    height: 27px !important;
    margin-right: 6px !important;
    margin-bottom: 6px !important;
  }
}

/* Welcome Message Section */
.welcome-section {
  padding: 0;
  padding-top: 180px;
  background: #ffffff;
}

/* Welcome Hero with Background Image */
.welcome-hero {
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
}

/* Adjust Vogels.jpg to keep all family members visible */
@media (max-width: 1536px) {
  .welcome-hero {
    background-size: cover;
    background-position: calc(100% + 100px) center;
  }
}

@media (max-width: 1400px) {
  .welcome-hero {
    background-size: cover;
    background-position: calc(100% + 200px) center;
  }
}

@media (max-width: 1250px) {
  .welcome-hero {
    background-size: cover;
    background-position: calc(100% + 350px) center;
  }
}

@media (max-width: 1000px) {
  .welcome-hero {
    background-size: cover;
    background-position: calc(100% + 400px) center;
  }
}

.welcome-hero-overlay {
  width: 33%;
  min-height: 600px;
  background: rgba(0, 56, 101, 0.85);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* Mobile-only Vogels image - hidden on desktop */
.welcome-hero-mobile-img {
  display: none;
}

.welcome-hero .welcome-content {
  max-width: 600px;
  margin: 0;
  text-align: left;
  padding: 0 40px;
}

.welcome-hero .welcome-content h3 {
  color: #ffffff;
}

.welcome-hero .welcome-content h2 {
  color: #ffffff;
}

.welcome-hero .welcome-content .accent-line {
  margin: 0 0 25px;
}

.welcome-hero .welcome-content p {
  color: rgba(255, 255, 255, 0.95);
}

.welcome-hero .welcome-content p strong {
  color: #ffffff;
}

/* Purpose Box - Full Width Wrapper */
.purpose-box-wrapper {
  width: 100%;
  background: var(--brand-secondary);
  padding: 0;
}

.purpose-box-wrapper .purpose-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.32rem; /* 20% larger than 1.1rem */
  text-align: center;
}

/* Mission Box - Full Width Wrapper (same style as purpose box) */
.mission-box-wrapper {
  width: 100%;
  background: var(--brand-secondary);
  padding: 0;
  margin-bottom: 0;
}

.mission-box-wrapper .mission-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  color: #ffffff;
  font-size: 1.32rem;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

/* Remove top padding/margin from What We Do section when following mission box */
.mission-box-wrapper + section#what_we_do {
  padding-top: 0;
}

.mission-box-wrapper + section#what_we_do .section-heading {
  margin-top: 0;
  padding-top: 40px;
}

/* Executive Portrait Images (CEO and President sections) */
section#welcome .row.align-items-center .col-lg-4 img.rounded-circle,
section#president .row.align-items-center .col-lg-4 img.rounded-circle {
  width: 280px;
  height: 480px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 140px;
}

.welcome-content {
  max-width: 600px;
}

.welcome-content h3 {
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--brand-highlight);
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.welcome-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--brand-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: var(--brand-secondary);
  margin-bottom: 25px;
}

.welcome-content p {
  color: var(--brand-tertiary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.welcome-content p strong {
  color: var(--brand-primary);
}

.purpose-box {
  background: var(--brand-secondary);
  color: #ffffff;
  padding: 25px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(222, 124, 0, 0.3);
}

.image-placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
  border: 2px dashed var(--brand-muted);
  border-radius: 8px;
  padding: 80px 40px;
  text-align: center;
  color: var(--brand-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Values Section Card Images */
section#our_values .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 15px;
  display: block;
}

/* Center buttons in Our Values section */
section#our_values .about-item {
  text-align: center;
}

/* History Video Holder */
.history-video-holder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-video-holder:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.history-video-holder video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-highlight) 100%);
}

.history-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 56, 101, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.3s ease;
}

.history-video-holder:hover .history-video-overlay {
  background: rgba(0, 56, 101, 0.4);
}

.history-video-overlay i {
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.history-video-holder:hover .history-video-overlay i {
  transform: scale(1.15);
  opacity: 1;
}

.history-video-overlay p {
  margin-top: 15px;
  font-size: 1.3rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .history-video-overlay p {
    font-size: 1rem;
  }

  .history-video-overlay i.fa-5x {
    font-size: 3em;
  }
}

/* History Section Card Images */
section#our_history .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 15px;
  display: block;
}

/* Center buttons in Our History section */
section#our_history .about-item {
  text-align: center;
}

/* Center buttons in What We Do section */
section#what_we_do .about-item {
  text-align: center;
}

/* What We Do Section Card Images */
section#what_we_do .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 15px;
  display: block;
}

.image-placeholder.card-image {
  padding: 40px 20px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.welcome-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .welcome-section {
    padding: 0;
  }

  .welcome-hero {
    min-height: auto;
    background-image: none !important;
  }

  .welcome-hero-overlay {
    width: 100%;
    min-height: auto;
    padding: 40px 20px;
    background: var(--brand-primary);
  }

  /* Show Vogels image as separate block on mobile */
  .welcome-hero-mobile-img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .welcome-hero .welcome-content h2 {
    font-size: 1.8rem;
  }

  .welcome-content h2 {
    font-size: 2rem;
  }

  .welcome-content {
    margin-bottom: 40px;
  }

  /* Executive portraits - smaller on mobile */
  section#welcome .row.align-items-center .col-lg-4 img.rounded-circle,
  section#president .row.align-items-center .col-lg-4 img.rounded-circle {
    width: 200px;
    height: 340px;
    border-radius: 100px;
    margin-bottom: 30px;
  }

  .purpose-box-wrapper .purpose-box {
    font-size: 1.1rem;
    padding: 30px 20px;
  }

  .mission-box-wrapper .mission-box {
    font-size: 1.1rem;
    padding: 30px 20px;
  }

  .purpose-box {
    font-size: 1rem;
    padding: 20px;
  }
}

/* Full-width hero image with glass overlay */
.hero-image-section {
  position: relative;
  width: 100%;
  min-height: 1100px;
  margin-top: 160px;
  overflow: hidden;
}

.hero-image-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-image-section .hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-highlight) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  z-index: 1;
}

.hero-image-section .glass-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 720px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Blue header section for h1 and tagline */
.hero-image-section .glass-overlay h1 {
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 3rem;
  font-weight: 300;
  margin: 0;
  padding: 30px 40px 15px;
  border-radius: 16px 16px 0 0;
  text-shadow: none;
}

.hero-image-section .glass-overlay .tagline {
  background: var(--brand-primary);
  border-left: none;
  padding: 0 40px 30px;
  margin-bottom: 0;
  border-radius: 0;
}

.hero-image-section .glass-overlay .tagline p {
  margin: 0;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: #ffffff;
  border-left: 3px solid var(--brand-secondary);
  padding-left: 15px;
}

/* Content area below the blue header */
.hero-image-section .glass-overlay > p {
  padding: 0 40px;
}

.hero-image-section .glass-overlay > p:first-of-type {
  padding-top: 30px;
}

.hero-image-section .glass-overlay > p.highlight-last {
  margin: 25px 40px 40px;
  padding: 25px 30px;
}

.hero-image-section .glass-overlay .divider {
  width: 60px;
  height: 3px;
  background: var(--brand-secondary);
  margin-bottom: 20px;
}

.hero-image-section .glass-overlay p.highlight-last {
  background: var(--brand-secondary);
  color: #ffffff;
  padding: 25px 30px;
  margin-top: 25px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(222, 124, 0, 0.3);
}

.hero-image-section .glass-overlay p.highlight-last::before {
  content: "\f00c";
  font-family: "FontAwesome";
  margin-right: 12px;
  font-size: 1.1rem;
}

.hero-image-section .glass-overlay p {
  color: #000000;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-shadow: none;
}

@media (max-width: 992px) {
  .hero-image-section .glass-overlay {
    width: 80%;
  }
}

/* Left-aligned glass overlay variant */
.hero-image-section .glass-overlay.glass-overlay-left {
  left: 5%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-image-section .glass-overlay.glass-overlay-left {
    width: 50%;
    left: 3%;
  }
}

@media (max-width: 768px) {
  .hero-image-section .glass-overlay.glass-overlay-left {
    left: auto;
    transform: none;
    width: 100%;
  }
}

/* Right-aligned glass overlay variant */
.hero-image-section .glass-overlay.glass-overlay-right {
  left: auto;
  right: 5%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-image-section .glass-overlay.glass-overlay-right {
    width: 50%;
    right: 3%;
  }
}

@media (max-width: 768px) {
  .hero-image-section .glass-overlay.glass-overlay-right {
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-image-section {
    min-height: auto;
    margin-top: 90px;
    display: flex;
    flex-direction: column;
  }

  .hero-image-section .hero-bg,
  .hero-image-section .hero-bg-placeholder {
    position: relative;
    height: 250px;
    order: 2;
    width: 100%;
    object-fit: cover;
  }

  .hero-image-section .glass-overlay {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: var(--brand-primary);
    backdrop-filter: none;
    order: 1;
  }

  .hero-image-section .glass-overlay h1 {
    font-size: 1.8rem;
    border-radius: 0;
  }

  .hero-image-section .glass-overlay .tagline {
    border-radius: 0;
  }

  .hero-image-section .glass-overlay p {
    color: rgba(255, 255, 255, 0.95);
  }

  .hero-image-section .glass-overlay p.highlight-last {
    margin: 20px;
  }
}

/* ===========================================
   MEDIA VAULT GALLERY STYLES
   =========================================== */

/* Gallery Section Title */
.gallery-section-title {
  font-size: 1.8rem;
  color: var(--brand-primary);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brand-highlight);
}

/* Photo Gallery */
.photo-gallery-wrapper {
  margin-bottom: 40px;
}

.photo-gallery {
  margin-bottom: 20px;
}

/* Gallery Pagination */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-pagination-bottom {
  margin-top: 30px;
  margin-bottom: 0;
}

.pagination-arrow {
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  font-size: 1.2rem;
}

.pagination-arrow:hover:not(:disabled) {
  background: var(--brand-highlight);
  transform: scale(1.1);
}

.pagination-arrow:disabled {
  cursor: not-allowed;
}

.pagination-info {
  font-size: 1.1rem;
  color: var(--brand-tertiary);
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 768px) {
  .pagination-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .pagination-info {
    font-size: 0.95rem;
    min-width: 100px;
  }

  .gallery-pagination {
    gap: 15px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Use aspect ratio for consistent sizing */
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  /* Ensure proper sizing on all devices */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 56, 101, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover::after {
  background: rgba(0, 56, 101, 0.3);
}

/* Video Gallery */
.video-gallery {
  margin-bottom: 40px;
}

/* Video Subsection Titles */
.video-subsection-title {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin: 40px 0 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-muted);
  font-weight: 600;
}

.video-subsection-title:first-of-type {
  margin-top: 0;
}

.video-gallery-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-highlight) 100%);
}

.video-thumb-container video,
.video-thumb-container .video-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 56, 101, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.3s ease;
}

.video-gallery-item:hover .video-thumb-overlay {
  background: rgba(0, 56, 101, 0.3);
}

.video-thumb-overlay i {
  opacity: 0.9;
  transition: transform 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-gallery-item:hover .video-thumb-overlay i {
  transform: scale(1.2);
}

.video-gallery-info {
  padding: 20px;
}

.video-gallery-info h4 {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.video-gallery-info p {
  color: var(--brand-tertiary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Image Modal */
.media-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.media-modal-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  border-radius: 4px;
}

.media-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.media-modal-close:hover {
  color: var(--brand-highlight);
}

.media-modal-caption {
  color: #ffffff;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  max-width: 80%;
}

/* Modal Navigation Arrows */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, background 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  color: var(--brand-highlight);
  background: rgba(0, 0, 0, 0.6);
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-item {
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
  }

  .gallery-section-title {
    font-size: 1.4rem;
  }

  .modal-prev,
  .modal-next {
    font-size: 35px;
    padding: 15px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .media-modal-close {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }

  .video-gallery-info {
    padding: 15px;
  }

  .video-gallery-info h4 {
    font-size: 1rem;
  }
}

/* Small mobile - full width stacked images */
@media (max-width: 576px) {
  .gallery-item {
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    border-radius: 6px;
  }
}
