:root {
    --army-green: #353d16;
    --army-green-light: #4b5320;
    --army-gold: #ffcc00;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
    --border-color: #3d3d3d;
    --error-red: #b22222;
    --stencil-font: 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--dark-grey);
    background-image: radial-gradient(#2a2a2a 2px, transparent 2px);
    background-size: 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--white);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

/* Card Structure */
.card {
    background: #e8e8e8;
    width: 100%;
    max-width: 380px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    text-align: center;
    border: 1px solid #555;
}

.header { 
    background: linear-gradient(135deg, #222 0%, #333 100%);
    padding: 40px 20px; 
    border-bottom: 4px solid var(--army-gold);
}

.profile-img { 
    width: 110px; height: 110px; 
    border-radius: 8px; 
    border: 2px solid var(--army-gold); 
    margin-bottom: 15px; 
    object-fit: cover;
}

h1 { margin: 5px 0; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 2px; font-family: var(--stencil-font); color: white; }

.rank { 
    color: var(--army-gold); 
    font-weight: 800; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    background: rgba(0,0,0,0.3);
    padding: 2px 10px;
    display: inline-block;
}

.content { padding: 25px; color: #333; }

/* Buttons */
.contact-btn {
    display: block; 
    background: var(--army-green); 
    color: var(--white); 
    text-decoration: none;
    padding: 16px; 
    margin: 15px 0; 
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer; 
    border: 1px solid #222; 
    width: 100%; 
    font-size: 0.9rem;
    transition: all 0.2s;
}

.contact-btn:hover { background: var(--army-green-light); transform: translateY(-1px); }

/* Modal Styles */
#applyModal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); 
    justify-content: center; 
    align-items: center;
    z-index: 1000; 
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #f4f4f4; 
    color: #333;
    padding: 25px; 
    border-radius: 4px; 
    width: 100%;
    max-width: 400px; 
    border: 3px solid var(--army-green);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 { margin-top: 0; font-size: 1.2rem; }
.modal-content label { display: block; margin-top: 10px; font-weight: bold; font-size: 0.8rem; }
.modal-content input, .modal-content select, .modal-content textarea {
    width: 100%; padding: 8px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px;
}

.form-row { display: flex; gap: 10px; }
.form-group-small { flex: 1; }
.form-group-large { flex: 2; }

.hp-field { display: none; } /* Honeypot */

.captcha-container { margin-top: 15px; background: #eee; padding: 10px; border-radius: 4px; }
.captcha-container span { font-weight: bold; font-size: 0.9rem; }
#captcha-input { width: 60px; display: inline-block; }

.cancel-link { background:none; border:none; color:var(--error-red); cursor:pointer; width:100%; margin-top: 10px; font-weight: bold; font-size: 0.8rem; }

/* Footer & Study Guide */
.site-footer { margin-top: 40px; text-align: center; width: 100%; max-width: 380px; }
.footer-address { font-size: 0.8rem; margin-bottom: 25px; color: #aaa; }

.study-guide-title {
    font-family: var(--stencil-font); 
    color: var(--army-gold); 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.study-guide-container {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background: #222;
    overflow: hidden;
    border-radius: 4px;
}

.footer-nav { display: flex; background: var(--dark-grey); border-bottom: 2px solid var(--army-gold); }
.footer-tab-btn {
    flex: 1; padding: 12px 5px; border: none; background: none; color: var(--white);
    font-family: var(--stencil-font); font-size: 0.65rem; text-transform: uppercase; cursor: pointer;
}
.footer-tab-btn.active { background: var(--army-gold); color: var(--dark-grey); }

.study-content { display: none; padding: 20px; background: #2a2a2a; text-align: left; min-height: 180px; }
.study-content.active-panel { display: block; }

.guide-item h3 { color: var(--army-gold); font-size: 0.9rem; border-bottom: 1px solid var(--army-green); padding-bottom: 5px; margin-bottom: 10px; }
.creed-text { font-size: 0.75rem; line-height: 1.5; font-style: italic; color: #ccc; margin: 0; }

.social-icons { margin: 20px 0; display: flex; justify-content: center; gap: 20px; }
.social-icons a { color: var(--white); font-size: 1.2rem; transition: 0.3s; }
.social-icons a:hover { color: var(--army-gold); }
.footer-links { font-size: 0.7rem; color: #888; text-transform: uppercase; margin-top: 15px; border-top: 1px solid #333; padding-top: 15px; }
.footer-links a { color: var(--army-gold); text-decoration: none; }
.copyright-text { font-size: 0.6rem; opacity: 0.6; margin-top: 10px; }




/* Updated Rank Item to support multiple images */
.rank-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border-left: 3px solid var(--army-gold);
    margin-bottom: 5px;
}

.rank-item span {
    width: 35px;
    color: var(--army-gold);
    font-weight: bold;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Container for one or more images */
.rank-images {
    display: flex;
    gap: 8px;
    margin: 0 15px;
    min-width: 60px; /* Ensures space for two icons if needed */
    justify-content: center;
}

.rank-images img {
    width: 25px;
    height: auto;
    filter: drop-shadow(0 0 1px white);
}

.rank-item strong {
    color: var(--white);
    letter-spacing: 0.5px;
} 
