:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --text-color: #333;
    --background-color: #FDF5E6;
    --header-bg: #2C1810;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
}

header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle .material-icons {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .material-icons {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--accent-color);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.search-container input[type="search"] {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.search-container button {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background: var(--secondary-color);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.search-results-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.no-results {
    cursor: default;
}

.result-icon {
    color: var(--accent-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.result-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.result-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.result-content h4 a:hover {
    color: var(--accent-color);
}

.result-keywords {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
}

.period-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2E8B57;
    color: white;
}

.btn-primary:hover {
    background: #1a5f3a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #DAA520;
    color: white;
}

.btn-secondary:hover {
    background: #b8860b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Getting Started Page Styles */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.period-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.period-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.period-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.period-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.period-card li {
    margin: 0.5rem 0;
}

.equipment-guide {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.equipment-guide h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
}

.equipment-guide ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.supplier-links {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.persona-guide {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.join-steps {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.join-steps ol {
    margin: 1rem 0 1rem 1.5rem;
}

.join-steps li {
    margin: 0.5rem 0;
}

.first-event-guide {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-section {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resources-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resources-section h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

.resources-section ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

/* Member Highlights Section */
.member-highlights {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.member-highlights h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.member-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-color);
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.highlight-content {
    position: relative;
}

.highlight-icon {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.highlight-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Equipment Guides Styles */
.equipment-period {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.equipment-period h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.period-description {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.equipment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.equipment-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.equipment-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-category h3 .material-icons {
    color: var(--accent-color);
}

.equipment-list {
    display: grid;
    gap: 1rem;
}

.equipment-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 3px solid var(--accent-color);
}

.equipment-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.equipment-item p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.equipment-item strong {
    color: var(--secondary-color);
}

/* Suppliers Section */
.suppliers-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.supplier-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.supplier-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.supplier-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.supplier-card a {
    color: var(--accent-color);
    text-decoration: none;
}

.supplier-card a:hover {
    text-decoration: underline;
}

/* Budget Guide */
.budget-guide {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.budget-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.budget-tier {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.budget-tier h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.budget-tier ul {
    margin: 0;
    padding-left: 1.5rem;
}

.budget-tier li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Photo Gallery Styles */
.gallery-intro {
    text-align: center;
    margin: 2rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--primary-color);
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

.filter-btn .material-icons {
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    text-align: left;
}

.gallery-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: white;
}

.gallery-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-info .material-icons {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    max-width: 80%;
}

#lightbox-caption h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}

#lightbox-caption p {
    margin: 0;
    opacity: 0.9;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-nav .material-icons {
    font-size: 2rem;
}

.gallery-cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
}

.gallery-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.gallery-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

main {
    margin-top: 80px;
    padding-top: 0;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

.facebook-sidebar {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    align-self: flex-start;
}

.facebook-sidebar iframe {
    width: 100% !important;
    max-width: 400px;
    border: none;
    overflow: hidden;
}

.facebook-sidebar .fb-page {
    width: 100% !important;
    flex: 1;
}

section {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/riverbend.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 2rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Late Medieval page specific hero background */
.late-medieval .hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/late medieval/badger-passant-1658.svg');
}

.hero-image-link {
    text-decoration: none;
    color: white;
    display: block;
    position: relative;
    cursor: pointer;
}

.hero-image-link:hover::after {
    content: "From: The History of Four-Footed Beasts and Serpents. Published in 1658 in England. Illustrations by Edward Topsell.";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.hero .nav-link:hover {
    color: var(--accent-color);
}

.about, .join, .contact {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 1rem auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.email-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.email-button:hover {
    background-color: var(--secondary-color);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.facebook-button {
    display: inline-block;
    background-color: #1877F2;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.facebook-button:hover {
    background-color: #166FE5;
}

footer {
    background-color: var(--header-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.join h3 {
    text-align: center;
    margin: 2rem 0;
}

.timeline {
    padding: 2rem 0;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.timeline-image {
    flex: 0 0 200px;
    position: relative;
}

.timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.timeline-image .image-caption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}

.timeline-text {
    flex: 1;
    min-width: 0;
}

.timeline-text h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.timeline-text p {
    margin: 0;
    line-height: 1.6;
}

.timeline-text a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
}

.timeline-text a:hover {
    text-decoration: underline;
}

.persona-list {
    margin: 2rem 0;
}

.persona-list ul {
    list-style: none;
    padding: 0;
}

.persona-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 5px;
}

.persona-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.persona-list a:hover {
    color: var(--secondary-color);
}

/* Persona Image Styles */
.persona-image {
    margin: 2rem auto;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: white;
    padding: 1rem;
}

.persona-portrait {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.persona-portrait:hover {
    transform: scale(1.02);
}

.narrative {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem auto;
}

.narrative h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.narrative h4 {
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.narrative p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.narrative a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.3s ease;
}

.narrative a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.join .fb-page {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.join iframe {
    margin: 2rem auto;
    display: block;
}

.image-container {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
}

.featured-image {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.incorporation-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.incorporation-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.policies-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policies-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 5px;
}

.constitution-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.constitution-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 5px;
}

.structure-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.structure-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.structure-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Music Section Styles */
.music {
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
    margin: 2rem 0;
}

.music h2 {
    color: #333;
    margin-bottom: 1rem;
}

.music h3 {
    color: #666;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Guides and Knighthood Sections */
.guides, .knighthood {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
}

.guides h2, .knighthood h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.guides p, .knighthood p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.guides .nav-link, .knighthood .nav-link {
    display: inline-block;
    margin: 0.5rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.guides .nav-link:hover, .knighthood .nav-link:hover {
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .facebook-sidebar {
        position: relative;
        width: 100%;
        margin: 2rem auto;
        max-width: 400px;
        height: auto;
        top: 0;
    }

    .facebook-sidebar iframe {
        max-width: 100%;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .search-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-container input[type="search"] {
        min-width: auto;
        flex: 1;
    }
    
    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        color: white;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .facebook-sidebar {
        position: relative;
        width: 100%;
        margin: 2rem auto;
        max-width: 400px;
        top: 0;
    }

    .facebook-sidebar iframe {
        max-width: 100%;
        width: 100% !important;
    }

    .timeline-content {
        flex-direction: column;
    }

    .timeline-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* About Section Layout */
.about-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 0;
}

/* Badger Image Styles */
.badger-image {
    flex: 0 0 300px;
    position: relative;
}

.badger-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.badger-image img:hover {
    transform: scale(1.05);
}

.badger-image .image-caption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .badger-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Gallery mobile styles */
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .lightbox-nav {
        padding: 0.5rem;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    .close-lightbox {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline-content {
        flex-direction: column;
    }
    
    .timeline-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
} 