/* Settings to override the https://jrm.navy.nepa.mil/ website's AllHandsTheme theme/styles */
/* Override 1 linespacing */
p,li {
  line-height: 1.5;
}

/* Override the default Oswald font that appears bold */
li {
	font-family: 'OswaldLight';
	font-weight: normal;
}
/* Make the Second-Level List a dash */
ul.jrm-dashed-nested-list ul {
  list-style-type: none !important; /* Forces removal of default nested disc/circle bullets */
  padding-left: 1.25rem;            /* Matches standard Bootstrap indentation */
}

/* 2. Global Second-Level Dash Insertion */
ul.jrm-dashed-nested-list ul > li::before {
  content: "– ";                   /* Injects the en-dash character plus a space */
  margin-left: -1rem;               /* Pulls the dash into the padding gutter */
  display: inline-block;
  width: 1rem;                      /* Keeps the text perfectly aligned if it wraps */
  color: inherit;                   /* Ensures the dash matches your text color automatically */
}

/* Chain tags together to maximize selector strength */
body html ul.dashed-nested-list2 ul,
div ul.dashed-nested-list ul,
ul.dashed-nested-list ul li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Ensure the dash pseudo-element stays visible */
body html ul.dashed-nested-list2 ul > li::before {
  content: "– " !important;
  margin-left: -1rem !important;
  display: inline-block !important;
  width: 1rem !important;
}


/* Accordion Tabs */
/* Active Tab Header Text */
/* When Display Style is set to "Tabs - Selected", the active tab label appears to be blank. It is because it is displaying white text on a white background. This will reset the active tab font color to black */
.ui-tabs .ui-tabs-nav li.ui-state-active a,
.ui-accordion .ui-accordion-header.ui-state-active a {
    color: #000000 !important;
}
/* Accordion Menu using Army template */
.armyAccordionMenuSubMenu .armyMenuLinkHeader a {
    font-size: initial;
    color: #3d3d3d;
    /* font-family: Helvetica,Arial,sans-serif; */
    /* font-weight: bold; */
}

/* Buttons */
/* Base button wrapper layout reset and core parameters */
.btn-grow-shadow-image {
    background-color: transparent !important; 
    border: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: inline-block !important; 
    width: 100% !important; /* Guarantees filling the parent bootstrap grid column */
    
    /* Crucial anchor mapping configuration for absolute child layouts */
    position: relative !important; 
    
    cursor: pointer; 
    overflow: hidden; /* Clips the background graphic / overlay to match border radius */ 
    text-decoration: none !important; /* Disables standard DNN links underline styling on hover */ 
    
    /* Smooth transition matching engine for sizes and shadow tracking variables */ 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0); 
} 

/* Combined magnification growth action and smooth drop shadow deployment on hover */ 
.btn-grow-shadow-image:hover, 
.btn-grow-shadow-image:focus { 
    transform: scale(1.04); /* Scales up precisely by 4% to prevent edge-blurring */ 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), 0 6px 6px rgba(0, 0, 0, 0.18); 
} 

/* Mechanical active click/tap compression behavior physics feedback */ 
.btn-grow-shadow-image:active { 
    transform: scale(0.98); 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
} 

/* Absolute tracking baseline structure for the TOP grey translucent block text bar */ 
.bg-grey-overlay { 
    background-color: rgba(45, 45, 45, 0.65) !important; /* Premium dark-grey visibility tint layer */
    transition: background-color 0.3s ease-in-out; 
    
    /* Absolute tracking anchored to the top bounds */
    position: absolute !important;
    top: 0 !important;              
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* Forces the box to adhere perfectly to the image width bounds */
    height: auto !important; /* Allows the background to grow vertically if text wraps */
    
    text-align: center !important; 
    padding: 12px 15px !important; /* Generous breathing buffer around typography */
    box-sizing: border-box !important; 
    z-index: 5; /* Forces strict execution rendering display layering order over image elements */
} 

/* Darkens the background tint opacity balance layer when a user hovers over the button card */ 
.btn-grow-shadow-image:hover .bg-grey-overlay { 
    background-color: rgba(25, 25, 25, 0.85) !important; 
} 

/* String text typography design rules and global layout configuration overrides */ 
.bg-grey-overlay span { 
    color: #ffffff !important; /* Flawless solid high-contrast white tracking override */
    
    /* DESKTOP RELATIVE SIZING: Updated to exactly 1.5rem as requested */
    font-size: 1.25rem !important; 
    
    font-weight: 700 !important; /* Ensures bold title presence matching Bootstrap standard values */
    
    /* Strict wrapping rules */
    display: block !important; /* Dictates block formatting behavior so headers wrap naturally */
    width: 100% !important; 
    white-space: normal !important; /* Overrides any global layout styles forcing single text lines */
    line-height: 1.3 !important; /* Ensures stacked sentences don't collide or overlap */
    
    letter-spacing: 0.75px; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Built-in subtle backdrop protection shadow for text legibility */
}

/* ==========================================================================
   Responsive Viewport Breakdown Media Queries
   ========================================================================== */

/* Smooth scaling tracking layout reduction system rule for smart phone screens */
@media (max-width: 576px) {
    .bg-grey-overlay {
        padding: 8px 10px !important; /* Tightens inner bar layout constraints slightly on phones */
    }
    .bg-grey-overlay span {
        /* MOBILE RELATIVE SIZING: Tracks down seamlessly to keep layout proportions balanced */
        font-size: 1.0rem !important; 
        line-height: 1.3 !important;
        letter-spacing: 0.5px;
    }
}

/* Quote */
.jrm-quote {
	line-height: 1.5;
	color:#ffffff;
	text-align: center;
	background-color: #306c0f;
	border-radius: 8px !important;
	font-size: x-large;
	font-weight: bold;
}

/* Accordion Menu */
.armyAccordionMenu {
	margin-top: 10px
}


/* Figure Captions */
figcaption {
    color: #000000 !important; /* Replace with your desired color */
}
figcaption a {
    color: #585858 !important; /* Replace with your desired color */
}

/*** Photo slideshow/carousel ***/
/* 1. Turn the slide item container into a flex column */
.jrm-photo-wheel .carousel-item.active,
.jrm-photo-wheel .carousel-item-next,
.jrm-photo-wheel .carousel-item-prev {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

/* 2. Push the Image to the absolute top of the pile */
.jrm-photo-wheel .carousel-item img {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
}

/* 3. Re-route the Indicators container right into the middle slot */
.jrm-photo-wheel .carousel-indicators {
    position: relative !important;     /* Removes broken absolute position math */
    order: 2 !important;               /* Forces it visually second in line */
    display: flex !important;          /* Lines dots up horizontally */
    justify-content: center !important;
    align-items: center !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;           /* Clears old conflicting rules */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    z-index: 15 !important;
    
    /* Perfect spacing out in the open gap */
    height: 40px !important;           /* Gives the dots their own dedicated clear row space */
    background-color: #ffffff !important; /* Matches a clean white backdrop page background */
}

/* 4. Push the text caption container to render third (bottom) */
.jrm-photo-wheel .carousel-item .bg-light {
    order: 3 !important;               /* Forces it visually last in line */
    width: 100% !important;
}

/* ==========================================================================
   DOT SHAPES, NUMBERS WIPER, & SIDE ARROWS CONSTRAINTS
   ========================================================================== */

/* Clean Circular Dots & Absolute Text Numbers Eraser */
.jrm-photo-wheel .carousel-indicators li {
    display: inline-block !important;
    flex: 0 1 auto !important;
    width: 14px !important;            
    height: 14px !important;           
    margin: 0 6px !important;          /* Equal space between dots */
    border-radius: 50% !important;     /* Changes rectangles to crisp circles */
    cursor: pointer !important;
    
    /* Text Numbers Obliterator */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    color: transparent !important;
    
    /* Color Palette for White Background Gap */
    background-color: #999999 !important; /* Medium grey for visibility */
    opacity: 0.6 !important;
    border: 2px solid #ffffff !important; /* Outer accent border ring */
    box-sizing: content-box !important;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Active Dot Focus Highlight */
.jrm-photo-wheel .carousel-indicators .active {
    background-color: #000000 !important; /* Crisp pitch black for active slide */
    border-color: #000000 !important;
    opacity: 1 !important;
}

/* Keeps arrow click zones strictly centered on the image area only */
.jrm-photo-wheel .carousel-control-prev,
.jrm-photo-wheel .carousel-control-next {
    position: absolute !important;
    top: 0 !important;
    bottom: auto !important;
    height: calc(100% - 114px) !important; /* Subtracts the space of dots (40px) and default captions (~74px) */
    min-height: 250px !important;          /* Safety minimum constraint fallback */
	z-index: 20 !important;                /* Keeps arrows floating above the slides */
    opacity: 0.85 !important;
}

/* Arrow Round Icon Bubble Styling */
.jrm-photo-wheel .carousel-control-prev-icon,
.jrm-photo-wheel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6) !important; 
    padding: 24px;
    border-radius: 50%;
    background-size: 50%, 50% !important;
}
