body {
    background-color: #f9f2c3;
    color: #333;
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    font-size: inherit;
}

a:not(.navbar-nav a, .navbar-brand, .link-list a, .btn) {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
    color: #D95D39;
    transition: opacity 0.2s ease;
}

a:not(.navbar-nav a, .navbar-brand, .link-list a):visited {
    color: #7A6A5F;
    opacity: 0.9;
}

a:not(.navbar-nav a, .link-list a):hover,
a:not(.navbar-nav a, .link-list a):focus {
    text-decoration-thickness: 2px;
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Franklin Gothic Medium", "Arial Narrow Bold", sans-serif;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

small, .small-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
}

input, button, select, textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.btn, .form-control, .card-title {
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.navbar {
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.custom-navbar {
    background-color: #00770e;
}

.custom-navbar .nav-link {
    color: white;
}

.custom-navbar .nav-link:hover {
    color: #f8f9fa;
}

.custom-navbar .nav-link.active {
    color: #ffffff;
    font-weight: bold;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card-body {
    padding: 0.5rem !important;
}

.card-title {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem !important;
    font-size: 1.05rem;
}

.video-section {
    margin: 2rem auto;
    max-width: 800px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
}

.transcript-container {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.transcript-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    text-align: left;
}

.transcript-toggle:hover {
    background: #e9ecef;
}

.transcript-toggle-icon {
    float: right;
    transition: transform 0.2s ease;
}

.collapse.show ~ .transcript-toggle .transcript-toggle-icon {
    transform: rotate(180deg);
}

.transcript-text {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    background: white;
}

.transcript-text time {
    color: #0d6efd;
    font-weight: 500;
}

.table th[scope="row"] {
    color: #495057;
    font-weight: 600;
}

details {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    outline: none;
    font-weight: 600;
}

summary:hover {
    color: #0d6efd;
}

header, footer, section, article, aside {
    display: block;
}

header {
    margin-bottom: 2rem;
}

footer {
    margin-top: 3rem;
}

.accessibility-on {
    filter: contrast(200%) brightness(150%) !important;
}

.accessibility-on * {
    color: #000 !important;
    background-color: #fff !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

.accessibility-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    border: 2px solid yellow;
    cursor: pointer;
}

body.join-page {
    background:
        linear-gradient(rgba(245, 245, 220, 0.55), rgba(245, 245, 220, 0.85)),
        url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.contact-page .container {
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: underline;
}

.skip-link:focus {
    top: 0;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}
