/*--------------------------------------------------
  Global Styles & Variables
--------------------------------------------------*/
:root {
    --dark-bg: #000000; /* Page background is now black */
    --light-text: #f8f9fa;
    --dark-text: #212529;
    --spy-gray: #343a40;
    --placeholder-gray: #CCCCCC;
}

html {
    /* touch-screen off-canvas color */
    /* background: #333333; */
}

body {
    /* background-color: var(--dark-bg); */ 
    color: var(--light-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h2, h5 {
    font-family: Courier;
}

p, li {
    font-size: 0.9rem;
}

/* Bootstrap container max-width override */ 
.container {
    max-width: 1200px;
}

/* Increase font size on larger screens */ 
@media (min-width: 1601px) {
    html {
        font-size: 18px;
    }
    p, li {
        font-size: 1rem;
    }
    .nav-tabs-spy .nav-link {
        padding: 0rem 1.4rem !important;
    }
    .nav-tabs-alt .nav-link {
        padding: 0.1rem 1.4rem !important;
    }
}



/*--------------------------------------------------
  Cloudflare Mirage / Server-Side Overrides
--------------------------------------------------*/
@media (max-width: 768px) {
    #workshop-details img[data-cfsrc*="icon"] {
        margin: 0px auto !important;
        margin-bottom: 20px !important;
    }
    #why-participate img[data-cfsrc*="icon"] {
        margin: 0px auto !important;
    }
}






/*--------------------------------------------------
  Torn Edge Mask Effect (Only Works On Server, Can't Be Tested Locally)
--------------------------------------------------*/

.torn-edge-top {
    position: relative;
    background-color: green; /* This is the color of our section */
}

.torn-edge-top::before {
    content: ''; /* Pseudo-elements must have a content property */
    position: absolute; /* Positioned relative to the .torn-edge-section */
    
    /* Sizing and Positioning */
    width: 100%;
    height: 36px; /* This should be the height of your tear effect */
    left: 0;
    top: -36px; /* This is the key: a negative top value equal to the height pulls it up, overlapping the previous section */

    /* The background color MUST be set explicitly to match the section's color */
    background-color: blue;

    /* * The SVG mask. The mask cuts out the shape from the background.
     * 'mask-size: cover;' ensures the SVG stretches to fill the entire pseudo-element.
    */
  -webkit-mask-image: url('../img/mask-paper-top.png');
  -webkit-mask-repeat: repeat;
  -webkit-mask-position: bottom;
  -webkit-mask-size: contain;

  mask-image: url('../img/mask-paper-top.png');
  mask-repeat: repeat;
  mask-position: bottom;
  mask-size: contain;
}

@media (max-width: 768px) {
   .torn-edge-top:before {
        -webkit-mask-size:300% 50%;
        mask-size: 300% 30%;
    }
}  
  

/*--------------------------------------------------
  Header & Navigation Tabs
--------------------------------------------------*/
header {
    position: relative;
    z-index: 10;
}

.nav-item {
    margin-right: 5px;
}

@media (max-width: 768px) {
    header .container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

@media (max-width: 576px) {
    /* Full-width mobile navigation */
    header .container {
        max-width: 100%;
        padding: 0;
    }
    .nav-tabs-std {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }
    .nav-tabs-std .nav-item {
        flex-grow: 1;
        text-align: center;
        margin: 0;
    }
    .nav-tabs-std .nav-link {
        width: 100%;
        border-radius: 0;
    }
}




/*----------------------------
  Spy Tabs
----------------------------*/

.nav-tabs-spy {
    border-bottom: none; 
    display: flex;
    justify-content: flex-start;
    padding-left: 1rem;
}

.nav-tabs-spy .nav-link {
    background-image: url('../img/nav-tab.svg');
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    height: 32px;
    width: auto;
    color: #fff;
    padding: 0.25rem 1.4rem;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
}

.nav-tabs-spy .nav-link span {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
}

.nav-tabs-spy .nav-link:hover {
    transform: translateY(-5px);
}

/* Special style for the PC07 tab's inner label */
.nav-tabs-spy .nav-link.active span {
    background-image: url('../img/nav-current.svg');
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #000;
    padding: 0rem 0.6rem;
    display: inline-block;
}

/* Ensure other tab text remains white */
.nav-tabs-spy .nav-link:not(.active) span {
     color: #fff;
}

.nav-tabs-spy .nav-minimized {
    /* display: none; */
    /* letter-spacing: -0.5px; */
    /* font-size: 0.7rem !important;
    line-height: 1;
    text-align: center;
    padding: 0.25rem 1.2rem; */
    text-transform: initial;
}


/*----------------------------
  Evergreen Tabs
----------------------------*/

.nav-tabs-alt {
    border-bottom: none; 
    display: flex;
    justify-content: flex-start;
    padding-left: 1rem;
}

.nav-tabs-alt .nav-link {
    background-image: url('../img/nav-tab.svg');
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    height: 32px;
    color: #fff;
    padding: 0.25rem 1.4rem;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
}

.nav-tabs-alt .nav-link:hover {
    transform: translateY(-5px);
}

.nav-tabs-alt .nav-link span {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Special style for the PC07 tab's inner label */
.nav-tabs-alt .nav-link.active span {
    background-image: url('../img/nav-current.svg');
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #000;
    padding: 0rem 0.6rem;
    display: inline-block;
}

/* Ensure other tab text remains white */
.nav-tabs-alt .nav-link:not(.active) span {
     color: #fff;
}

.nav-tabs-alt .nav-minimized {
    /* display: none; */
    /* letter-spacing: -0.5px; */
    /* font-size: 0.7rem !important;
    line-height: 1;
    text-align: center;
    padding: 0.25rem 1.2rem; */
    text-transform: initial;
}




/*----------------------------
  Clean Tabs
----------------------------*/

.nav-tabs-std .nav-link {
    color: #222;
    font-size: 1rem;
    padding: 1px 1.5rem;
    transition: transform 0.2s ease-in-out;
    background: #e3e3e3;
    border-radius: 0px 0px 4px 0px;
    height: 32px;
}

.nav-tabs-std .nav-link:not(.active) span {
    color: #222;
    font-family: sans-serif;
    font-weight: normal;
}

.nav-tabs-std .nav-link.active {
    background: linear-gradient(90deg, rgba(76,15,22,1) 0%, rgba(14,26,37,1) 100%);
    color: #ffffff;
}

.nav-tabs-std .nav-link span {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-tabs-std .nav-link.active span {
    color: white;
    font-weight: bold;
    padding: 0rem 0.6rem;
    display: inline-block;
}

.nav-tabs-std .nav-link:hover {
    transform: translateY(-5px);
}

@media (max-width: 1600px) {
    .nav-tabs-std .nav-link {
        padding: 3px 1rem;
    }
    .nav-tabs-std .nav-item {
        margin-left: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width: 576px) {
     .nav-tabs-std .nav-link {
        padding: 3px 0.75rem;
    }
}

@media (max-width: 420px) {
    .nav-tabs-std .nav-link {
        padding: 3px 0.5rem;
    }
    .nav-tabs-std .nav-link.active span {
        padding: 0rem 0.5rem;
    }
    .nav-tabs-std .nav-link span {
        font-weight: 600 !important;
    }
}

@media (max-width: 390px) {
    .nav-tabs-std .nav-link {
        padding: 3px 0.4rem;
    }
    .nav-tabs-std .nav-link.active span {
        padding: 0rem 0.4rem;
    }
    .nav-tabs-std .nav-link span {
        font-size: 0.85rem;
        font-weight: 600 !important;
    }
}

@media (max-width: 360px) {
    .nav-tabs-std .nav-link {
        padding: 3px 0.3rem;
    }
    .nav-tabs-std .nav-link.active span {
        padding: 0rem 0.25rem;
    }
    .nav-tabs-std .nav-link span {
        font-size: 0.8rem;
        font-weight: 600 !important;
    }
}



/*--------------------------------------------------
  Header Fixed Box
--------------------------------------------------*/
/* Deprecated PC7 Style */
/*
#executive-order {
    position: absolute;
    right: 0px;
    top: -50px;
    width: 360px;
    box-shadow: -20px 18px 20px 0px rgba(0, 0, 0, 0.15);
    background: white;
    transform: rotate(-7deg);
    z-index: 1;      
}
*/
#executive-order {
    background: linear-gradient(90deg, rgba(76,15,22,1) 0%, rgba(14,26,37,1) 100%);
    position: absolute;
    top: 0px;
    right: 65px;
    width: 360px;
    border-radius: 0px 0px 8px 8px;
    box-shadow: -20px 18px 20px 0px rgba(0, 0, 0, 0.05);
    z-index: 1;      
}

#executive-order p {
    color: white;
    font-weight: bold;  
    font-size: 0.9rem;
    line-height: 1.3;          
}

.executive-icon {
    position: relative !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
    margin-left: auto !important;
    top: -15px !important;
}

@media (max-width: 1600px) {
    #executive-order {
        position: absolute;
        right: 50px;
        width: 320px;
    }            
}


/*--------------------------------------------------
  Home -> Hero Section
--------------------------------------------------*/
#hero {
    color: var(--dark-text);
    /*
    background-image: url('../img/spy-mobile.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 1100px;
    background-position-x: 60%;
    */
    background: white;
    height: 85vh;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
}

.hero-content {
    text-align: center;
}

.hero-logo-img {
    width: 800px;
    max-width: 90vw;
}

.hero-title-img {
    width: 500px;
    max-width: 60vw;
}

.btn {
    /* font-family: 'Courier New', Courier, monospace; */
    font-weight: bold;
}

.btn-register {
    display: none !important; /* Hide the register button until registration opens again */
}

.btn-register {
    background-color: #4C0F16;
    border: 2px solid #888;
    color: white;
    padding: 0.45rem 2rem 0.6rem 2rem;
    margin-top: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-register:hover {
    background: white;
    color: black;
}

.btn-practice {
    background-color: #fff;
    border: 2px solid #4C0F16;
    color: #000;
    padding: 0.45rem 2rem 0.6rem 2rem;
    margin-top: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-practice:hover {
    background: black;
    color: white;
}



/* Disable animation overlay effect on registration buttons */
/*
.btn-register::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-text);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}
*/

.btn-register.is-visible::after {
    transform: scaleX(0);
}

.scroll-arrow {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 60px;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/*--------------------------------------------------
  Home -> Mission Section
--------------------------------------------------*/
.torn-edge-divider {
    height: 60px;
    background-image: url('../img/mission-tear.svg');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: contain;
    margin-top: -30px;
    display: none;
}

#mission-awaits {
    /*
    background-image: url(../img/mission-bg.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin-top: -45px;
    */
}

/*--------------------------------------------------
  Home -> Redaction Animation
--------------------------------------------------*/
.redacted-container {
    transform: rotate(-2deg);
}

.redaction-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 3rem;
}

/* Staggered layout for redaction rows */
.redaction-row:nth-of-type(1) { justify-content: flex-end; margin-right: 3rem; }
.redaction-row:nth-of-type(2) { justify-content: flex-end; }
.redaction-row:nth-of-type(3) { justify-content: flex-end; }
.redaction-row:nth-of-type(4) { justify-content: flex-end; margin-right: -0.1rem; }
.redaction-row:nth-of-type(5) { justify-content: flex-end; }


.redaction-row h2 {
    flex-shrink: 0;
    margin: 0 0.5rem;
    font-size: 2.2rem;
}

.redacted-text {
    position: relative;
    margin: 0 0.5rem;
}

.redacted-text span {
    color: #fff;
    font-family: Courier;
    font-weight: 700;
    font-size: 2.2rem;
    white-space: nowrap;
}

.redacted-text::after {
    content: '';
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url(../img/redaction-white.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    transform: scaleX(0);
    transform-origin: left;
}

/* This class will be added by JS to trigger the animation */
.redacted-container.is-visible .redacted-text::after {
    animation-name: draw-redaction-cover;
    animation-duration: 1.3s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: var(--animation-delay, 0s);
}

@keyframes draw-redaction-cover {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/*--------------------------------------------------
  Home -> Intel Subsection
--------------------------------------------------*/
#intel {
    color: var(--dark-text);
    max-width: initial;
    padding-left: 12% !important;
    padding-right: 0;
}

.intel-card {
    color: var(--dark-text);
    position: relative;
    background-image: url('../img/intel-card.png');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
}

#agent-toolkit {
    background-image: url(../img/agent-toolkit.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 100%;
    overflow-x: hidden;
}

@media (max-width: 1200px) {
    #agent-toolkit {
        background-size: cover;
    }
}

@media (max-width: 576px) {
    #agent-toolkit .d-flex .col {
        padding-right: calc(var(--bs-gutter-x) * .2) !important;
        padding-left: calc(var(--bs-gutter-x) * .2) !important;
    }
}

.intel-icons > div:hover {
    transition: transform 0.2s ease-in-out;
}

.intel-icons > div:hover {
    transform: translateY(-5px);
}

/* Disable pointer events until registration opens */
.intel-icon-1 {   
    /* pointer-events: none; */
}

.intel-icon-1 img {   
    padding-top: 1rem;
    width: 92% !important;
}
.intel-icon-2 img {   
    width: 100% !important;
}
.intel-icon-3 img {        
    padding-top: 1.1rem;
    width: 92% !important;
}
.intel-icon-4 img {        
    padding-top: 0.8rem;
    width: 67% !important;
}

@media (max-width: 768px) {
    .intel-card-title {
        min-width: 150% !important;
        max-width: 150% !important;
        margin: 0px auto !important;
    }
    .intel-icons .col-6 {        
        padding: 0px !important;
    }
    .intel-card .intel-icons {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .intel-card-title {
        min-width: 150% !important;
        max-width: 150% !important;
        margin-left: -25% !important;
    }
}

/*--------------------------------------------------
  Home -> Timeline Section
--------------------------------------------------*/
#timeline {
    /*
    background-image: url(../img/timeline-bg.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-position-x: 10%;
    background-size: cover;
    margin-top: -120px;
    color: var(--dark-text);
    position: relative;
    */
}

.timeline-title {
    overflow: hidden;
}

.timeline-title img {
    width: 100%;
}

.timeline-status {
    border: 1px solid #dee2e6;
}

.timeline-button {        
    text-align: center;
}

.timeline-button .btn-register {
    margin-top: 0.5rem !important;
}

@media (max-width: 1200px) {
    .timeline-button .btn-register {
        margin-top: 2rem !important;
    }
}

.timeline-individual .row div,
.timeline-team .row div {
    border-right: 3px dotted #bbbbbb;
    border-bottom: 1px solid #bbbbbb;
    position: relative; /* Needed for the pseudo-element */
}

.timeline-individual .row div:first-of-type, .timeline-individual .row div:last-of-type {
    border-right: none;
}

.timeline-team .row div:first-of-type, .timeline-team .row div:last-of-type {
    border-right: none;
}

.timeline-individual-mobile img, .timeline-teams-mobile img {
    width: 100%;      
}

.timeline-individual img, .timeline-team img {
    width: 100%;
    z-index: 1;
    position: relative;
}

/* Add a pseudo-element to create the inner border for 2/7 width columns */
.timeline-individual .col-md-2-of-7::after, .timeline-team .col-md-2-of-7::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    border-right: 3px dotted #bbbbbb;
}

.timeline-black:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: black;            
}

.timeline-locality .row {
    /* display: grid;
    grid-template-columns: 1fr 4fr 2fr; 
    height: 10px; */
}

 .timeline-locality .col-blank {
    width: 15%;
}

.timeline-locality .col-virtual {
    height: 10px;
    width: 56%;
    margin-bottom: 5px;
    margin-right: 5px;
    border-top: 1px solid #aaaaaa;
    border-left: 1px solid #aaaaaa;
    border-right: 1px solid #aaaaaa;
}

.timeline-locality .col-virtual:before {
    content: 'virtual';
    position: relative;
    top: -25px;
    font-size: 0.8rem;
    font-family: Courier, monospace;
    text-transform: uppercase;          
}

.timeline-locality .col-in-person {
    height: 10px;
    width: 28%;
    margin-bottom: 5px;
    border-top: 1px solid #aaaaaa;
    border-left: 1px solid #aaaaaa;
    border-right: 1px solid #aaaaaa;           
}

.timeline-locality .col-in-person:before {
    content: 'in person finals';
    position: relative;
    top: -25px;
    font-size: 0.8rem;
    font-family: Courier, monospace;
    text-transform: uppercase;          
}

#spy-wrapper {

}

#spy {
    position: relative;    
    bottom: -125px;
    right: 100px;
    transform: scale(2.5);
}

@media (min-width: 1200px) {
    #spy {
        position: relative;    
        right: 200px;
    }
}

@media (min-width: 1400px) {
    #spy {
        position: relative;    
        right: 150px;
    }
}

@media (min-width: 1700px) {
    #spy {
        position: relative;    
        bottom: -200px;
        right: 100px;
        transform: scale(2.65);
    }
}

@media (min-width: 2200px) {
    #spy {
        position: relative;    
        bottom: -200px;
        right: 100px;
        transform: scale(2.8);
    }
}




/*--------------------------------------------------
  Home -> Skills Section & Buttons
--------------------------------------------------*/
#skills {
    background-image: url(../img/skills-bg.svg);
    background-repeat: no-repeat;
    background-position: top center;
    /* background-position-x: 10%; */
    background-size: cover;
    margin-top: -200px;
    padding-top: 200px !important;
    color: var(--dark-text);
    position: relative;
}

.skills-title {
    overflow: hidden;
}

.skills-title img {
    width: 100%;
}

.shadow-light {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

#hone-skills {
    background-image: url(../img/hone-skills-transparent.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    color: var(--dark-text);
    position: relative;
}

/*--------------------------------------------------
  Footer
--------------------------------------------------*/
footer {
    background-color: white;
    color: var(--dark-text);
}

.footer-stamp, .footer-logo, .footer-briefed {

}

.footer-stamp img, .footer-logo img, .footer-briefed img {
    width: 100%;
}

.footer-briefed {
    width: 300px;
}

.footer-stamp {
    width: 160px;
}

.footer-logo {
    width: 100px;
}

/*--------------------------------------------------
  Responsiveness & Custom Grid
--------------------------------------------------*/

/* Responsive: min-width */

@media (min-width: 577px) {
    .mobile-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-tablet-only {
        display: none;
    }
    
    .col-md-1-of-7 {
        flex: 0 0 auto;
        width: 14.2857%;
    }
    
    .col-md-2-of-7 {
        flex: 0 0 auto;
        width: 28.5714%;
    }
}

@media (min-width: 993px) {
    #hero {
        min-height: 550px;
        max-height: 700px;
    }
    
    .hero-content {
        margin-top: 25px;
        margin-left: -50px;
    }
    
    #skills {
        min-height: 750px;
        max-height: 900px;
    }            
    
    .redaction-row {
        margin-right: 3rem;
    }
}

@media (min-width: 1201px) {          

}        

@media (min-width: 1401px) {          
    #timeline > .container {
        max-width: 1100px;
    }
    #skills {
        background-size: 100% 100%;
        max-height: 1400px;
    } 
    #intelTabs > li:first-of-type {
        margin-left: 17% !important;
    }   
}

@media (min-width: 1601px) {          
    #mission-awaits {
        /*
        margin-top: -65px !important;
        padding-top: 7rem !important;
        */
    }
    #timeline > .container {
        max-width: 1375px;
    }
    .timeline-title {
        max-width: 1500px;
        margin: 0px auto;
    }
    .skills-title {
        padding-top: 4rem !important;
        padding-left: 6rem;
        padding-right: 6rem;
        max-width: 1500px;
        margin: 0px auto;
    }
    #intelligence-tabs {
        /*max-width: 1200px;
        margin: 0px auto;*/
    }
    #intelTabs > li:first-of-type {
        margin-left: 19% !important;
    }   
}

@media (min-width: 2200px) {          
    #intelTabs > li:first-of-type {
        margin-left: 23% !important;
    }   
}

@media (min-width: 2800px) {          
    #intelTabs > li:first-of-type {
        margin-left: 28% !important;
    }   
}

@media (min-width: 3400px) {          
    #intelTabs > li:first-of-type {
        margin-left: 33% !important;
    }   
}

@media (min-width: 4000px) {          
    #hone-skills {
        padding-top: 12rem !important;
        padding-bottom: 7rem !important;
        margin-top: -100px;
    }
}



/* Responsive: max-width */

@media (max-width: 1200px) {
    #upcoming-mission .container, 
    #mission-awaits .container,
    #timeline .container,
    #hone-skills .container,
    #why-participate .container {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    #hero {
        /* background-image: url('../img/spy-mobile.svg');
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: cover; */
        height: 75vh;
        min-height: 490px;
    }
    
   .redacted-container {
        transform: none !important;
        margin-bottom: 2rem;
    }
    
    .redaction-row {
        justify-content: center !important;
    }        

    #upcoming-mission .container {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    #executive-order {
        visibility: hidden;
        max-height: 125px;
    }
}

@media (max-width: 768px) {
    .mobile-tablet-hide {
        display: none;
    }
    
    #mission-awaits .container {
        overflow: hidden;
    }
    
    h1 {
        font-size: 1.75rem;
    }

    #hero {
        height: 65vh;
        background-position: bottom right;
    }

    #intel, #intel .row {
        padding-left: 0px !important;
    }
    
    .intel-card h3 {
        rotate: 1deg;
        padding-top: 1rem !important;
        margin-bottom: 0px;
        width: 30rem;
        overflow: hidden;
        margin-left: -2rem !important;
    }

    .intel-card {
        background: white !important;
    }

    .redaction-row h2, .redacted-text span {
        font-size: 1.5rem;
    }
    
    .nav-tabs-spy .nav-link {
        padding: 0.25rem 0.75rem;
        font-size: 0.9rem;
    }

    .nav-tabs-alt .nav-link {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-tabs-spy, .nav-tabs-alt {
        padding-left: 0px;
    }

    .nav-tabs-spy .nav-item {
        margin-right: 0px;
        margin-left: 0px;
    }

    .nav-tabs-alt .nav-item {
        margin-right: 0px;
        margin-left: 0px;
    }
    
    .ind-eagle, .team-eagle {
        max-width: 50%;
    }
    
    .timeline-button {
        margin-bottom: 75px;
        text-align: center;
    }
    
    .timeline-dates {
        padding: 10px 0px 0px 0px !important;
    }
    
    .timeline-dates-solo {
        margin-top: -40px !important;
    }
    
    .timeline-title img {
        width: 160%;
        overflow: hidden;
    }
    
    #skills {
        min-height: initial;
    }

    .skills-title {
        padding-top: 0px !important;
    }
    
    .skills-title img {
        width: 150%;
        margin-left: -25%;
        overflow: hidden;
    }

    /* Webkit/iPhone element background fix */
    .nav-tabs-spy .nav-link, .nav-tabs-alt .nav-link {
        /* Set the border image properties */
        border-image-source: url('../img/nav-tab.svg');
        border-image-slice: 1 fill; /* Adjust '15' to fit your SVG's design */
        border-image-width: auto;

        /* Remove the old background properties */
        background-image: none !important;
        background-size: initial;
        background-repeat: initial;

        /* Keep your original height and width */
        height: 30px;
        width: auto;
        
        /* Prevents any actual background color from bleeding through */
        background-clip: padding-box; 
    }
    .nav-tabs-alt .nav-link.active span {
        background-size: cover !important;
        padding: 0rem 0.3rem !important;
    }
    .nav-tabs-spy .nav-link, .nav-tabs-alt .nav-link {
        margin-left: 0px;
        margin-right: 0px;
    }
    .nav-tabs-spy .nav-link {
        padding: 0.1rem 0.85rem 0.1rem 0.85rem;
    }
    .nav-tabs-alt .nav-link {
        padding: 0.3rem 0.85rem 0.1rem 0.85rem;
    }
    .nav-tabs-alt .nav-link span {
        font-size: 0.8rem;
    }
    .redacted-text::after {
        background-size: cover !important;
    }

    #executive-order {
        display: none;
    }
}

@media (max-width: 576px) {
    html {
        background: black;
    }
    
    #hero {
        height: 65vh;
        background-position: bottom right;
    }
    
    
    .btn-practice {
        margin-top: 1rem !important;
        padding: 0.5rem 1rem !important;
    }

    .nav-tabs-spy .nav-link, .nav-tabs-alt .nav-link {
        margin-left: 0px;
        margin-right: 0px;
    }

    #agent-toolkit {
        overflow-x: hidden;
    }    

    #upcoming-mission h1, #timeline h1 {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .nav-tabs-spy .nav-link, .nav-tabs-alt .nav-link {
        margin-left: -3px;
        margin-right: -3px;
    }    
}

@media (max-width: 390px) {
    .nav-tabs-spy .nav-link, .nav-tabs-alt .nav-link {
        margin-left: -5px;
        margin-right: -4px;
    }    
}




/*--------------------------------------------------
  Evergreen Styles
--------------------------------------------------*/
.logo-secondary {
    overflow: hidden;
}

.logo-secondary img {
    max-height: 110px;
    transform: rotate(9deg);
}

.logo-cisa {
    overflow: hidden;
}

.logo-cisa img {
    max-height: 110px;
    max-width: 100%;
}

.gradient-section {
    background: linear-gradient(90deg, rgba(76,15,22,1) 0%, rgba(14,26,37,1) 100%);
    color: #ffffff;
}

.gradient-dark {
    background: linear-gradient(91deg, rgba(55,5,13,1) 0%, rgba(27,50,72,1) 100%);
    color: #ffffff;
}















/*--------------------------------------------------
  Page -> Intel
--------------------------------------------------*/
#intelligence {
    background-image: url(../img/media-bg.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    /*
    background-image: url(../img/hone-skills.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-position-x: 20%;
    background-size: cover;
    */
}

.intel-title {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.intel-title img {
    max-width: 400px;
}

@media (max-width: 768px) {
    .intel-title img {
        margin-bottom: 3rem !important
    }
}

@media (max-width: 576px) {
    .intel-title img {
        max-width: 85%;
    }
}


.intel-tabs-nav {
    background: #000000;
    /* background: linear-gradient(91deg, rgba(55,5,13,1) 0%, rgba(27,50,72,1) 100%); */
    border-bottom: none;
}

.intel-tabs-nav .nav-item {
    margin-right: 5px;
}

.intel-tabs-nav .nav-link {
    background-color: #d9dcdf;
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
}

.intel-tabs-nav .nav-link.active {
    background-color: #fff;
    color: #000;
}

#intelligence-tabs .tab-content {
    max-width: 1100px;
    margin: auto;
}

#intelligence-tabs .tab-content a {
    color: black;
}

#intelligence-tabs .tab-content a:hover {
    
}

#intelligence-tabs .tab-pane p {
    margin-bottom: 5px;
}

#intelligence-tabs button.nav-link {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

#intelligence-tabs button.nav-link h5 {
    margin-bottom: 0px !important;
}

#intelligence-continued {
    position: relative;
    background-image: url(../img/intel-footer-bg.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    padding-bottom: 7rem !important;
    margin-bottom: -40px;
    z-index: 9999;
    /*
    position: relative;
    background-image: url(../img/hone-skills.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    z-index: 9999;
    */
}

/* #intelligence-continued {
    position: relative;
}

#intelligence-continued:after {
    content: '';
    background-image: url(../img/border-paper-bottom-black.png);
    background-repeat: repeat-x;
    background-position: top center;
    background-size: contain;
    height: 32px;
    width: 100%;
    position: absolute;
    bottom: -31px;
    left: 0px;
} */

@media (max-width: 768px) {
    #intelligence {
        margin-top: -50px;
    }
    
    .intel-tabs-nav {
        /* background: rgb(29 48 69);
        background: linear-gradient(180deg, rgb(29 48 69) 51%, rgb(37 39 55) 51%); */
        background: black;
        background: linear-gradient(180deg, rgb(34 34 34) 51%, rgb(56 55 55) 51%);
    }

    #intelligence-tabs button.nav-link {
        padding-bottom: 2px !important;
    }

    #intelligence-tabs button.nav-link h5 {
        font-size: 16px;
    }

    #intelligence-continued {
        background-position-x: 62%;
    }
}

@media (max-width: 576px) {
    #intelligence-tabs button.nav-link h5 {
        font-size: 0.9rem;
    }
}

@media (max-width: 390px) {
    #intelligence-tabs button.nav-link h5 {
        font-size: 0.8rem;
    }
}







/*--------------------------------------------------
  Page -> Media
--------------------------------------------------*/
#media {
    border-top: 4px solid #d93a4a;
}

#media-title  {
    position: absolute;
    top: -123px;
    left: 0%;
    width: 400px;
    height: 120px;
    z-index: 5;
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #media-title{
        top: -100px !important;
        left: 25px !important;
        max-width: 338px;
    }
}

@media (max-width: 768px) {
    #media {
        margin-top: 30px !important;
    }
    #media-title {
        position: relative !important;
        top: 40px !important;
        margin: 0px auto !important;
        padding: 0px 12px;
        width: 100%;
        height: auto;
        z-index: 5;
        max-width: 450px;
    }
}

.tab-content-media .tab-content-media-left p {
    max-width: 500px;
}

.tab-content-media .tab-content-media-left img {
    max-width: 300px;
}

.pc1-logo, .pc3-logo, .pc4-logo {
    max-width: 225px !important;    
}

.pc2-logo, .pc5-logo, .pc6-logo {
    max-width: 270px !important;    
}

@media (max-width: 768px) {
    .pc1-logo, .pc2-logo, .pc3-logo, .pc4-logo, .pc5-logo, .pc6-logo, .pc7-logo {
        margin: 0px auto !important;
        display: block;
    }
}

.media-tabs-ext {
    background: linear-gradient(91deg, rgb(76 16 23) 0%, rgb(14 26 37) 100%);
}

.media-tabs-ext * {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.video-thumbnail {
    /* filter: saturate(0); */
    text-decoration: none;
}

.video-thumbnail:hover {
    /* filter: saturate(1); */
}

@media (max-width: 768px) {
    .media-tabs-ext button.nav-link {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

@media (max-width: 360px) {
    .media-tabs-ext button.nav-link {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }
}

#media-faq {
    background-image: url(../img/hone-skills.svg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    color: var(--dark-text);
    position: relative;
}

@media (max-width: 420px) {
    #media-faq {
        background-position-x: 7%;
    }
}

/* play button overlay styles */
a.video-thumbnail {
  position: relative;
  display: block;
  text-decoration: none;
}

a.video-thumbnail:after {
  content: ''; /* Pseudo-elements must have 'content' */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cover the entire <a> tag */
  
  background-color: rgba(255, 255, 255, 0.2); /* 50% black, semi-transparent */

  /* Hide it by default */
  opacity: 0;
  
  /* Add a smooth fade-in/out transition */
  transition: opacity 0.3s ease;
  
  /* Sits above the image but below the icon and text */
  z-index: 5; 
}

a.video-thumbnail:before {
  content: '';
  position: absolute;
  
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  background-image: url('../img/icon-play.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  
  /* Set the size of your icon */
  width: 77px;
  height: 77px;
  
  /* Hide it by default */
  opacity: 0;
  
  /* Add a smooth fade-in/out transition */
  transition: opacity 0.3s ease;
  
  /* Sits on top of the dark overlay */
  z-index: 10;
}

/* on hover, show the overlay */
a.video-thumbnail:hover:before,
a.video-thumbnail:hover:after {
  opacity: 1;
}







/*--------------------------------------------------
  Page -> Workshops
--------------------------------------------------*/
.workshops-hero-title {
    position: absolute;
    top: -145px; /* Adjust to overlap the top border */
    left: 0%;
    width: 400px; /* Adjust width as needed */
    height: 120px; /* Adjust height as needed */
    z-index: 5;
}

#workshops-hero {
    margin-top: 4rem !important;
}

#workshops-hero.gradient-section {
    border-top: 4px solid #d93a4a;
}

#workshops-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#workshops-hero p {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 500px;
}

#workshops-hero .workshop-icon img {
    width: 200px;    
    max-width: 80%;
}

#workshop-details p {
    font-size: 1rem;
}

#workshop-details li {
    font-size: 1rem !important;
}

#workshop-details li::marker {
    font-size: 1.1rem;
}

#workshop-details img {
    filter: contrast(2);
}

#workshops-request {
    /*
    background-image: url(../img/workshops-request-bg.svg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    padding-bottom: 7rem !important;
    */
}

#workshops-request h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#workshops-request p {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 500px;
}

#workshops-request .hanging-indent {
    padding-left: 1rem; /* Indent the entire block */
    text-indent: -1rem; /* Pull back the first line */
}

@media (max-width: 768px) {
    #workshops-hero {
        margin-top: 0rem !important;
    }

    .workshops-hero-title {
        position: relative !important;
        top: 10px !important;
        margin: 0px auto !important;
        padding: 0px 25px;
        width: 100%;
        height: auto;
        z-index: 5;
        max-width: 450px;
    }

    #workshops-hero p {
        max-width: 100%;
    }
    
    #workshop-details img {
        max-width: 172px;
        margin-bottom: 20px;
    }
    
    #workshops-request {
        /*
        padding-bottom: 12rem !important;
        margin-bottom: -6rem !important;
        */
    }
    
    #workshops-request .workshops-request-left p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {

}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #workshops-hero {
        margin-top: 6rem !important;
    }
    .workshops-hero-title {
        top: -95px !important;
        left: 25px !important;
        max-width: 355px;
    }
}





/*--------------------------------------------------
  Page -> Game Of The Month
--------------------------------------------------*/
#gom {

}

.gom-title {
    overflow: hidden;
}

.gom-title img {
    width: 80%;
}

#gom-hero.hero-gradient-section {
    background: linear-gradient(90deg, rgba(76,15,22,1) 0%, rgba(14,26,37,1) 100%);
    color: #ffffff;
    padding-top: 6rem;
    padding-bottom: 5rem;
    border-top: 4px solid #d93a4a;
    position: relative;
}

.gom-hero-title {
    position: absolute;
    top: -120px; /* Adjust to overlap the top border */
    left: 0%;
    width: 400px; /* Adjust width as needed */
    height: 120px; /* Adjust height as needed */
    z-index: 5;
}

#gom-hero.hero-gradient-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#gom-hero.hero-gradient-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.features-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.features-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    margin-right: 12px;
    margin-top: 8px;
    flex-shrink: 0;
}

.features-list li {
    list-style-position: inside;
    text-indent: -20px;
    padding-left: 20px;
}

#why-participate {
    background: #f8f8f9;
}

#why-participate img {
    max-width: 145px;
}

#gom-archive {
    background-image: url('../img/gom-eagle-bg.svg');
    background-size: cover;
    background-position: bottom right;
    position: relative;
    margin-bottom: -50px;
    overflow-x: hidden;
}

/* #gom-archive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(248 248 250);
    z-index: 1;
} */

#gom-archive a {
    text-decoration: none;
}

#gom-game {
    background: #f8f8fa;
}

#gom-game p {
    max-width: 600px;
}

#gom-game .gom-icon {
    max-width: 48px;
}

#gom-game ul {
    /* list-style: none;
    padding-left: 0; */
}

.gom-game-card img {
    width: 500px;
    max-width: 100%;
}

#gom-practice .btn {
    font-family: inherit;
    padding: 3px 40px 6px 40px;
}

@media (max-width: 768px) {
    #gom {
        margin-top: -50px;
    }

    .gom-title img {
        width: 150%;
        margin-left: -20% !important;
        margin-top: 15px;
    }
    #gom-hero.hero-gradient-section {
        padding-top: 8rem;
    }
    #gom-hero.hero-gradient-section .row > div {
        margin-bottom: 2rem;
    }
    .features-list li::before {
        margin-top: 6px;
    }
    #gom-hero.hero-gradient-section p {
        max-width: 100%;
    }
    .gom-hero-title {
        position: relative !important;
        top: 50px !important;
        margin: 0px auto !important;
        margin-top: -25px !important;
        padding: 0px 25px;
        width: 100%;
        height: auto;
        z-index: 5;
        max-width: 550px;
    }
    #gom-archive {
        background-size: cover;
        background-position: top left;
        background-position-x: 20%;
    }
    #gom-leaderboard .leaderboard-item {
        border: 3px solid #e5e5e5;
        margin-bottom: 20px;
        padding-top: 20px !important;
        background: #f4f4f4;
    }
    #gom-leaderboard .leaderboard-item p:first-of-type {
        font-weight: bold;
    }
    #gom-leaderboard .leaderboard-item p:last-of-type:before {
        content: "Score: ";
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #gom-hero {
        margin-top: 5rem !important;
    }
    .gom-hero-title {
        top: -85px !important;
        left: 25px !important;
    }
}








/*--------------------------------------------------
  Page -> Hack Of Fame
--------------------------------------------------*/
.hof-hero-title {
    position: absolute;
    top: -120px; /* Adjust to overlap the top border */
    left: 0%;
    width: 400px; /* Adjust width as needed */
    height: 120px; /* Adjust height as needed */
    z-index: 5;
}

#hof-hero.gradient-section {
    border-top: 4px solid #d93a4a;
}

#hof-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#hof-hero p {
    font-size: 1rem;
    line-height: 1.55;
}

#hof-details p {
    font-size: 1rem;
}

#hof-details li::marker {
    font-size: 1.1rem;
}

#hof-details img {
    filter: contrast(2.0);
}

#hof-members {
    background-image: url(../img/hof-members-bg.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: cover;
}

.hof-members-table {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 2rem;
}

.hof-members-header {
    font-weight: bold;
    text-transform: uppercase;
    color: #adb5bd;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.hof-members-row {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 0;
    align-items: center;
}

.hof-members-row:last-child {
    border-bottom: none;
}

#hof-spotlight h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#spotlight-caption-details {
    min-height: 44px;
}

@media (min-width: 1600px) {
    #spotlight-caption-details {
        min-height: 80px;
    }
}

.spotlight-thumbnail {
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 5px;
    padding: 2px;
}

.spotlight-thumbnail:hover, 
.spotlight-thumbnail.active {
    border-color: #0d6efd; /* Bootstrap primary color */
}

#spotlight-image {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.publicity-item {
    color: black;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.publicity-item:hover {
    color: black;
    transform: translateY(-5px);
}

.publicity-image-placeholder {

}

.publicity-source {
    color: #222222;
    font-size: 0.8rem;
}


@media (max-width: 768px) {
    .hof-hero-title {
        position: relative !important;
        top: 25px !important;
        margin: 0px auto !important;
        padding: 0px 25px;
        width: 100%;
        height: auto;
        z-index: 5;
        max-width: 450px;
    }

    #hof-hero p {
        max-width: 100%;
    }
    
    #hof-details img {
        width: 175px;
        margin-bottom: 25px;
    }
    
    #hof-members {
        background-image: url(../img/hof-members-bg.svg);
        background-repeat: no-repeat;
        background-position: bottom center;
        /* background-size: contain; */
    }
    
    .hof-members-table {
        padding: 1rem;
    }
    .hof-members-row {
        align-items: flex-start;
    }
    .hof-members-row .col-9,
    .hof-members-row .col-12 {
        text-align: left;
    }
    .hof-members-row .col-12 {
        padding-top: 0.5rem;
        font-size: 0.9rem;
        color: #ced4da;
    }
    
    #hof-publicity > .container > .row {
        text-align: center;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #hof-hero {
        margin-top: 5rem !important;
    }
    .hof-hero-title {
        top: -90px !important;
        left: 25px !important;
    }
}

/* Styles for member pop-ups */
#memberModal .modal-content {
    background-color: #f8f9fa;
    border: none;
}

#memberModal .modal-avatar-col {
    background: linear-gradient(135deg, rgba(76,15,22,1) 0%, rgba(14,26,37,1) 100%);
}

#memberModal .modal-body {
    color: #212529;
}

#memberModal #modal-avatar {
    border-radius: 50% !important;
}

#memberModal #modal-name {
    font-size: 2.5rem;
}

#memberModal #modal-handle {
    font-size: 1.25rem;
    color: #555555;
    margin-top: -15px;
    margin-bottom: -2px;
    font-weight: bold;
}

#memberModal #modal-competitions {
    padding-left: 14px;
}

#memberModal #modal-competitions li::before {
    content: "•";
    color: #6c757d;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}