/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

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

/* Header styles */
.header {
    background: linear-gradient(135deg, #8B4513 0%, #5D2906 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 5px solid #d4af37;
}
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Section base styles */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #fff;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #5D2906;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #d4af37;
    margin: 10px auto;
}

/* Coat of arms section */
.coat-of-arms-section {
    background-color: #f9f5f0;
}

.coat-of-arms-container {
    text-align: center;
    margin-top: 2rem;
}
.coat-of-arms-image {
    max-width: 100%;
    height: auto;
    border: 8px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 800px;
    object-fit: contain;
}
.coat-of-arms-caption {
    font-style: italic;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #5D2906;
}

/* History section */
.history-section {
    background-color: #fff;
}

.history-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Genealogy section */
.genealogy-section {
    background-color: #f9f5f0;
    text-align: center;
}

.genealogy-button {
    display: inline-block;
    background: #5D2906;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.genealogy-button:hover {
    background: #d4af37;
    color: #5D2906;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.genealogy-info {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* Related links section */
.related-links-section {
    background-color: #fff;
}

.related-links {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.related-links li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f5f0;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.related-links li:hover {
    transform: translateX(5px);
    background: #f0e6d2;
}

.related-links a {
    text-decoration: none;
    color: #5D2906;
    font-weight: 500;
    font-size: 1.1rem;
}

.related-links a:hover {
    color: #8B4513;
}

/* Email section */
.email-section {
    background-color: #f9f5f0;
    text-align: center;
}

.email-section p {
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    border-top: 5px solid #d4af37;
}

.footer p {
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    .coat-of-arms-image {
        max-height: 600px;
    }
.history-section p {
        text-align: left;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    .coat-of-arms-image {
        max-height: 400px;
    }
}