/*====================================
=          0. GLOBAL STYLES          =
====================================*/

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: #008356;
    text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
    
}

.container {
    width: 80%;
    max-width: 948px;
    margin: auto;
    text-align: left;
    overflow: visible;
}

/*====================================
=            1. MASTHEAD             =
====================================*/

#masthead {
    margin: 0;
    width: 100%;
    text-align: left;
    overflow: visible;
    padding: 40px 0;
}

header {
    background: #333;
    color: #fff;
    min-height: 70px;
    border-bottom: #999 3px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%; /* Ensure header spans the full width */
}

.extended-graphic {
    left: -100px; /* Adjust as needed */
    top: 0;
    margin-top: 4px;
    height: 49px;
    width: 10%; /* Adjust as needed */
    background: url('../images/logo_ex.png') no-repeat left center;
    background-size: cover;
    z-index: 0;
}

#branding {
    display: flex;
    flex-direction: column; /* Change to column to stack elements */
    align-items: left; /* Center align elements horizontally */
    position: relative; 
}

#logo {
    height: 50px;
    margin: 30px 10px 0 0;
}

#branding h1 {
    margin: 0;
    font-size: 24px;
    line-height: 0.8;
}

#branding a {
    color: #fff;
    text-decoration: none;
}

.tagline {
    font-size: 14px;
    color: #0ca772;
    margin: 0 0 0 38px;
    padding: 0;
    font-weight: 400;
    text-transform: uppercase;
    text-align: left; /* Center align the tagline */
}

/*====================================
=           2. NAVIGATION            =
====================================*/

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
}

header ul {
    padding: 0;
    list-style: none;
}

header ul li {
    display: inline;
    padding: 0 6px;
}

.desktop-nav {
    display: flex;
    justify-content: flex-end;
}

.desktop-nav li {
    padding: 0 14px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    text-align: center;
}

.mobile-nav li {
    padding: 10px 0;
    text-align: left;
}

header #branding {
    float: left;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #5ce4a0;
    font-weight: bold;
}

header a:hover {
    color: #5ce4a0;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 4px;
    width: 25px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s;
}

#nav-links {
    display: flex;
    justify-content: flex-end;
    background: #484848;
    padding: 10px 20px;
}

/*====================================
=            3. SUBNAV               =
====================================*/

.subnav {
    border: 1px solid #6e6e6e;
    padding: 10px 0;
    margin: 26px 0 16px 0;
    background-color: #fff;
    text-transform: uppercase; /* Make the text uppercase */
    display: inline-block; /* Make the subnav as wide as it needs to be */
}

.subnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.subnav ul li {
    display: inline-block; /* Ensure the flex display is applied */
    margin: 0;
    padding: 0 15px;
    border-right: 1px solid #6e6e6e;
}

.subnav ul li:last-child {
    border-right: none;
}

.subnav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block; /* Ensure the links take up full height/width of the li */
}

.subnav ul li a.active {
    color: #77a1d3;
}

.menu-icon span {
    height: 4px;
    width: 25px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s;
}

/*====================================
=              4. HERO               =
====================================*/

#hero {
    position: relative; /* Ensure positioning context for child elements */
    top: 0;
    height: 440px;
    width: 100%; /* Adjust as needed */
    background: url('../images/hero02.jpg') no-repeat left center;
    background-size: cover;
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-10%, -50%);
    color: white;
    text-align: left;
    font-size: 24pt;
    width: 80%;
    max-width: 600px;
}

.hero-tag {
    text-transform: uppercase;
    padding: 8px 14px;
    font-size: 11pt;
    font-weight: 400;
    background-color: #000; 
    display: inline-block;
}

.hero-content h1 {
    font-family: "Roboto Condensed", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 34pt;
    margin: 4px 0;
}

.hero-content p {
    font-size: 14pt;
    font-weight: 300;
    margin: 0 0 26px 0;
}

.cta-button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14pt;
    color: #fff;
    background-color: #db1523;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #be0d1a;
    text-decoration: none;
}

/*====================================
=           5. ARTICLE               =
====================================*/

.article-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.article-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.article-container h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-container .byline {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.pull-quote {
    font-size: 18px;
    font-style: italic;
    color: #555;
    border-left: 4px solid #77a1d3;
    padding-left: 10px;
    margin: 20px 0;
}

.article-container ul {
    list-style-type: disc;
    margin: 0 0 20px 20px;
}

/*====================================
=           6. RSS/NEWS              =
====================================*/

#rss-feeds table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #efefef; /* Add border to the table */
}

#rss-feeds table thead tr {
    background-color: #f1f1f1; /* Optional: Add a different background color for the header */
}

#rss-feeds table th, #rss-feeds table td {
    padding: 10px;
    vertical-align: top;
}

#rss-feeds table tr.even {
    background-color: #f9f9f9;
}

#rss-feeds table tr.odd {
    background-color: #ffffff;
}

#rss-feeds table td a {
    text-decoration: none;
    color: #008356;
    font-weight: bold;
    display: block; /* Ensure the link takes up the full width */
    margin-bottom: 5px; /* Space between title and description */
}

#rss-feeds table td a:hover {
  text-decoration: underline;
}

#rss-feeds table td p {
    margin: 0;
    color: #666;
}

#rss-feeds table td {
    vertical-align: top;
}

#rss-feeds table td:nth-child(1) {
    white-space: nowrap;
    text-transform: uppercase; /* Make the text uppercase */
    font-size: 11px; /* Set the font size */
}

#rss-feeds table td:nth-child(3) {
    white-space: nowrap;
    text-transform: uppercase; /* Make the text uppercase */
    font-size: 11px; /* Set the font size */
}

#newsmore {
    text-transform: uppercase; /* Make the text uppercase */
    font-size: 11px; /* Set the font size */
}


/*====================================
=           7. DIRECTORY             =
====================================*/

.listing {
    padding-left: 12px;
    list-style-type: disc;
    margin-left: 20px;
}

.listing li {
    margin: 5px 0;
}

/*====================================
=             8. FOOTER              =
====================================*/

footer {
    padding: 20px;
    margin-top: 20px;
    color: #fff;
    background-color: #333;
    text-align: center;
}

footer p {
    margin: 0;
}

/*====================================
=           9. RESPONSIVE            =
====================================*/

@media (max-width: 1200px) {
    #nav-links {
        display: none;
    }
    
    header nav {
      float: right;
      margin: 10px 40px 10px 0;
    }
    
    #hero {
      background-position-x: 80%;
    }
    
    .extended-graphic {
       width: 0;
    }
    
    .menu-icon {
        display: flex;
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-nav.active {
        display: flex;
    }

    .subnav .subnav-link {
        display: none;
    }

    .subnav ul li {
        border-right: none;
    }

    .subnav ul li a {
        display: none;
    }

    .subnav ul li:first-child a {
        display: block;
    }
}
