.topic-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    animation: fadeIn 0.6s ease;
}

/* HEADER */
.topic-header {
    text-align: center;
    margin-bottom: 25px;
}

.topic-header h1 {
    font-size: 26px;
    color: #0a2a43;
    margin-top: 10px;
}

.topic-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* SECTIONS */
.topic-section {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.topic-section h2 {
    color: #0a2a43;
    margin-bottom: 10px;
}

/* INTRO */
.topic-intro {
    font-size: 16px;
    line-height: 1.6;
}

/* OBJECTIVES */
.topic-list {
    padding-left: 20px;
}

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

/* NOTES GRID */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* NOTE CARD */
.topic-card {
    background: #0a2a43;
    color: white;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.topic-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

/* FOOTER */
.topic-footer {
    text-align: center;
    font-size: 13px;
    color: #333;
    margin-top: 20px;
}