/* Chapters Page Specific Styles */
.chapters-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 60px;
}

.chapters-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'MedievalSharp', cursive;
}

.chapters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.chapters-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.chapters-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.chapter-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chapter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.chapter-card:hover .chapter-bg {
    filter: brightness(0.5);
}

.chapter-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.chapter-heraldry {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.chapter-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'MedievalSharp', cursive;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chapter-city {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chapter-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-indent: -9999px;
}

.chapter-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #a31616;
}

.social-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
