/* Base styles from backup */
body {
    overflow-y: scroll;
    margin-top: 0px;
    margin-bottom: 25px;
    margin-left: 0px;
    margin-right: 0px;
    font-family: helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #ffffff;
}

.content {
    margin: 0 auto;
    width: 75%;
    line-height: 16px;
}

.textblock {
    margin-left: 20px;
    margin-right: 20px;
    color: #2E2E2E;
}

/* Page layout */
.page {
    margin: auto;
    width: 55%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.pagebanner {
    padding-top: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 35%;
    min-width: 275px;
    height: 200px;
    background-image: url('images/tbwalogo.gif');
    background-repeat: no-repeat;
}

.logoAlt {
    display: block;
    margin: 0 auto;
    width: 35%;
}

.logoAlt img {
    max-width: 100%;
    height: auto;
}

.slogan {
    width: 65%;
    font-family: times, serif;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    vertical-align: text-top;
}

.row {
    clear: both;
}

.col {
    float: left;
}

h2.bannerheader {
    display: block;
    font-size: 27px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

q.bannerquote {
    display: inline;
}

q.bannerquote::before {
    content: open-quote;
}

q.bannerquote::after {
    content: close-quote;
}

/* Navigation styles */
.menu {
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100%;
    text-align: center;
}

.menu a {
    margin-right: 25px;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #2E5E4E;
    transition: color 0.3s ease;
}

.menu a.end {
    margin: 0px;
}

.menu a:hover,
.menu a.on,
.menu a.active {
    color: #901008;
}

/* Content sections */
main {
    flex: 1;
    padding: 20px 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content h3 {
    color: #2E5E4E;
    font-size: 18px;
    margin: 20px 0 15px 0;
    border-bottom: 2px solid #2E5E4E;
    padding-bottom: 5px;
}

.content h4 {
    color: #2E5E4E;
    font-size: 14px;
    margin: 15px 0 10px 0;
}

.content p {
    margin: 15px 0;
}

.content ul {
    margin: 15px 0 15px 30px;
}

.content li {
    margin: 5px 0;
}

/* Table styles from memberclubs component */
table {
    margin-left: 20px;
    margin-right: 20px;
    border-width: 1px;
    border-style: solid;
    border-color: #BEBEBE;
    border-collapse: collapse;
    border-spacing: 0px;
    padding: 0px;
    width: 550px;
    color: #2E2E2E;
}

td, th {
    border-width: 1px;
    border-style: solid;
    border-color: #BEBEBE;
    padding: 3px;
    vertical-align: top;
}

th.name {
    width: 35%;
    text-align: left;
    background-color: #2E5E4E;
    color: #FFFFFF;
}

th.number {
    width: 30%;
    text-align: left;
    background-color: #2E5E4E;
    color: #FFFFFF;
}

.map-link {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 15px;
}

.map-btn,
.back-link {
    color: #2E5E4E;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #2E5E4E;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.map-btn:hover,
.back-link:hover {
    background-color: #2E5E4E;
    color: white;
}

/* Map section */
.map-container {
    text-align: center;
    margin: 20px 0;
}

.map-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #BEBEBE;
}

.map-navigation {
    margin: 20px 0;
}

/* Forms */
.email-form,
.contact-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form-container {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2E5E4E;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E5E4E;
    box-shadow: 0 0 5px rgba(46, 94, 78, 0.3);
}

.submit-btn {
    background-color: #2E5E4E;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #901008;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content img {
    max-height: 30px;
    width: auto;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .page {
        width: 75%;
    }
}

@media screen and (max-width: 968px) {
    .page {
        width: 85%;
    }
    
    .content {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .page {
        width: 95%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logoAlt {
        width: auto;
        margin-bottom: 20px;
    }
    
    .logoAlt img {
        max-width: 200px;
    }
    
    .slogan {
        width: 100%;
    }
    
    .col {
        float: none;
        width: 100%;
    }
    
    h2.bannerheader {
        font-size: 24px;
    }
    
    .slogan {
        font-size: 16px;
    }
    
    .menu a {
        display: block;
        margin: 5px 0;
        padding: 10px;
        border: 1px solid transparent;
        border-radius: 4px;
    }
    
    .menu a:hover,
    .menu a.active {
        background-color: #e8f4f0;
        border-color: #2E5E4E;
    }
    
    .content {
        width: 95%;
    }
    
    .textblock {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* Table responsive */
    table {
        width: 100%;
        font-size: 11px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .map-link {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 11px;
    }
    
    .logoAlt img {
        max-width: 150px;
    }
    
    h2.bannerheader {
        font-size: 20px;
    }
    
    .slogan {
        font-size: 14px;
    }
    
    .menu a {
        font-size: 11px;
        padding: 8px;
    }
    
    .content h3 {
        font-size: 16px;
    }
    
    .textblock {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    table {
        font-size: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    td, th {
        padding: 2px;
    }
    
    .map-link {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .email-form,
    .contact-form {
        padding: 15px;
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Print Styles */
@media print {
    .menu,
    .email-form,
    .contact-form,
    footer {
        display: none;
    }
    
    .content-section {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    body {
        font-size: 10pt;
        line-height: 1.4;
    }
    
    .page {
        width: 100%;
        max-width: none;
    }
    
    .header-content {
        flex-direction: row;
    }
    
    .col {
        float: left;
    }
    
    table {
        width: 100%;
        font-size: 8pt;
    }
}

/* Utility classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
