@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400&display=swap');

body {
    background-color: #FDF6EC;
    font-family: 'Lato', sans-serif;
    color: #2C2C2C;
    margin: 0;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #5C3D2E;
}

h1 {
    text-align: center;
}

.lecture-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lecture-card {
    width: 45%;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5C3D2E;
    padding: 15px 30px;
    position: sticky;
    top: 0;
}

.nav-title {
    color: #FDF6EC;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.nav-links a {
    color: #FDF6EC;
    text-decoration: none;
    margin-left: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #D4A853;
}

.section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.note-box {
    background: white;
    border-left: 4px solid #5C3D2E;
    padding: 20px 25px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C2C2C;
}

.card-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.text-card {
    width: 220px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    background: white;
    text-align: center;
}

.text-card:hover {
    transform: translateY(-5px);
}

.text-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.text-card h3 {
    padding: 12px;
    margin: 0;
    font-size: 1rem;
}
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.chapter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.chapter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.chapter-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #D4A853;
    font-weight: 700;
}

.chapter-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #5C3D2E;
    margin-top: 8px;
}
