/* =========================================================
   TeamElektro Lern-App
   Netzwerkgrundlagen
   style.css
   ========================================================= */


/* =========================================================
   1. DESIGN-VARIABLEN
   ========================================================= */

:root {
    --team-blue: #003f87;
    --team-blue-medium: #006bb6;
    --team-blue-light: #e6f2ff;
    --team-blue-soft: #f1f7fd;
    --team-blue-dark: #002f66;

    --background: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #1c2733;
    --text-soft: #5f6b78;
    --text-light: #ffffff;

    --border: #dce5ef;
    --border-blue: #bfd8ef;

    --success: #198754;
    --success-light: #e8f6ee;

    --warning: #d98b00;
    --warning-light: #fff6df;

    --danger: #c93c3c;
    --danger-light: #fdecec;

    --shadow-small:
        0 4px 14px rgba(0, 63, 135, 0.07);

    --shadow:
        0 12px 32px rgba(0, 63, 135, 0.10);

    --shadow-large:
        0 22px 55px rgba(0, 47, 102, 0.16);

    --radius-small: 8px;
    --radius: 14px;
    --radius-large: 22px;

    --max-width: 1200px;

    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.65;

    color: var(--text);
    background: var(--background);
}

body.no-scroll {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--team-blue-medium);
    text-decoration: none;
}

a:hover {
    color: var(--team-blue);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    color: var(--team-blue-dark);
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    color: #ffffff;
    background: var(--team-blue-medium);
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(0, 107, 182, 0.35);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;

    padding: 10px 16px;

    color: #ffffff;
    background: var(--team-blue);

    border-radius: var(--radius-small);

    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   4. CONTAINER
   ========================================================= */

.content-container,
.hero-container,
.footer-container,
.navigation-container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

main {
    min-height: 70vh;
}

section {
    position: relative;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;
    padding: 12px 22px;

    border: 2px solid transparent;
    border-radius: 10px;

    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--team-blue-medium);
    border-color: var(--team-blue-medium);

    box-shadow:
        0 8px 20px rgba(0, 107, 182, 0.22);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--team-blue);
    border-color: var(--team-blue);
}

.button-secondary {
    color: var(--team-blue);
    background: #ffffff;
    border-color: var(--border-blue);
}

.button-secondary:hover {
    color: var(--team-blue);
    background: var(--team-blue-light);
    border-color: var(--team-blue-medium);
}

.button-success {
    color: #ffffff;
    background: var(--success);
    border-color: var(--success);
}

.button-danger {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}


/* =========================================================
   6. HERO – STARTSEITE
   ========================================================= */

.hero {
    overflow: hidden;

    padding: 90px 0 85px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(74, 177, 255, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #002f66 0%,
            #003f87 48%,
            #006bb6 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -150px;

    width: 430px;
    height: 430px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -240px;
    left: -120px;

    width: 480px;
    height: 480px;

    border: 70px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
    gap: 65px;
    align-items: center;
}

.hero-content {
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;

    margin-bottom: 22px;
    padding: 7px 13px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-subtitle {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
}

.hero-description {
    max-width: 720px;
    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .button-primary {
    color: var(--team-blue);
    background: #ffffff;
    border-color: #ffffff;
}

.hero .button-primary:hover {
    color: var(--team-blue-dark);
    background: var(--team-blue-light);
    border-color: var(--team-blue-light);
}

.hero .button-secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.hero .button-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: #ffffff;
}


/* =========================================================
   7. HERO INFO CARD
   ========================================================= */

.hero-info-card {
    padding: 30px;

    color: var(--text);

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);
}

.info-card-label {
    display: block;

    margin-bottom: 8px;

    color: var(--team-blue-medium);

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-card-title {
    display: block;

    margin-bottom: 28px;

    color: var(--team-blue-dark);

    font-size: 1.65rem;
    line-height: 1.15;
}

.info-card-stats {
    display: grid;
    gap: 12px;
}

.info-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    background: var(--team-blue-soft);
    border-radius: 10px;
}

.info-stat strong {
    color: var(--team-blue);
    font-size: 1.4rem;
}

.info-stat span {
    color: var(--text-soft);
    font-size: 0.92rem;
}


/* =========================================================
   8. SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-heading h2,
.progress-card h2,
.resource-card h2 {
    margin-bottom: 12px;

    font-size: clamp(1.75rem, 3vw, 2.45rem);
    letter-spacing: -0.025em;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 1.03rem;
}

.section-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--team-blue-medium);

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   9. PROGRESS
   ========================================================= */

.progress-section {
    padding: 55px 0 15px;
}

.progress-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow);
}

.progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 5px;
}

.progress-card-header h2 {
    margin-bottom: 0;
}

.progress-percentage {
    color: var(--team-blue);

    font-size: 2rem;
    line-height: 1;
}

.progress-chapters {
    margin-bottom: 17px;

    color: var(--text-soft);
}

.progress-bar {
    overflow: hidden;

    width: 100%;
    height: 14px;

    background: #dce8f3;

    border-radius: 999px;
}

.progress-bar-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--team-blue),
            var(--team-blue-medium)
        );

    border-radius: inherit;

    transition: width 0.45s ease;
}

.progress-hint {
    margin-top: 14px;

    color: var(--text-soft);

    font-size: 0.88rem;
}


/* =========================================================
   10. CHAPTER OVERVIEW
   ========================================================= */

.chapter-overview {
    padding: 80px 0;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.chapter-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-height: 330px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.chapter-card:hover {
    transform: translateY(-6px);

    border-color: var(--border-blue);

    box-shadow: var(--shadow);
}

.chapter-number {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-height: 92px;
    padding: 20px 24px;

    color: rgba(255, 255, 255, 0.92);

    background:
        linear-gradient(
            135deg,
            var(--team-blue),
            var(--team-blue-medium)
        );

    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.chapter-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 24px;
}

.chapter-category {
    margin-bottom: 9px;

    color: var(--team-blue-medium);

    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.chapter-card h3 {
    margin-bottom: 12px;

    font-size: 1.3rem;
}

.chapter-card p {
    margin-bottom: 22px;

    color: var(--text-soft);
    font-size: 0.94rem;
}

.chapter-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: var(--team-blue);
    font-weight: 800;
}

.chapter-link::after {
    content: "→";

    transition: transform var(--transition);
}

.chapter-link:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   11. COMPLETED CHAPTER
   ========================================================= */

.chapter-card.completed,
.chapter-card.is-completed {
    border-color: rgba(25, 135, 84, 0.35);
}

.chapter-card.completed .chapter-number,
.chapter-card.is-completed .chapter-number {
    background:
        linear-gradient(
            135deg,
            #146c43,
            var(--success)
        );
}

.chapter-completed-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;

    padding: 5px 9px;

    color: #ffffff;
    background: var(--success);

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* =========================================================
   12. LEARNING PATH / FEATURES
   ========================================================= */

.learning-path-section {
    padding: 80px 0;

    background: #ffffff;
    border-block: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 25px;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 18px;

    color: #ffffff;
    background: var(--team-blue);

    border-radius: 10px;

    font-size: 0.85rem;
    font-weight: 900;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
}


/* =========================================================
   13. RESOURCES
   ========================================================= */

.resource-section {
    padding: 80px 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.resource-card {
    padding: 34px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.resource-card p {
    max-width: 560px;
    margin-bottom: 25px;

    color: var(--text-soft);
}

.resource-card-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--team-blue-dark),
            var(--team-blue)
        );

    border-color: transparent;
}

.resource-card-primary h2,
.resource-card-primary .section-eyebrow {
    color: #ffffff;
}

.resource-card-primary p {
    color: rgba(255, 255, 255, 0.82);
}

.resource-card-primary .button-primary {
    color: var(--team-blue);
    background: #ffffff;
    border-color: #ffffff;
}


/* =========================================================
   14. GENERIC PAGE HERO
   Für Kapitel, Quiz, Dokumente und Prüfung
   ========================================================= */

.page-hero {
    padding: 65px 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--team-blue-dark),
            var(--team-blue-medium)
        );
}

.page-hero-container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.page-hero .section-eyebrow {
    color: #b9e0ff;
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 15px;

    color: #ffffff;

    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 780px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 1.05rem;
}


/* =========================================================
   15. BREADCRUMB
   ========================================================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.88rem;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 700;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    opacity: 0.55;
}


/* =========================================================
   16. CHAPTER PAGE
   ========================================================= */

.chapter-main {
    padding: 65px 0 85px;
}

.chapter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
}

.chapter-body {
    min-width: 0;
}

.content-section {
    margin-bottom: 30px;
    padding: 32px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.content-section h2 {
    margin-bottom: 18px;

    font-size: clamp(1.55rem, 3vw, 2rem);
}

.content-section h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.content-section p,
.content-section li {
    color: #3d4955;
}

.content-section ul,
.content-section ol {
    padding-left: 24px;
}

.content-section li + li {
    margin-top: 7px;
}


/* =========================================================
   17. CHAPTER SIDEBAR
   ========================================================= */

.chapter-sidebar {
    position: sticky;
    top: 100px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-small);
}

.chapter-sidebar h3 {
    margin-bottom: 15px;

    font-size: 1rem;
}

.chapter-sidebar-nav {
    display: grid;
    gap: 7px;
}

.chapter-sidebar-nav a {
    padding: 9px 11px;

    color: var(--text-soft);

    border-radius: 7px;

    font-size: 0.88rem;
    font-weight: 650;
}

.chapter-sidebar-nav a:hover {
    color: var(--team-blue);
    background: var(--team-blue-light);
}


/* =========================================================
   18. LEARNING OBJECTIVES
   ========================================================= */

.learning-objectives {
    padding: 28px;

    background:
        linear-gradient(
            135deg,
            #eaf5ff,
            #f7fbff
        );

    border: 1px solid #bddcf4;
    border-left: 5px solid var(--team-blue-medium);
    border-radius: var(--radius);
}

.learning-objectives h2,
.learning-objectives h3 {
    color: var(--team-blue);
}

.learning-objectives ul {
    margin-bottom: 0;
}


/* =========================================================
   19. INFO / NOTE BOXES
   ========================================================= */

.info-box,
.practice-box,
.memory-box,
.exam-box,
.warning-box {
    margin: 25px 0;
    padding: 22px 24px;

    border-radius: var(--radius);
}

.info-box {
    background: var(--team-blue-light);
    border-left: 5px solid var(--team-blue-medium);
}

.practice-box {
    background: #edf8f2;
    border-left: 5px solid var(--success);
}

.memory-box {
    background: #fff7e5;
    border-left: 5px solid var(--warning);
}

.exam-box {
    background: #eef0ff;
    border-left: 5px solid #555cc4;
}

.warning-box {
    background: var(--danger-light);
    border-left: 5px solid var(--danger);
}

.info-box h3,
.practice-box h3,
.memory-box h3,
.exam-box h3,
.warning-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
}


/* =========================================================
   20. TECHNICAL TERMS
   ========================================================= */

.term-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    margin: 25px 0;
}

.term-card {
    padding: 20px;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.term-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--team-blue);
}


/* =========================================================
   21. TABLES
   ========================================================= */

.table-wrapper {
    overflow-x: auto;

    margin: 25px 0;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}

th,
td {
    padding: 13px 15px;

    text-align: left;
    vertical-align: top;

    border-bottom: 1px solid var(--border);
}

th {
    color: #ffffff;
    background: var(--team-blue);

    font-size: 0.88rem;
}

td {
    font-size: 0.92rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:nth-child(even) {
    background: #f8fbfe;
}


/* =========================================================
   22. CODE / COMMANDS
   ========================================================= */

code {
    padding: 2px 6px;

    color: #d9ecff;
    background: #17324d;

    border-radius: 5px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.9em;
}

pre {
    overflow-x: auto;

    padding: 20px;

    color: #e8f4ff;
    background: #14283c;

    border-radius: var(--radius);

    box-shadow: var(--shadow-small);
}

pre code {
    padding: 0;
    background: transparent;
}


/* =========================================================
   23. FORMULAS / TECHNICAL VALUES
   ========================================================= */

.formula-box {
    margin: 24px 0;
    padding: 22px;

    text-align: center;

    background: #f3f7fb;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.formula {
    color: var(--team-blue-dark);

    font-family:
        "Times New Roman",
        serif;

    font-size: 1.35rem;
    font-weight: 700;
}


/* =========================================================
   24. IMAGES / IMAGE CARDS
   ========================================================= */

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin: 28px 0;
}

.image-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-small);
}

.image-card img {
    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    cursor: zoom-in;

    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.025);
}

.image-card-content,
.image-caption {
    padding: 14px 16px;

    color: var(--text-soft);

    font-size: 0.88rem;
}

.image-card-content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--team-blue-dark);
}


/* =========================================================
   25. SINGLE TECHNICAL IMAGE
   ========================================================= */

.technical-image {
    margin: 28px 0;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-small);
}

.technical-image img {
    width: 100%;

    border-radius:
        var(--radius)
        var(--radius)
        0
        0;

    cursor: zoom-in;
}

.technical-image figcaption {
    padding: 13px 16px;

    color: var(--text-soft);

    font-size: 0.87rem;
}


/* =========================================================
   26. LIGHTBOX
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(5, 17, 29, 0.94);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;

    max-width: min(1200px, 95vw);
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 82vh;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.82);

    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2;

    width: 44px;
    height: 44px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    font-size: 1.5rem;

    cursor: pointer;
}


/* =========================================================
   27. CHAPTER QUIZ CTA
   ========================================================= */

.quiz-cta {
    margin-top: 40px;
    padding: 34px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--team-blue-dark),
            var(--team-blue-medium)
        );

    border-radius: var(--radius-large);

    box-shadow: var(--shadow);
}

.quiz-cta h2,
.quiz-cta h3 {
    color: #ffffff;
}

.quiz-cta p {
    max-width: 700px;

    color: rgba(255, 255, 255, 0.82);
}

.quiz-cta .button {
    margin-top: 8px;
}


/* =========================================================
   28. CHAPTER NAVIGATION
   ========================================================= */

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 40px;
}

.chapter-nav-link {
    display: flex;
    flex: 1;
    flex-direction: column;

    max-width: 48%;
    padding: 18px 20px;

    color: var(--team-blue);

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.chapter-nav-link:hover {
    transform: translateY(-2px);

    border-color: var(--team-blue-medium);

    box-shadow: var(--shadow);
}

.chapter-nav-link.next {
    margin-left: auto;
    text-align: right;
}

.chapter-nav-label {
    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.chapter-nav-title {
    font-weight: 800;
}


/* =========================================================
   29. DOCUMENT CARDS
   ========================================================= */

.document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;

    margin-top: 30px;
}

.document-card {
    padding: 28px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.document-card h2,
.document-card h3 {
    margin-bottom: 10px;
}

.document-card p {
    color: var(--text-soft);
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 18px 0;
}

.document-meta span {
    padding: 5px 9px;

    color: var(--team-blue);

    background: var(--team-blue-light);

    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 700;
}


/* =========================================================
   30. GENERIC STATUS
   ========================================================= */

.status-success {
    color: var(--success);
}

.status-warning {
    color: var(--warning);
}

.status-danger {
    color: var(--danger);
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 800;
}

.badge-blue {
    color: var(--team-blue);
    background: var(--team-blue-light);
}

.badge-success {
    color: #11683f;
    background: var(--success-light);
}

.badge-warning {
    color: #875900;
    background: var(--warning-light);
}


/* =========================================================
   31. FOOTER
   ========================================================= */

.site-footer {
    padding: 38px 0;

    color: rgba(255, 255, 255, 0.75);

    background: #10283f;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: auto;
    max-width: 135px;
    max-height: 48px;

    object-fit: contain;
}

.footer-brand strong {
    display: block;

    color: #ffffff;
}

.footer-brand p {
    margin: 2px 0 0;

    font-size: 0.84rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);

    font-size: 0.87rem;
    font-weight: 650;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   32. UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-blue {
    color: var(--team-blue);
}

.text-muted {
    color: var(--text-soft);
}

.background-white {
    background: #ffffff;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}


/* =========================================================
   33. PRINT BASIS
   ========================================================= */

@media print {

    body {
        color: #000000;
        background: #ffffff;
    }

    .site-header,
    .site-footer,
    .chapter-sidebar,
    .chapter-navigation,
    .quiz-cta,
    .button,
    .lightbox {
        display: none !important;
    }

    .content-section {
        box-shadow: none;
        break-inside: avoid;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}