/*****************************************************************
 GLOBAL FIX: DYNAMIC FIXED HEADER PADDING
*****************************************************************/

/* Default desktop padding to push content below the fixed header */
#ContentPane,
.main-content,
.contentPane {
  padding-top: 120px;
}

/* Adjust layout dynamically based on mobile/tablet viewports */
@media (max-width: 991px) {
  #ContentPane,
  .main-content,
  .contentPane {
    padding-top: 85px; /* Fits standard tablet header */
  }
}

@media (max-width: 576px) {
  #ContentPane,
  .main-content,
  .contentPane {
    padding-top: 60px; /* Fits compact mobile header, eliminating blank gap */
  }
}

/*****************************************************************
 SAFE GLOBAL TEXT, IMAGES, & TABLES (MOBILE-OPTIMIZED)
*****************************************************************/

body {
  color: inherit;
}

/* Force ALL inline images in modules to stay responsive */
#ContentPane img,
.main-content img,
.contentPane img {
  max-width: 100% !important;
  height: auto !important;
}

/* Prevent wide tables (like ALNAVRESFOR) from blowing out layouts */
.table-responsive,
table {
  display: block;
  width: 100% !important;
  overflow-x: auto; /* Adds clean horizontal swipe-scroll strictly to tables */
  -webkit-overflow-scrolling: touch;
}

/*****************************************************************
 LEADERSHIP / BIO MODULES (RESPONSIVE)
*****************************************************************/

.leadership-bio,
.leadership-bio * {
  background: transparent;
}

.leadership-bio p,
.leadership-bio h1,
.leadership-bio h2,
.leadership-bio h3 {
  color: #ffffff;
}

/* Optimized biography touch targets */
.leadership-bio .btn,
.leadership-bio .btn-primary,
.leadership-bio .btn-warning {
  background-color: #f5c400;
  color: #00283C;
  border: none;
  padding: 12px 20px; /* Enhanced touch target */
  font-weight: bold;
}

/*****************************************************************
 MESSAGE / INSTRUCTION LISTS (ALNAVRESFOR)
 *****************************************************************/

.alnavresfor-list,
.alnavresfor-list tr,
.alnavresfor-list td {
  background: transparent;
}

.alnavresfor-list a,
.alnavresfor-list td {
  color: #ffffff;
  padding: 10px 8px; /* Extra padding so fingers can easily tap list items */
  display: inline-block;
}

.alnavresfor-list a:hover {
  color: #f5c400;
  text-decoration: underline;
}

/*****************************************************************
 ACCORDION MENU ADJUSTMENTS
*****************************************************************/

.ftAccordionMenu div.lvl0 {
  font-size: 1.5rem;
}

.ftAccordionMenuCollapsed::after {
  font-size: 2.25rem;
}

.ftAccordionMenuCollapsed {
  top: 0;
}

.ftAccordionMenuCollapsed.ftAccordionMenuExpanded {
  top: -18px;
}

.ftAccordionMenuCollapsed.ftAccordionMenuExpanded::after {
  font-size: 40px;
}

/*****************************************************************
 HISTORY & HERITAGE
*****************************************************************/

.ui-datepicker-year {
  display: none;
}

.current-day {
  text-align: center;
  padding: 21px 0;
  background-color: #c6ccd0;
  color: #003b4f;
  font-size: 17px;
}

.current-day h2,
.current-day h3 {
  font-family: "Roboto Slab", "RobotoSlabLocal", serif;
  font-weight: 700;
  color: #003B4F;
}

/*****************************************************************
 IMAGE BLOCK CALLOUTS
*****************************************************************/

.image-block-callouts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.image-block-callouts li {
  min-height: 460px;
  width: calc(50% - 10px);
  margin-bottom: 20px;
  position: relative;
  background: #000;
  overflow: hidden;
}

@media (max-width: 720px) {
  .image-block-callouts li {
    width: 100%;
  }
}

.image-block-callouts a {
  color: #fff;
  text-decoration: none;
  display: block;
  height: 100%;
  width: 100%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
}

.image-block-callouts a:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  text-decoration: underline;
}

/* FONT INSTALLS */
@font-face {
  font-family: 'Quantico-Bold';
  src: url('/Portals/35/Fonts/Quantico-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Quantico-BoldItalic';
  src: url('/Portals/35/Fonts/Quantico-BoldItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Quantico-Italic';
  src: url('/Portals/35/Fonts/Quantico-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Quantico-Regular';
  src: url('/Portals/35/Fonts/Quantico-Reuglar.ttf') format('truetype');
}

/*******************************************************************
 MOBILE RESPONSIVENESS OVERRIDES (< 768px)
*******************************************************************/
@media (max-width: 768px) {
  
  /* Scale down heavy accordion elements so they don't break lines */
  .ftAccordionMenu div.lvl0 {
    font-size: 1.2rem;
  }
  .ftAccordionMenuCollapsed::after {
    font-size: 1.75rem;
  }

  /* Optimize the current-day box for mobile viewports */
  .current-day {
    padding: 15px 10px;
    font-size: 15px;
  }

  /* Ensure Image Callouts have touch-friendly spacing and heights */
  .image-block-callouts li {
    min-height: 250px; /* Scaled down further for mobile */
    width: 100% !important;
    margin-bottom: 15px;
  }

  .image-block-callouts a {
    padding: 20px;
  }
  
  /* Make buttons in bios full-width touch targets */
  .leadership-bio .btn,
  .leadership-bio .btn-primary,
  .leadership-bio .btn-warning {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    padding: 14px; /* Highly tactile touch targets */
    font-size: 1.1rem;
  }
}

