/* Basic Page Setup */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Header */
.header-container h1 {
    font-size: 36px;
    color: #1a237e;
    margin-bottom: 10px;
    text-align: center;
}

.header-container p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

/* Chapter Cards */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Adds spacing between cards */
    width: 100%;
    align-items: center;
}

.chapter-card {
    width: 85%;
    max-width: 600px;
    background: #fff;
    border-left: 6px solid #1a237e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.chapter-card a.chapter-link {
    display: block;
    padding: 20px 30px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.chapter-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: #e3eaff;
}

/* Back Button */
.back-button {
    margin: 30px 0;
}

.back-button a {
    display: inline-block;
    background-color: #344a84;
    color: #fff;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.back-button a:hover {
    background-color: #46c467;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px 20px;
    background: #1a237e;
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.footer a {
    color: #fdd835;
    text-decoration: none;
    font-weight: 600;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}
