﻿:root {
    --primary: #33393d;
    --text: #33393d;
    --ccvprimary: #522a6c;
    --ccvsecondary: #0172a6;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    overflow-x: hidden;
}

.landing-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.app-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* GLOBAL BACKGROUND */

.app-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    height: 100vh;
}

.navbar {
    background: transparent !important;
}

/* COURT IMAGE */
.court-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(255,255,255,.91), rgba(255,255,255,.93) ), url('/images/ccv-bg.png');
    background-size: cover;
    background-position: center;
    z-index:1;
}

/* BACKGROUND GLOW */
.background-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-left {
    width: 500px;
    height: 500px;
    background: rgba(17,43,92,.12);
    left: -120px;
    top: 120px;
}

.glow-right {
    width: 600px;
    height: 600px;
    background: rgba(200,164,93,.10);
    right: -180px;
    top: 250px;
}

/* HEADER */
.topbar {
    padding: 32px 0;
    position: relative;
    z-index: 2;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index:10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(17,43,92,.25);
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-subtitle {
    color: var(--muted);
    font-size: .9rem;
    letter-spacing: 2px;
}

.help-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

/* HERO */

.hero-section {
    text-align: center;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 4vw + 1.5rem, 4rem);
    line-height: 1.1;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--muted);
}

/* PORTAL SECTION */

.portal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    padding: 48px;
    border-radius: 32px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 10px 30px rgba(15,23,42,.06), 0 30px 80px rgba(15,23,42,.10);
    transition: .25s ease;
    position: relative;
}

    .portal-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(15,23,42,.10), 0 50px 100px rgba(15,23,42,.14);
    }

.portal-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

.portal-primary {
    background: rgba(17,43,92,.08);
    color: var(--ccvprimary);
}

.portal-secondary {
    background: rgba(17,43,92,.08);
    color: var(--ccvsecondary);
}

.portal-card h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.portal-card p {
    text-align: center;
    color: var(--primary);
    line-height: 1.9;
    margin-bottom: 40px;
}

.portal-button {
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: white;
    font-weight: 600;
}

.portal-button-primary {
    background: var(--ccvprimary);
}

.portal-button-secondary {
    background: var(--ccvsecondary);
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: white;
    padding: 28px 0;
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        color: rgba(255,255,255,.8);
        text-decoration: none;
    }

/* RESPONSIVE */
@media (max-width: 991px) {

    .court-background {
        width: 100%;
        right: 0;
        opacity: .12;
    }

    .portal-card {
        padding: 36px;
    }
}

@media (max-width: 767px) {

    .brand {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        padding-top: 20px;
    }

        .hero-section h1 {
            line-height: 1.1;
        }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Custom button */
.btn-returnto,
.btn-returnto:active, .btn-returnto.active,
.btn-returnto:not(:disabled):not(.disabled):active, .btn-returnto:not(:disabled):not(.disabled).active,
.btn-returnto:not(:disabled):not(.disabled):active:focus, .btn-returnto:not(:disabled):not(.disabled).active:focus,
.btn-returnto:focus, .btn-returnto.focus {
    color: #522a6c;
    text-shadow: none; /* Prevent inheritance from body */
    background-color: #fff;
    border: .05rem solid #522a6c;
}

    .btn-returnto:hover {
        background-color: #004f73;
        border-color: #004f73;
        color: #fff;
        text-decoration: none;
    }

/* Refer to site 1.5.0.css */
.logoDiv {
    min-width: 172px;
}

@media (min-width:950px) {
    .logo {
        /*height: 110px;*/
        width: 300px;
        height: 92px;
    }
}

@media (min-width:801px) and (max-width:949px) {
    .logo {
        width: 290px;
        height: 115px;
    }

    .logoDiv {
        width: 290px;
    }
}

@media (min-width:600px) and (max-width:800px) {
    .logo {
        width: 260px;
        height: 80px;
    }

    .logoDiv {
        width: 260px;
    }
}

@media (min-width:576px) and (max-width:599px) {
    .logo {
        width: 240px;
        height: 74px;
    }

    .logoDiv {
        width: 240px;
    }
}

/*Navigation*/
.navbar-nav .nav-link {
    color: #522a6c;
}

    .navbar-nav .nav-link:hover {
        color: #2c163a;
        text-decoration-line: none;
        text-decoration: none;
        border-bottom-color: transparent !important;
    }

.nav-masthead .nav-link {
    padding: .25rem 0;
    font-size: large;
    font-weight: 700;
    border-bottom: .25rem solid transparent;
}

    .nav-masthead .nav-link:hover,
    .nav-masthead .nav-link:focus {
        border-bottom-color: rgba(255, 255, 255, .25);
    }

    .nav-masthead .nav-link + .nav-link {
        margin-left: 1rem;
    }

.nav-masthead .active .nav-link {
    color: #0172a6;
}

.navbar-collapse {
    background-color: white;
    color: #eee;
}

    .navbar-collapse .navbar-nav .nav-item {
        color: white;
    }

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(82,42,108)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.custom-toggler.navbar-toggler {
    border-color: rgb(82, 42, 108);
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

@media (max-width: 575.98px) {
    #navbarNav {
        height: calc(100% - 93px)
    }

    .top .top_link {
        padding: 0;
        left: 0;
        position: absolute
    }

    .top .logoDiv > .component__logo {
        width: 33%
    }
}

@media (min-width: 576px) and (max-width:767.98px) {
    #navbarNav {
        height: calc(100% - 133px)
    }
}

@media (max-width: 767.98px) {
    #navbarNav {
        /*background-color: #522a6c;TODO*/
        order: 2;
        overflow-x: hidden;
        overflow-y: scroll
    }
}


@media (min-width: 576px) and (max-width:767.98px) {
    /* .navbar-toggler {
        height: 133px
    }*/ /*fix nagivation (burger button alignment) */
}

/*Responsive*/
@media (min-width:950px) {
    .logo {
        /*height: 110px;*/
        width: 300px;
        height: 92px;
    }
}

@media (min-width:801px) and (max-width:949px) {
    .logo {
        width: 290px;
        height: 115px;
    }

    .logoDiv {
        width: 290px;
    }
}

@media (min-width:600px) and (max-width:800px) {
    .logo {
        width: 260px;
        height: 80px;
    }

    .logoDiv {
        width: 260px;
    }
}

@media (min-width:576px) and (max-width:599px) {
    .logo {
        width: 240px;
        height: 74px;
    }

    .logoDiv {
        width: 240px;
    }
}


/*Maximize Navigation*/
@media (min-width:414px) {
    .navbar-expand-custom {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-custom .navbar-nav {
            flex-direction: row;
        }

            .navbar-expand-custom .navbar-nav .nav-link {
                padding-right: .5rem;
                padding-left: .5rem;
            }

        .navbar-expand-custom .navbar-collapse {
            display: flex !important;
        }

        .navbar-expand-custom .navbar-toggler {
            display: none;
        }
}

/*Minimise Navigation*/
@media (max-width:414px) {
    .cover-heading {
        line-height: 38px;
        font-family: Roboto,sans-serif;
        font-size: 30px;
        font-weight: 400;
    }

    .navbar-collapse {
        color: #522a6c;
    }

        .navbar-collapse .nav-link {
            padding-left: 3px;
            color: #522a6c;
            border-bottom: 1px solid hsla(0,0%,100%,.2)
        }

        .navbar-collapse .nav-item:hover,
        .navbar-collapse .nav-item:focus {
            border-bottom-color: #522a6c;
        }

        .navbar-collapse .nav-item .active {
            background-color: #0172a6;
        }
}

a#ddmGroundFloor, a#ddmLevelOne {
    color: #522a6c;
}

.dropdown-menu > a:hover {
    background-image: none;
    background-color: rgba(132, 147, 157, 0.25);
}


/*Dropdown multilevel - Accordion*/
@media (min-width: 992px) {
    .dropdown-menu .dropdown-toggle:after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
    }

    .dropdown-menu .dropdown-menu .dropdown-item {
        color: #522a6c;
        margin-left: 0;
        margin-right: 0;
    }

    .dropdown-menu li {
        position: relative;
    }

    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu > li:hover {
        background-color: rgba(132, 147, 157, 0.25);
    }

        .dropdown-menu > li:hover > .submenu {
            display: block;
        }
}


/*Footer*/
.footer {
    /*bottom: 0;
    left: 0;*/
    left: 0 !important;
    width: 100% !important;
    color: #ffffff !important;
    background-color: #333;
    /*height: 30px;*/
}

    .footer a {
        color: #ffffff;
        font-weight: normal;
    }
/*Fix footer overrided when the height is too low. E.g. mobile landscape*/
/*@media (min-height:613px) {
    .footer {
        position: absolute;
    }
}*/

.footerlogo {
    /*width: 7em;*/
    width: 112px;
    height: 132px;
}

.bottom .acknowledgement__flags {
    white-space: nowrap
}

    .bottom .acknowledgement__flags .flag {
        display: inline-block;
        /*margin-top: 6px;*/ /*CK - 27 Jun 2022 apply flag attribute */
        vertical-align: middle;
        width: 40px;
        height: 26px
    }

/*Copyright class*/
.copyright {
    /*padding-top: 22px;*/
    padding-bottom: 10px;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

/*Court Footer*/
.social_link{
    text-align:left !important;
}

.atom__social_link {
    display: inline-block;
    height: 36px;
    text-align: center;
    width: 36px;
    text-decoration:none;
}

@media (min-width: 768px) {
    .atom__social_link {
        height: 48px;
        width: 48px
    }
}

.atom__social_link:active, .atom__social_link:focus, .atom__social_link:hover {
    text-decoration: none
}

.fab:before {
    color: #333;
    line-height: 36px
}

.fab:active:before, .fab:focus:before, .fab:hover:before {
    color: #fff;
}

.style-linkedin {
    background: #e0e4e6
}

    .style-linkedin:active,
    .style-linkedin:focus,
    .style-linkedin:hover {
        background: #0077b5;
    }

.style-twitter {
    background: #e0e4e6
}

    .style-twitter:active,
    .style-twitter:focus,
    .style-twitter:hover {
        background: #000;

    }

.style-youtube {
    background: #e0e4e6
}

    .style-youtube:active,
    .style-youtube:focus,
    .style-youtube:hover {
        background: red;
    }



@media (min-width: 768px) {
    
    .fab:before {
        font-size: 1.5rem;
        line-height: 48px
    }
}

@media (max-width:575.98px) {
    .social_link {
        text-align: center !important;
    }
    .atom__top_link {
        background-color: #522a6c;
        display: block;
        text-transform: uppercase;
        width: 100%
    }
}

.atom__top_link, .atom__top_link:active, .atom__top_link:focus, .atom__top_link:hover {
    color: #eee;
    text-decoration: none
}

    .atom__top_link .text {
        line-height: 24px;
        font-family: Source Sans Pro,sans-serif;
        font-size: 16px;
        font-weight: 400
    }

@media (min-width: 576px) and (max-width:767.98px) {
    .atom__top_link .text {
        display: none
    }
}

@media (min-width: 768px) {
    .atom__top_link .text {
        line-height: 60px;
        vertical-align: top
    }
}

@media (min-width: 576px) {
    .atom__top_link .icon {
        border: 2px solid #81549d;
        font-size: 2rem;
        line-height: 60px;
        width: 60px
    }
}

#menu__audience li {
    text-align: left
}

    #menu__audience li a {
        color: #eee;
        position: relative
    }

        #menu__audience li a span {
            display: table-cell
        }

@media (max-width: 767.98px) {
    #menu__audience li .dropdown-toggle {
        display: flex;
        justify-content: space-between
    }
}

#menu__audience li .dropdown-toggle:after {
    content: "";
    font-family: Font Awesome\ 5 Free;
    font-weight: 600;
    border: 0;
    line-height: 2em
}

#menu__audience li .dropdown-toggle[aria-expanded=true]:after {
    content: "\f107"
}

@media (min-width: 768px) {
    #menu__audience li .dropdown-toggle[aria-expanded=true] {
        background-color: #2c163a
    }
}

#menu__audience li .dropdown-menu {
    background-color: transparent;
    border-radius: 0;
    border-width: 0;
    margin: 0;
    padding: 0
}

    #menu__audience li .dropdown-menu a {
        background-color: rgba(0,0,0,.33);
        padding-left: 3rem
    }

@media (min-width: 768px) and (max-width:991.98px) {
    #menu__audience li .dropdown-menu a {
        padding-left: .5rem
    }
}

@media (min-width: 768px) {
    #menu__audience li .dropdown-menu a {
        background-color: transparent;
        border-top: 1px solid hsla(0,0%,100%,.2);
        height: inherit;
        padding-top: .5rem;
        padding-bottom: .5rem
    }
}

@media (min-width: 992px) {
    #menu__audience li .dropdown-menu a {
        padding-left: 1.5rem
    }
}

#menu__audience li .dropdown-menu a:hover {
    background-color: #522a6c
}

#menu__audience li a, #menu__footer li a {
    line-height: 22px;
    font-family: Roboto,sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.2px;
    text-transform: uppercase
}

.menu__footer {
    line-height: 22px
}

.menu__footer, .menu__main {
    font-family: Roboto,sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.2px;
    text-transform: uppercase
}
