/* ==========================================================
   HITisIT – Office 365-studentenpagina's
   Definitieve gezamenlijke Office-componenten voor Word, Excel
   en PowerPoint; identieke iconen, titels en tipkaarten
   Gebruikt naast css/site-modern.css
   ========================================================== */

.studenten365-page {
    --student-accent: #0DA6E0;
    --student-red: #FF0000;
    --student-text: #18324b;
    --student-muted: #5f7285;
    --student-border: #dce5ed;
    --student-surface: #ffffff;
}

/* Navigatie: blauwe balk en rode lijn bij de actieve pagina */
.studenten365-page .main-navigation {
    background: var(--student-accent);
}

.studenten365-page .main-navigation a:hover,
.studenten365-page .main-navigation a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.studenten365-page .main-navigation a.active,
.studenten365-page .main-navigation a.active:hover,
.studenten365-page .main-navigation a.active:focus-visible {
    color: #ffffff;
    background: transparent;
}

.studenten365-page .main-navigation a.active::after {
    right: 16px;
    bottom: 5px;
    left: 16px;
    height: 4px;
    background: var(--student-red);
    border-radius: 3px;
}

/* Kruimelpad */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: #718396;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--student-accent);
    font-weight: 400;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hoofdindeling van de Word-, Excel- en andere studentenpagina's */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Verhouding 32 : 35 : 35. Basis 0 houdt de kolommen samen
   met de tussenruimte netjes binnen de beschikbare breedte. */
.left-column {
    flex: 32 1 0;
}

.center-column {
    flex: 35 1 0;
}

.right-column {
    flex: 35 1 0;
}

.left-column,
.center-column,
.right-column {
    min-width: 0;
}

.left-column,
.right-column {
    display: grid;
    gap: 22px;
}

.center-column {
    display: grid;
    gap: 24px;
}

/* Gedeelde Office-titel in het bovenste middenblok */
.center-intro-card {
    padding: 22px;
}

.office-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
}

.office-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    border-radius: 7px;
}

.office-icon-word {
    background: #185ABD;
}

.office-icon-excel {
    background: #107C41;
}

.office-icon-powerpoint {
    background: #D24726;
}

.office-icon-home {
    background: #FF0000;
}

.office-title {
    margin: 0;
    color: var(--student-red);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

/* Algemene witte inhoudskaarten */
.panel,
.center-intro-card,
.feature-card {
    background: var(--student-surface);
    border: 1px solid var(--student-border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(24, 50, 75, 0.07);
}

.panel {
    overflow: hidden;
    padding: 22px;
}

.panel-title,
.quiz-title {
    margin: -22px -22px 18px;
    padding: 15px 20px;
    color: var(--student-red);
    font-size: 18px;
    line-height: 1.3;
    background: var(--student-accent);
}

.quiz-title {
    color: var(--student-red);
    background: #ffffff;
    border-bottom: 3px solid var(--student-accent);
}

.download-link,
.feature-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #ffffff;
    font: inherit;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background: var(--student-accent);
    border: 0;
    border-radius: 8px;
}

.download-link:hover,
.feature-button:hover {
    filter: brightness(0.92);
}

.updates-text {
    margin: 0;
    color: var(--student-muted);
}

.updates-text a {
    color: var(--student-accent);
    font-weight: 400;
}


/* Hyperlinks in de inhoud blijven normaal van gewicht; koppen en maptitels behouden nadruk. */
.left-column a:not(.download-link),
.center-column a,
.right-column a {
    font-weight: 400;
}

/* Compacte introductietekst in het bovenste middenblok */
.center-intro-card > .intro {
    margin: -2px 0 0;
    padding: 0;
    color: var(--student-muted);
    font-size: 15px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.center-intro-card > .intro strong {
    color: var(--student-text);
}

/* Informatietegels */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: var(--student-accent);
}

.feature-card h2 {
    margin: 0 0 9px;
    color: var(--student-text);
    font-size: 20px;
    line-height: 1.35;
}

.feature-card p {
    flex: 1 1 auto;
    margin: 0 0 18px;
    color: var(--student-muted);
}

/* Gedeelde dagelijks wisselende Office-tip */
.office-tip-card {
    overflow: hidden;
    background: var(--student-surface);
    border: 1px solid var(--student-border);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(24, 50, 75, 0.07);
}

.office-tip-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 13px 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    background: #FF0000;
}

.office-tip-image-wrap {
    padding: 18px;
    background: #ffffff;
}

.office-tip-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Bestaande uitklaplijsten */
.treeview,
.treeview ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.treeview > li {
    margin-bottom: 10px;
    padding: 11px 12px;
    color: var(--student-text);
    background: #f7fafc;
    border: 1px solid #e3ebf2;
    border-radius: 9px;
}

.treeview > li:last-child {
    margin-bottom: 0;
}

.treeview li ul {
    margin-top: 8px;
    padding: 9px 0 0 17px;
    border-top: 1px solid #e0e8ef;
}

.treeview li li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 13px;
    color: var(--student-muted);
    font-size: 14px;
    line-height: 1.45;
}

.treeview li li::before {
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--student-accent);
    border-radius: 50%;
    content: "";
}

.treeview a {
    color: #126e96;
    text-decoration: none;
}

.treeview a:hover {
    color: var(--student-red);
    text-decoration: underline;
}

.treeview img {
    display: inline-block;
    width: auto;
    max-width: none;
    margin-left: 4px;
    vertical-align: middle;
}

/* Grote rechterkolom mag niet buiten het scherm drukken */
.right-column .panel {
    max-height: none;
}


/* Tablet */
@media (max-width: 1100px) {
    .layout {
        display: grid;
        grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.35fr);
    }

    .right-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .student-intro {
        padding: 30px;
    }

    .student-intro p {
        font-size: 17px;
        line-height: 1.7;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    /* Mobiele volgorde: eerst midden, daarna links, als laatste rechts */
    .center-column {
        order: 1;
    }

    .left-column {
        order: 2;
    }

    .right-column {
        grid-column: auto;
        order: 3;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Telefoon */
@media (max-width: 520px) {
    .student-intro {
        padding: 25px 22px;
        border-radius: 14px;
    }

    .student-intro h1 {
        font-size: 20px;
    }

    .student-intro p {
        font-size: 16px;
    }

    .center-intro-card,
    .panel,
    .feature-card {
        border-radius: 11px;
    }

    .panel {
        padding: 18px;
    }

    .panel-title,
    .quiz-title {
        margin: -18px -18px 16px;
    }
}

/* ==========================================================
   Uitklapbare mappen – downloads en proeftoetsen in de linkerkolom
   ========================================================== */

.folder-tree,
.folder-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.folder-tree > li {
    margin: 0;
    padding: 0;
}

.folder-tree > li + li {
    margin-top: 7px;
}

.folder-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 30px;
    padding: 3px 2px;
    color: #000000;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.folder-toggle:hover,
.folder-toggle:focus-visible {
    background: rgba(13, 166, 224, 0.09);
    outline: none;
}

.folder-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.folder-label-text {
    min-width: 0;
}

@media (min-width: 1101px) {
    .right-folder-tree .folder-label-text {
        white-space: nowrap;
    }
}

.folder-label strong {
    font-weight: 700;
}

.folder-apple-logo {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px !important;
    height: 12px !important;
    margin: 0 !important;
    object-fit: contain;
}

/* Originele mapafbeeldingen van de oude Word-pagina */
.folder-icon {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.folder-content {
    margin: 3px 0 9px 29px !important;
    padding: 0 !important;
}

.folder-content[hidden] {
    display: none !important;
}

.folder-content li {
    position: relative;
    margin: 0 0 4px;
    padding: 0 0 0 17px;
    color: var(--student-muted);
    font-size: 15px;
    line-height: 1.4;
}

.folder-content li::before {
    position: absolute;
    top: 0.45em;
    left: 1px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--student-accent);
    content: "";
}

.folder-content a {
    color: var(--student-red);
    text-decoration: none;
}

.folder-content a:hover,
.folder-content a:focus-visible {
    text-decoration: underline;
}

.folder-content br {
    display: none;
}



/* ==========================================================
   Rechterkolom – dezelfde kaart- en mapstijl als links
   De bestaande linkerkolom blijft ongewijzigd.
   ========================================================== */

.right-column .quiz-title {
    color: var(--student-red);
    background: var(--student-accent);
    border-bottom: 0;
}

.right-folder-tree .folder-toggle {
    align-items: flex-start;
}

.right-folder-tree .folder-icon {
    margin-top: 2px;
}

.right-folder-tree .folder-content {
    margin-top: 5px !important;
}


/* ==========================================================
   Definitieve linkgewichten
   Deze regels staan bewust onderaan zodat oudere, specifiekere
   stijlen uit andere stylesheets niet meer kunnen overschrijven.
   ========================================================== */
.studenten365-page .left-column a,
.studenten365-page .center-column a,
.studenten365-page .right-column a,
.studenten365-page .folder-content a,
.studenten365-page .updates-text a {
    font-weight: 400 !important;
}

/* Navigatie en koppen behouden hun eigen nadruk. */
.studenten365-page .main-navigation a {
    font-weight: inherit;
}


/* ==========================================================
   Definitieve correctie: geen enkele inhoudslink of onderliggend
   element mag vet worden, ook niet door oude <strong>/<b>-HTML.
   ========================================================== */
.studenten365-page .left-column a,
.studenten365-page .left-column a *,
.studenten365-page .center-column a,
.studenten365-page .center-column a *,
.studenten365-page .right-column a,
.studenten365-page .right-column a *,
.studenten365-page .updates-text a,
.studenten365-page .updates-text a * {
    font-weight: normal !important;
    font-synthesis: none;
}

/* De maptitels en gewone koppen blijven wel vet. */
.studenten365-page .folder-toggle,
.studenten365-page .folder-label-text,
.studenten365-page .panel-title,
.studenten365-page .quiz-title {
    font-weight: 700;
}
