/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    color: #c9a96e;
    border-bottom: 3px solid #c9a96e;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    color: #c9a96e;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: #c9a96e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8956a;
}

/* Header */
header {
    background: linear-gradient(135deg, #0f1419 0%, #1a252f 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #c9a96e;
    padding: 10px;
    background: white;
}

.lodge-info h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.subtitle {
    color: #c9a96e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.location {
    color: #ecf0f1;
    font-size: 1.1rem;
    font-style: italic;
}

/* Navigation */
.main-nav {
    background-color: #0d1117;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-tabs li {
    margin: 0;
}

.tab-link {
    display: block;
    padding: 1.2rem 2rem;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    background-color: #2c3e50;
    border-bottom-color: #c9a96e;
    color: #c9a96e;
}

/* Main Content */
.main-content {
    min-height: 70vh;
    padding: 3rem 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: #2d3748;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    border: 1px solid #4a5568;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-text {
    padding: 2.5rem;
    text-align: center;
}

.hero-text h2 {
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.hero-description {
    font-size: 1.3rem;
    color: #a0aec0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Meeting Info */
.meeting-info {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    border: 1px solid #4a5568;
}

.meeting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.meeting-card {
    background: #1a202c;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #c9a96e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a5568;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.meeting-card h4 {
    color: #c9a96e;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.meeting-card p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.meeting-card strong {
    color: #e2e8f0;
}

/* Principles Section */
.principles-section {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #4a5568;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
}

.principle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-content {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    border: 1px solid #4a5568;
}

.about-text ul {
    margin: 1rem 0 1.5rem 2rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Officers Section */
.officers-section {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #4a5568;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.officer-card {
    background: #1a202c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #c9a96e;
    border: 1px solid #4a5568;
}

.officer-card h4 {
    color: #c9a96e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.officer-card p {
    color: #a0aec0;
    font-weight: 600;
    margin: 0;
}

/* History Timeline */
.history-content {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    border: 1px solid #4a5568;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #c9a96e;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #c9a96e;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #c9a96e;
}

.timeline-year {
    background: #c9a96e;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    color: #c9a96e;
    margin-bottom: 1rem;
}

.historical-images {
    margin-top: 2rem;
    text-align: center;
}

.historical-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.notable-members {
    background: #1a202c;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #c9a96e;
    border: 1px solid #4a5568;
}

/* Contact Section */
.contact-content {
    background: #2d3748;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border: 1px solid #4a5568;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-section h3 {
    color: #c9a96e;
    margin-bottom: 1rem;
    border-bottom: 2px solid #c9a96e;
    padding-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details ul {
    margin: 1rem 0 0 1.5rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.map-section {
    background: #1a202c;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #4a5568;
}

.map-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.directions h4 {
    color: #c9a96e;
    margin: 1.5rem 0 1rem 0;
}

.directions p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.grand-lodge-info {
    background: #2d3748;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid #4a5568;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0d1117 0%, #1a202c 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #c9a96e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c9a96e;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .lodge-info h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .meeting-grid,
    .principles-grid,
    .officers-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        padding: 2rem 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .meeting-info,
    .principles-section,
    .about-content,
    .history-content,
    .contact-content,
    .grand-lodge-info {
        padding: 1.5rem;
    }
    
    .hero-text {
        padding: 1.5rem;
    }
    
    .tab-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    footer {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-before: always;
    }
    
    .tab-content:first-child {
        page-break-before: auto;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .meeting-card,
    .principle-card,
    .officer-card {
        break-inside: avoid;
    }
}