/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* Base Element Resets & Typography */
a:link,
a:active,
a:visited {
    color: #F19C0F;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    /* Default size link */
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: none;
}

td {
    color: #ffffff;
    /* Keeping white text on black background */
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    /* Increased base size */
    line-height: 1.6;
    /* Better readability */
    font-weight: normal;
}

/* New Navigation Menu Styles */
.main-nav {
    display: flex;
    justify-content: space-around;
    /* Distribute items evenly */
    align-items: center;
    background-color: #000;
    /* Match background */
    padding: 15px 0;
    width: 100%;
}

.main-nav a {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 7px;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    /* Prepare for hover */
}

.main-nav a:hover,
.main-nav a.active {
    color: #F19C0F;
    border-bottom: 2px solid #F19C0F;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.box_title {
    font-family: 'Montserrat', sans-serif;
    color: #F19C0F !important;
    /* Force Gold */
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* Paragraph Spacing */
p {
    margin-bottom: 15px;
}

/* Remove List Styling */
ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

ul li {
    margin-bottom: 10px;
}

form {
    margin-bottom: 0;
    margin-top: 0;
    width: 140px;
    height: 20px;
    background-color: transparent;
    font-size: 11px;
    color: #F19C0F;
    font-weight: normal;
    font-family: Tahoma, Verdana, Arial, Helvetica;
}

.input {
    width: 140px;
    height: 20px;
    background-color: transparent;
    border-width: 0px;
    font-size: 10px;
    color: #F19C0F;
    font-weight: normal;
    font-family: Tahoma, Verdana, Arial, Helvetica;
}

.input_butt {
    width: 60px;
    height: 20px;
    border: 1px;
    border-color: #ffffff;
    background-color: #F19C0F;
    font-size: 11px;
    color: #000000;
    font-weight: normal;
    font-family: Tahoma, Verdana, Arial, Helvetica;
}

.title {
    color: #F19C0F;
    font-size: 13;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

.sub_title {
    color: #F19C0F;
    font-size: 11;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

.box_title {
    color: #000000;
    font-size: 11;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

BODY {
    scrollbar-arrow-color: #F19C0F;
    scrollbar-track-color: #000000;
    scrollbar-face-color: #000000;
    scrollbar-shadow-color: #F19C0F;
    scrollbar-highlight-color: #F19C0F;
    scrollbar-darkshadow-color: #000000;
    scrollbar-3dlight-color: #000000;
    background-color: #000000;
    font-size: 16px;
    font-weight: normal;
    color: #e0e0e0;
    /* Slightly softer white for body text */
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

/* Responsive Additions */
img {
    max-width: 100%;
    height: auto;
}

#TableContent {
    width: 100% !important;
    max-width: 1440px;
}

/* Mobile First: Default Styles */
.textContent {
    text-align: left;
    padding: 15px;
    /* Add padding for readability on mobile */
}

/* Desktop and Tablet: Center Text */
@media screen and (min-width: 768px) {
    .textContent {
        text-align: center;
        padding: 0;
        /* Reset padding if not needed, or keep it */
    }
}

/* Footer Alignment and Color Fix */
tr[bgcolor="#f2f6ff"] td {
    text-align: center !important;
    color: #000000;
}

table[bgcolor="#f2f6ff"] {
    width: 100% !important;
}

/* Mobile Navigation Reflow & Table Reset */
@media screen and (max-width: 768px) {

    /* 1. Reset Table Structure for Main Content */
    #TableContent,
    #TableContent tbody {
        display: block;
        width: 100% !important;
    }

    /* 2. Rows become blocks */
    #TableContent tr {
        display: block;
        width: 100% !important;
    }

    /* 3. Cells become blocks by default (for content) */
    /*#TableContent td {*/
    /*    display: block;*/
    /*    width: 100% !important;*/
    /*    box-sizing: border-box;*/
    /*}*/

    /* 4. Nav Row Exception: Flexbox for Wrapping */
    #TableContent>tbody>tr:nth-child(2),
    #TableContent>tr:nth-child(2),
    .nav-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0;
        margin: 0;
    }

    /* Nav Cells: Allow them to be auto-width for wrapping */
    #TableContent>tbody>tr:nth-child(2)>td,
    #TableContent>tr:nth-child(2)>td,
    .nav-row>td {
        display: block !important;
        width: auto !important;
        padding: 2px;
        flex: 0 1 auto;
    }

    /* 5. Footer Table Reset */
    table[bgcolor="#f2f6ff"],
    table[bgcolor="#f2f6ff"] tbody {
        display: block;
        width: 100% !important;
    }

    table[bgcolor="#f2f6ff"] tr {
        display: block;
        width: 100% !important;
    }

    /* Footer Nav Row (First Row): Flex Wrap */
    table[bgcolor="#f2f6ff"] tr:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    table[bgcolor="#f2f6ff"] tr:first-child td {
        display: block !important;
        width: auto !important;
        
    }

    /* Footer Copyright Row (Last Row) */
    table[bgcolor="#f2f6ff"] tr:last-child td {
        text-align: center !important;
        padding: 10px;
    }
}