/* =========================================================
   EDUCATION PAGE STYLES
   Applies to /education/index.html and topic pages
   ========================================================= */

/* PAGE LAYOUT */
.content-narrow {
    max-width: 1180px;
    margin: 80px auto;
    text-align: left;
    padding: 0 20px;
    line-height: 1.8;
    color: var(--text);
}

/* CARD GRID */
.card-grid {
    max-width: 1180px;
    margin: 60px auto 120px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* CARD */
.card {
    background: var(--bg-panel, #151a20);
    border: 1px solid var(--border-light, #232a32);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent, #00d2ff);
}

/* CARD IMAGE */
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 18px;
}

/* CARD TITLE */
.card h3 {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

/* CARD TEXT */
.card p {
    color: var(--text-secondary, #9a9a9a);
    margin-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CARD BUTTON */
.card-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 4px;
    background: var(--accent, #00d2ff);
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.card-btn:hover {
    background: var(--accent-hover, #02e6ff);
}

/* DISABLED CARD PLACEHOLDER */
.card-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #777);
    border-style: dashed;
}

.card-disabled:hover {
    transform: none;
    border-color: var(--border-light, #1f1f1f);
    cursor: default;
}

/* TOPIC PAGE CONTENT AREA */
.topic-content {
    max-width: 1180px;
    margin: 80px auto;
    padding: 0 20px;
    line-height: 1.9;
}

.topic-content h2 {
    color: var(--text);
    margin: 50px 0 20px;
}

.topic-content p,
.topic-content li {
    color: var(--text-secondary, #c7c7c7);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.topic-content ul {
    list-style-position: inside;
    padding-left: 0;
}

/* BREADCRUMB */
.breadcrumb {
    max-width: 1180px;
    margin: 40px auto 10px;
    padding: 0 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb span {
    padding: 0 6px;
}

.breadcrumb,
.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}
/* TABLE OF CONTENTS */
.toc {
    margin: 40px auto;
    max-width: 1180px;
    padding: 20px;
    border-left: 3px solid var(--accent);
    background: #0b0b0b;
    border-radius: 4px;
}

.toc h3 {
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 6px 0;
}

.toc a {
    color: var(--accent);
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .card-img {
        height: 130px;
    }
}

