:root {
    --primary-color: #1e5a35;
    --secondary-color: #2d7a4f;
    --background-gradient: linear-gradient(135deg, #2d7a4f 0%, #1b5e3a 100%);
    --primary-rgb: 30, 90, 53;
    --secondary-rgb: 45, 122, 79;
}

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

/* Content Sections */
.content-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.content-section h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Leadership Cards */
.leadership-card {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.leadership-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.leadership-card .title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.leadership-card .roles {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

/* PDF Search Result Styles */
.results-section-header {
    color: var(--primary-color);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.3em;
}

.pdf-result {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pdf-result:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-header h4 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin: 0;
    flex: 1;
}

.pdf-category {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.pdf-snippet {
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95em;
}

.pdf-snippet mark {
    background: #ffd700;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.pdf-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.85em;
}

.page-number {
    font-weight: 500;
}

.relevance {
    color: var(--secondary-color);
}

.search-time {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--background-gradient);
    min-height: 100vh;
    padding: 0;
}

/* Navigation Bar */
.navbar {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .donate-btn {
    background: #ffd54f;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu .donate-btn:hover {
    background: #ffed4e;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Hero Section (Home Page) */
.hero {
    padding: 60px 40px;
}

.hero-with-image {
    position: relative;
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85) 0%, rgba(var(--secondary-rgb), 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Headers with Background Images */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-header {
    background-image: url('images/search-background.jpg');
}

.contact-header {
    background-image: url('images/contact-background.jpg');
}

.donate-header {
    background-image: url('images/donate-background.jpg');
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85) 0%, rgba(var(--secondary-rgb), 0.85) 100%);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content .subtitle {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Main Content */
main {
    padding: 40px;
}

section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3);
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--primary-color);
}

button:active {
    transform: scale(0.98);
}

/* Features Grid (Home Page) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
}

.feature-card p {
    padding: 0 20px 25px 20px;
}

/* Mission Section */
.mission-section {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Search Section */
.search-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.6;
}

.search-stats {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.search-stats p {
    margin: 0;
    color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    max-width: 700px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.1);
}

#resultsCount {
    margin-bottom: 20px;
}

.search-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 1.1em;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Results Section */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.book-results {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.book-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2em;
}

.match-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

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

.result-item:hover {
    background: #e8f5e9;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.page-number {
    color: var(--secondary-color);
    font-weight: 600;
}

.category {
    color: #666;
    font-style: italic;
}

.result-snippet {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
}

mark {
    background: #ffd54f;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* PDF List */
.indexed-pdfs ul {
    list-style: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.indexed-pdfs li {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.indexed-pdfs li:last-child {
    border-bottom: none;
}

.empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
}

/* Status Messages */
.error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.success {
    color: #27ae60;
    background: #d5f4e6;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.processing {
    color: var(--secondary-color);
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.no-results {
    color: #666;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Contact Page */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.about-mission {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-color);
}

.about-mission h2 {
    margin-bottom: 20px;
}

.about-mission p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-mission p:last-child {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 2em;
    color: var(--secondary-color);
}

.contact-method h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.contact-method a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.faq-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.faq-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Donate Page */
.donate-section {
    max-width: 1000px;
    margin: 0 auto;
}

.donate-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.impact-section,
.donation-methods,
.transparency-section,
.thank-you-section {
    margin-bottom: 50px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.impact-item {
    text-align: center;
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 8px;
}

.impact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.donation-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.donation-card h3 {
    margin-bottom: 15px;
}

.paypal-button-container {
    margin-top: 20px;
}

.donation-info {
    font-weight: 600;
    margin-bottom: 10px;
}

.setup-instructions {
    background: white;
    padding: 20px 20px 20px 40px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.setup-instructions li {
    margin-bottom: 8px;
}

.paypal-placeholder {
    text-align: center;
    padding: 40px;
    background: white;
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
}

.placeholder-text {
    color: #666;
    margin-top: 10px;
}

.placeholder-text a {
    color: var(--secondary-color);
}

.donation-methods-list {
    padding-left: 25px;
    margin: 15px 0;
}

.donation-methods-list li {
    margin-bottom: 8px;
}

.transparency-list {
    padding-left: 25px;
    margin-top: 20px;
}

.transparency-list li {
    margin-bottom: 10px;
}

.thank-you-section {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
}

.gratitude-text {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 20px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.footer-content p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .logo-text {
        font-size: 0.9em;
    }

    .logo-img {
        height: 40px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .container {
        margin: 0;
        border-radius: 0;
    }

    header {
        padding: 30px 20px;
    }

    header h1,
    .hero h1 {
        font-size: 2em;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    main {
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    #searchInput {
        max-width: 100%;
    }

    button,
    .btn {
        width: 100%;
    }

    .result-item:hover {
        transform: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .faq-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Surname Checker Styles */
.surname-checker-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.surname-result {
    margin-top: 25px;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid;
}

.surname-result.found {
    background: #e8f5e9;
    border-color: var(--secondary-color);
}

.surname-result.not-found {
    background: #fff3e0;
    border-color: #ff9800;
}

.surname-result h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.surname-details {
    margin: 20px 0;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 130px;
}

.detail-value {
    color: #333;
    flex: 1;
}

.detail-row.motto .detail-value {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
}

.search-tip {
    margin-top: 20px;
    padding: 15px;
    background: #fff9e6;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.surname-suggestions {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.surname-suggestions h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid var(--secondary-color);
}

.suggestion-item:hover {
    background: #e8f5e9;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.origin-tag {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

/* Database Statistics Section */
.database-stats {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border-radius: 8px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Surnames Section */
.featured-surnames {
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.featured-surname-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-surname-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.featured-surname-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(45, 122, 79, 0.15);
}

.featured-surname-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.surname-info {
    margin: 15px 0;
}

.origin-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.origin-badge.milesian {
    background: #e8f5e9;
    color: var(--secondary-color);
}

.origin-badge.norman {
    background: #fff3e0;
    color: #f57c00;
}

.featured-surname-card .motto {
    font-style: italic;
    color: var(--secondary-color);
    margin: 10px 0;
    font-weight: 500;
    line-height: 1.4;
}

.featured-surname-card .translation {
    color: #666;
    font-size: 0.95em;
    margin-top: 5px;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-color);
}

.featured-note {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 30px;
}

.featured-note p {
    margin: 0;
    color: #666;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.75em;
    }

    .logo-img {
        height: 35px;
    }

    header h1 {
        font-size: 1.6em;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        min-width: auto;
    }
}

/* ===============================================
   MOBILE HAMBURGER MENU STYLES
   =============================================== */

/* Hamburger Button */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Responsive Styles */
@media (max-width: 768px) {
    /* Show hamburger button */
    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    /* Update nav container for mobile */
    .nav-container {
        position: relative;
    }

    /* Mobile navigation menu */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1em;
        border-radius: 6px;
        margin-bottom: 5px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-menu .donate-btn {
        margin-top: 20px;
        text-align: center;
        background: #ffd54f;
        color: var(--primary-color);
        font-weight: 700;
    }

    /* Close button inside mobile menu */
    .nav-menu::before {
        content: 'MENU';
        position: absolute;
        top: 25px;
        left: 20px;
        color: white;
        font-size: 1.2em;
        font-weight: 700;
        letter-spacing: 2px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
    }

    .hamburger-menu {
        padding: 8px;
    }

    .hamburger-line {
        width: 22px;
    }
}
