/* DCGR - Local PT Sans fonts */

@font-face {
    font-family: "PT Sans";
    src: url("../fonts/ptsans/PT_Sans-Web-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("../fonts/ptsans/PT_Sans-Web-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("../fonts/ptsans/PT_Sans-Web-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "PT Sans";
    src: url("../fonts/ptsans/PT_Sans-Web-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/*
 * DCGR - TOPSEVEN
 * Cassiopeia child template
 * Design version 1.0
 * 25 November 2026
 *
 * Clean reconstruction.
 * No legacy template source code reused.
 */

:root {
    --topseven-background: #355d77;
    --topseven-link: #315670;
    --topseven-width: 1140px;

    --cassiopeia-color-primary: #355d77;
    --cassiopeia-color-link: #315670;
    --cassiopeia-color-hover: #203e52;

    --body-font-size: 15px;
    --body-color: #171717;
    --body-font-family: "PT Sans", Arial, sans-serif;
}

body {
    font-family: "PT Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #171717;
    background-color: var(--topseven-background);
    background-image: url("/images/bg.jpeg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: var(--topseven-link);
}

a:hover {
    color: #203e52;
}

/* Header and original Topseven logo */

.container-header {
    width: 100%;
    max-width: var(--topseven-width);
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}

.container-header .grid-child {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
}

.container-header .navbar-brand {
    display: block;
    width: 100%;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    white-space: normal;
}

.container-header .brand-logo {
    display: block;
    width: 100%;
}

.container-header .brand-logo img {
    display: block;
    width: 100%;
    max-width: 1000px;
    max-height: none;
    height: auto;
    margin: 0 auto;
}

/* Horizontal main menu */

.container-header .container-nav {
    background: #315670;
    border-radius: 2px;
    padding: 0 12px;
    min-height: 48px;
}

.container-header .mod-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover {
    background-color: rgba(255,255,255,.15);
    color: #ffffff;
}

.container-header .metismenu.mod-menu .mm-collapse {
    background: #ffffff;
}

.container-header .metismenu.mod-menu .mm-collapse a {
    color: #171717;
}

/* Main page */

.site-grid {
    width: calc(100% - 24px);
    max-width: var(--topseven-width);
    margin: 12px auto 0;
    padding: 0;
    gap: 0 14px;
    grid-template-columns:
        [full-start main-start]
        repeat(4, minmax(0, 1fr))
        [main-end full-end];

    grid-template-areas:
        "banner banner banner banner"
        "top-a top-a top-a top-a"
        "top-b top-b top-b top-b"
        "comp comp comp comp"
        "side-r side-r side-r side-r"
        "side-l side-l side-l side-l"
        "bot-a bot-a bot-a bot-a"
        "bot-b bot-b bot-b bot-b";
}

.site-grid > .container-component {
    min-width: 0;
    background: #ffffff;
    padding: 24px;
    border-radius: 3px;
}

.container-sidebar-left,
.container-sidebar-right {
    min-width: 0;
}

.site-grid .card {
    background: #f7f8f9;
    border: 1px solid #d7dfe4;
    border-radius: 3px;
    box-shadow: none;
}

.site-grid .card-header {
    font-size: 16px;
    color: #315670;
    background: #e6edf1;
}

.site-grid .card-body {
    padding: 14px;
}

/* Desktop: 25 / 50 / 25 column structure */

@media (min-width: 992px) {
    .site-grid {
        grid-template-areas:
            "banner banner banner banner"
            "top-a top-a top-a top-a"
            "top-b top-b top-b top-b"
            "side-l comp comp side-r"
            "bot-a bot-a bot-a bot-a"
            "bot-b bot-b bot-b bot-b";
    }
}

/* Content and media */

h1, h2, h3, h4, h5, h6 {
    font-family: "PT Sans", Arial, sans-serif;
    color: #315670;
    font-weight: 700;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 23px;
}

h3 {
    font-size: 18px;
}

.container-component img,
.card-body img {
    max-width: 100%;
    height: auto;
}

.container-component iframe,
.card-body iframe {
    max-width: 100%;
}

.breadcrumb {
    background: transparent;
    padding-left: 0;
    font-size: 13px;
}

/* Footer */

.container-footer {
    width: 100%;
    max-width: var(--topseven-width);
    margin: 12px auto 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.container-footer .grid-child {
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.container-footer a {
    color: #ffffff;
}

/* Mobile layout */

@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
    }

    .container-header {
        width: calc(100% - 24px);
    }

    .container-header .navbar-brand {
        padding: 12px 0;
    }

    .container-header .mod-menu > li > a {
        padding: 10px 12px;
    }

    .site-grid {
        row-gap: 12px;
    }

    .site-grid > .container-component {
        padding: 16px;
    }

    h1 {
        font-size: 24px;
    }
}


/*
 * DCGR - TOPSEVEN LAYOUT 1.1
 * 25 November 2026
 *
 * Sidebar alignment and calendar spacing.
 * Original template files remain untouched.
 */

.site-grid > .container-component,
.site-grid > .container-sidebar-left,
.site-grid > .container-sidebar-right {
    min-width: 0;
    margin-top: 0;
}

/* Align all three columns at their upper edge. */

@media (min-width: 992px) {

    .site-grid > .container-component,
    .site-grid > .container-sidebar-left,
    .site-grid > .container-sidebar-right {
        align-self: start;
    }

    .site-grid > .container-sidebar-left > :first-child,
    .site-grid > .container-sidebar-right > :first-child {
        margin-top: 0;
    }

    .site-grid > .container-sidebar-left > .card:first-child,
    .site-grid > .container-sidebar-right > .card:first-child {
        margin-top: 0;
    }

}

/* Sidebar module spacing. */

.site-grid .container-sidebar-left .card,
.site-grid .container-sidebar-right .card {
    min-width: 0;
}

.site-grid .container-sidebar-left .card-body {
    padding: 6px;
    min-width: 0;
}

.site-grid .container-sidebar-right .card-body {
    padding: 14px;
}

.site-grid .container-sidebar-left iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

/* Breadcrumb spacing. */

.site-grid .container-component .breadcrumb {
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 14px;
}

/* Preserve responsive images and narrow-screen layout. */

.site-grid .container-component img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {

    .site-grid > .container-sidebar-left,
    .site-grid > .container-sidebar-right {
        width: 100%;
        min-width: 0;
    }

}



/*
 * DCGR - TOPSEVEN FOOTER 1.0
 * 25 November 2026
 */

footer.container-footer {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 1140px;
    margin: 14px auto 20px;
    padding: 0;
    background: #315670;
    background-image: none;
    color: #ffffff;
    border: 0;
    border-radius: 2px;
}

footer.container-footer .grid-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    box-sizing: border-box;
}

footer.container-footer .mod-custom {
    width: 100%;
    text-align: center;
    color: #ffffff;
}

footer.container-footer p {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
}

@media (max-width: 767.98px) {

    footer.container-footer {
        width: calc(100% - 24px);
        margin: 14px auto 12px;
    }

}

