/* Common CSS styles */
:root {
    --my-white: rgb(90, 14, 14);
    --red: #f10606;
    --red-shadow: #c10505;
    --black: #121014;
    --cream: #f5f3f0;
    --cream-dark: #ede8e3;
    --light-red: rgba(241, 6, 6, 0.1);
    --medium-red: rgba(241, 6, 6, 0.2);
}

/* Global body and general styles */
.general {
    background-color: var(--cream);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--black);
    min-height: 100vh;
}

/* Enhanced Navigation styles */
.link_bar {
    background-color: var(--my-white);
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(90, 14, 14, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tab_color {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 4px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
}

.tab_color:hover {
    background-color: var(--red-shadow);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(241, 6, 6, 0.3);
}

/* Enhanced Container and layout styles */
.container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cream-dark);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

.row {
    padding: 30px 40px;
    background: transparent;
}

.col1 {
    text-align: center;
    color: var(--black);
}

/* Enhanced Typography */
.headText {
    font-variant: small-caps;
    font-size: 28px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.nameText {
    font-size: 22px;
    font-weight: 600;
    color: var(--my-white);
    margin-bottom: 15px;
}

.bioText {
    font-size: 16px;
    color: #444444;
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Enhanced Image styles - consistent formatting for all images */
.img {
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 275px;
    height: 350px;
    object-fit: cover;
    border: 2px solid var(--cream-dark);
}

/* Logo images - maintain aspect ratio and custom sizing */
.logo {
    max-width: 100%;
    height: auto;
}

/* Training/content images - flexible sizing for non-portrait content */
.training-img {
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: auto;
    height: 250px;
    object-fit: cover;
    border: 2px solid var(--cream-dark);
    margin: 10px;
}

/* Removed hover animation for consistent formatting */

/* Enhanced button and link styles */
a:link, a:visited {
    background-color: var(--red);
    color: white;
    padding: 12px 25px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

a:hover, a:active {
    background-color: var(--red-shadow);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(241, 6, 6, 0.3);
}

/* Force all buttons to use red theme */
button, .button, input[type="button"], input[type="submit"] {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background-color: var(--red-shadow);
}

/* Enhanced utility classes */
.head {
    text-align: center;
    margin-bottom: 40px;
}

.head h1 {
    color: var(--red);
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.head p {
    color: #666666;
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 30px;
}

/* Enhanced form elements */
.instructionText {
    font-size: 17px;
    background-color: transparent;
    padding: 15px 0;
    margin: 20px 0;
    color: var(--black);
}

.redText {
    color: var(--red);
    font-weight: 600;
}

.dateText {
    font-size: 18px;
    font-weight: 600;
    color: var(--my-white);
    background-color: var(--cream-dark);
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid var(--red);
}

/* Enhanced Footer styles */
.footer {
    background-color: var(--my-white);
    padding: 40px 30px 20px;
    color: white;
    border-radius: 12px 12px 0 0;
    margin-top: 50px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.footer_banner {
    background-color: var(--black);
    padding: 60px 30px;
    margin-bottom: 0px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: 8px;
}

.copyright {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    border-radius: 0 0 8px 8px;
}

/* Enhanced Social media icons */
.fa {
    padding: 0;
    font-size: 24px;
    width: 50px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    margin: 8px 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fa:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Keep original social media colors but with theme override option */
.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-twitter {
    background: #55ACEE;
    color: white;
}

.fa-instagram {
    background: #125688;
    color: white;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .link_bar {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .tab_color {
        width: 100%;
        max-width: 200px;
        margin: 3px;
    }
    
    .row {
        padding: 20px 25px;
    }
    
    .headText {
        font-size: 24px;
    }
    
    .nameText {
        font-size: 20px;
    }
    
    .head h1 {
        font-size: 2.2em;
    }
    
    .container {
        margin: 15px;
        border-radius: 8px;
    }
}

/* Enhanced special containers */
.mission-container {
    background-color: white;
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    padding: 30px;
    margin: 30px auto;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Enhanced list styles */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #444444;
    line-height: 1.6;
}

ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 18px;
}

/* Enhanced iframe styles */
iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--cream-dark);
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

/* Enhanced table styles for login page */
table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--cream-dark);
    color: var(--black);
}

table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--cream-dark);
}

table tr:hover {
    background-color: var(--light-red);
}

table th {
    background-color: var(--cream-dark);
    color: var(--my-white);
    font-weight: 600;
}

table td strong {
    color: var(--red);
}

/* Fix for navigation centering issue */
.link_bar button {
    vertical-align: middle;
    line-height: 1;
}

/* Enhanced mark/highlight styling */
mark {
    background-color: var(--red);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Additional text styling */
h1, h2, h3, h4, h5, h6 {
    color: var(--red);
}

h3 {
    color: var(--my-white);
}

/* Clean button focus states */
button:focus, a:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Email link styling - remove button appearance */
.email-link {
    background: none !important;
    color: var(--red) !important;
    padding: 0 !important;
    border: none !important;
    text-decoration: underline !important;
    font-weight: normal !important;
    display: inline !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

.email-link:hover {
    color: var(--red-shadow) !important;
    background: none !important;
    text-decoration: underline !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Social media icons container */
.social-icons {
    margin: 20px 0;
    text-align: center;
}

/* Improved form styling */
input, textarea, select {
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(241, 6, 6, 0.2);
}