/* Box sizing rules */
 *,
 *::before,
 *::after {
     box-sizing: border-box;
 }

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;word-wrap: normal !important;
}
/*The CSS elements that are only visible on keyboard focus (like skiplinks)*/
.skip-link.screen-reader-text:focus {
    background-color: #eee;  clip: auto !important;  clip-path: none;  color: #444;  display: block;  font-size: 1em;  height: auto;  left: 5px;  line-height: normal;  padding: 15px 23px 14px;  text-decoration: none;  top: 5px;  width: auto;  z-index: 100000;
}

/* Start site specific code */
/* Variable declarations */
:root {
    --dk-blue: rgb(27, 50, 139);
    --red: rgb(247, 0, 0);
    --lt-blue: rgb(77, 217, 246);
    --dk_grey: rgb(43, 43, 43);
    --wht: rgba(255,255,255,1);
    --wht_80: rgba(255,255,255,0.8);
    --lt_gry: rgba(236,236,236,1);
    --borders: rgba(170,170,170,1);
    --lt_txt: rgba(85, 85, 85,1);
    --txt: rgba(51,51,51,1);
    --blk: rgba(0,0,0,1);
    --blk_50: rgba(0,0,0,0.5);
    --mid-grey: rgba(77, 77, 77, 1);

    /* font sizes */
    --fs14: 0.875rem;
    --fs16: 1rem;
    --fs18: 1.125rem;
    --fs20: 1.25rem;
    --fs24: 1.5rem;
    --fs26: 1.625rem;
    --fs30: 1.875rem;
    --fs36: 2.25rem;
    --fs48: 3rem;

    /* Layout */
    --third: 31.4516%;
    --two_third: 62%;
}

/* Main site styles */
html {
    background-image: linear-gradient(var(--mid-grey), var(--blk));
}

body {
    font-size: 16px;
    line-height: 1.5;
    font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;;
    color: var(--txt);
    font-weight: 400;
    width: 90%;
    margin-left:auto;
    margin-right: auto;
}

h1 {
    font-weight: 700;
    font-size: var(--fs36);
    line-height: 1.1;
}

h2, .strapline {
    font-weight: 700;
    font-size: var(--fs26);
    margin-bottom: 1em;
    line-height: 1.2;
}

h3 {
    font-weight: 700;
    font-size: var(--fs24);
    margin-bottom: 1em;
}

em, i {
    font-style: italic;
    font-weight: 400;
}

strong, b {
    font-weight: 700;
}

p {
    margin-bottom: 0.5em;
    font-size: var(--fs18);
}
a{
    color: var(--txt);
    text-decoration-color: var(--red);
    text-decoration-line: underline;
}

a:hover, a:focus {
    text-decoration-color: var(--txt);
}
blockquote {
    background: var(--lt_gry);
    padding: 2em 0;
    margin: 3em 0;
}
blockquote p{
    margin: 0 2rem 0.5rem 2rem;
}
blockquote p:before {
    content: "\201C";
    margin-left: -0.5rem;
}
blockquote p:after{
    content: "\201D";
}
blockquote cite {
    margin: 0 2rem;
}
.more {
    margin-top: 1em;
}

.more a {
    font-size: var(--fs16);
    font-weight: 600;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: var(--blk);
    border: 3px solid var(--blk);
}

.more a:hover, .more a:focus {
    text-decoration: none;
    color: var(--red);
    border: 3px solid var(--red);
    background: var(--wht);
}

.container {
    max-width: 86%;
    margin: 0 auto;
}

/* Header Area Layout */
header {
    color: var(--wht);
    padding: 30px 0;
    overflow: hidden;
}

header .branding {
    width: 65%;
    float:  left;
}

header .nav-area {
    float:right;
    width:25%;
    margin-top: 0.5em;
    }

header .nav-area .menu-icon {
    text-align: right;
    font-size: var(--fs36);
    text-shadow: 1px 1px rgba(0,0,0,0.7);
}

/* Hide Privacy Policy from desktop menu */
header .nav-area .main-nav li.hidden {
    display: none;
}

.heading-outer-wrapper {
    background: var(--dk_grey) url("../images/bg-cda-page-dark.jpg") no-repeat top center;
    background-size: cover;
}

.heading-outer-wrapper .title-area h1 {
   color: white;
    margin: 1em 0 0.25em 0;
}

.heading-outer-wrapper .title-area .strapline {
    color: var(--lt-blue);
}

.title-area {
    padding-bottom: 1.5em;
}

/* Main Content Area */

.outer-wrapper {
    background: var(--wht);
    padding-top:5em;
    padding-bottom:2em;
}

.content {
    color: var(--txt);
}

.content h2{
    color:var(--dk-blue);
}

.content h3 {
    margin: 2em  0 0.1em 0;
    font-size: var(--fs30);
    line-height: 1.15;
}


.content a {
    color: var(--red);
}

.content a:hover, .content a:focus {
    color: var(--blk);
}

.content ul {
    margin: 1.5em 0;
    font-size: var(--fs18);
}
.content li {
    margin-bottom: 0.5em;
}

/* Navigation menu styles */
.menu-icon {
    display: block;
    text-decoration: none;
    font-size: var(--fs24);
    font-weight: 600;
    margin: 0.5em 0.5em 0.5em 7%;
    color: var(--wht);
}

.menu-icon:hover, .menu-icon:focus {
    color: var(--blk);
}

.nav-area .main-nav{
    text-align: right;
    padding: 0.5em 0;
}

.nav-area .main-nav li {
    display:inline-block;
    list-style: none;
    font-size: var(--fs24);
    font-weight: 700;
    line-height: 1;
}

.nav-area .main-nav li:nth-child(1){
    border-left:none;
}

.home .nav-area .main-nav li a {
    color: #111;
}

.nav-area .main-nav li a {
    color: var(--lt_gry);
    text-decoration: none;
    padding: 1em 0.4em;
}

.nav-area .main-nav li a:hover, .nav-area .main-nav li a:focus {
    color: var(--wht);
    text-decoration: underline;
    text-decoration-color: var(--red);
}

.home #nav-home > a, .about #nav-about > a, .contact #nav-contact > a, .services #nav-services > a, .privacy #nav-privacy > a, .partners #nav-partners > a, .membership #nav-members > a {
    text-decoration: underline;
    text-decoration-color: var(--red);
}

/* OVERRIDE MMENU STYLES */
body .mm-spn.mm-spn--navbar.mm-spn--main::after{
    text-transform: uppercase;
}
body .mm-spn a {
    font-size: var(--fs20);
    font-weight:700;
}

/* Footer Area */
.footer {
    background: var(--dk_grey) url("../images/footer_cda_graphic.png") no-repeat bottom right;
    background-size: 370px auto;
    color: var(--wht);
    padding: 3em 0 2.5em 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

.footer p {
    font-size: var(--fs14);
    text-align: center;
}

.footer a {
    color: var(--wht);
    white-space: nowrap;
    text-decoration: none;
}

.footer a:hover, .footer a:focus {
    color: var(--wht);
    text-decoration: underline;
    text-decoration-color: var(--red);
}

.footer .footer-menu {
    text-align: center;
    padding-left: 0;
    margin-bottom: 2em;
}

.footer .footer-menu li {
    display: inline-block;
    list-style: none;
    border-left: 1px solid var(--borders);
    margin-left:0.5em;
    padding-left: 0.5em;
    line-height: 1.25;
    font-size: var(--fs16);
    margin-bottom: 0.5em;
}

.footer .footer-menu li:first-of-type {
    border-left:none;
    padding-left: 0;
    margin-left:0;
}

.footer .credit {
    margin-top:1.5em;
    color: var(--lt_gry);
}

.footer .credit a {
    color: var(--lt_gry);
}

.footer .credit a:hover, .footer .credit a:focus {
    text-decoration-color: var(--lt_gry);
}

/* Home page specific */

.hero-outer-wrapper {
    background: var(--dk_grey) url("../images/home_cda_hero_graphic.png") no-repeat top right;
}

.hero .panel {
    padding: 0 0.5em 2em 0.5em;
    margin: 0;
    color: var(--wht);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

.hero h1 {
    margin-bottom: 0.25em;
}

.hero .strapline {
    font-size: var(--fs20);
    line-height: 1.1;
}

.hero p {
    font-size: var(--fs16);
    line-height: 1.33;
}

.hero .panel:nth-child(1) {
      animation: pull-in-panel 0.75s ease-in both;
  }
.hero .panel:nth-child(2) {
    animation: pull-in-panel 0.75s ease-in .5s both;
}
.hero .panel:nth-child(3) {
    animation: pull-in-panel 0.75s ease-in 1s both;
}
@keyframes pull-in-panel {
    from {-ms-transform: scale(0); -webkit-transform: scale(0); transform: scale(0);}
    to {-ms-transform: scale(1); -webkit-transform: scale(1); transform: scale(1);}
}

.home .content .flex-panel{
    margin-bottom: 3em;
    padding-bottom: 1.5em;
}
.home .content .flex-panel:after, .cda-service:after {
    content : "";
    display: block; /* This will put the pseudo element on its own line. */
    margin: 0 auto; /* This will center the border. */
    width: 60%; /* Change this to whatever width you want. */
    padding-top: 3em; /* This creates some space between the element and the border. */
    border-bottom: 1px solid var(--borders);
}

.home .content h2 {
    text-align: left;
    margin-top:1em;
    font-size: var(--fs36);
    text-transform: uppercase;
}



/* Service Page Styles */

.cda-service:after, .partners .intro:after, .membership .intro:after {
    content : "";
    display: block; /* This will put the pseudo element on its own line. */
    margin: 0 auto; /* This will center the border. */
    width: 60%; /* Change this to whatever width you want. */
    padding-top: 3em; /* This creates some space between the element and the border. */
    border-bottom: 1px solid var(--borders);
}

.cta a {
    color: var(--wht);
    text-transform: uppercase;
    padding: 1em;
    display: block;
    text-decoration: none;
    background: var(--dk-blue);
    margin: 3em 0;
    text-align: center;
    font-weight: 700;
    font-size: var(--fs20);
    transition: all 0.5s;
}

.cta a:hover, .cta a:focus {
    background: var(--lt-blue);
}

/* CONTACT PAGE STYLES */
.contact .content p {
    font-size: var(--fs20);
}

.contact .outer-wrapper {
    padding-bottom: 0;
}

.contact .footer.outer-wrapper {
    padding-bottom: 2.5em;
}

.map-responsive{
    overflow:hidden;
    padding-bottom:80%;
    position:relative;
    height:0;
    margin-bottom: 0;
    margin-top:50px;
}

.map-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

/* PARTNER PAGE STYLES */
.partners .content .flex-container{
   display: flex;
    justify-content:normal;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
}
.partners .flex-panel {
    list-style: none;
}

.partners .flex-panel h3 {
    font-size: var(--fs30);
    margin-bottom: 0.5em;
}

.partners a img {
    border: 1px solid transparent;
}

.partners a:hover img, .partners a:focus img  {
    border: 1px solid var(--borders);
}

.partners p {
    margin-top:1.5em;
}

.partners p a {
    font-weight: 700;
    color: var(--blk);
    text-decoration-color: var(--red);
}

.partners p a:hover, .partners p a:focus {
    color: var(--red);
}

.content .pdf{
    margin-left: 5%;
    margin-right: 5%;
}

.content .pdf p a {
    font-weight: bold;
    color: var(--txt);
    text-decoration-color: var(--red);
}

.content .pdf p a:hover, .content .pdf p a:focus {
    color: var(--red);
}


.pdf-embed {
    margin-top:45px;
    width: 100%;
    aspect-ratio: 1.414 / 1;
}

/* Responsive styles */
/* Media landscape phone (640px)*/
@media screen and (min-width: 40em){
    .partners .flex-panel {
        width:45%;
        margin-left:4.5%;
    }
}
/* Media tablet+ (768px)*/
@media screen and (min-width: 48em){
    header .branding  {
        float: left;
        width: 50%;
    }
    header .branding img {
        margin: 0;
    }

    .page {
        padding: 4em 0;
        overflow: hidden;
    }
    .map-responsive{
        padding-bottom:45%;
    }

}

/* Media old desktop+ (992px) */
@media screen and (min-width: 62em){
    header .branding  {
        width: 30%;
    }

    header .nav-area {
        float: right;
        width: var(--two_third);
    }

    .menu-icon {
        display: none;
    }

    .hero .panel {
        width: 75%;

    }
    .hero .strapline {
        font-size: var(--fs24);
        color: var(--lt-blue);
    }
    .hero p {
        font-size: var(--fs18);
        line-height: 1.5;
    }
    h1 {
        font-size: var(--fs48);
    }
    .strapline {
        font-size: var(--fs30);
    }
    .content h3 {
        font-size: var(--fs30);
    }
    .home .content h2 {
        text-align:center;
    }
    .content .flex-container{
        display: flex;
        justify-content:space-between;
    }
    .home .content .flex-panel {
        width:30%;
    }
    .home .content .flex-panel:after {
        border-bottom: none;
    }
    .services .content, .privacy .content, .contact .content, .partners .intro, .membership .intro {
        margin-left:10%;
        margin-right:10%;
    }

    .error .content {
        margin-left: 20%;
        margin-right: 20%;
    }

    .cda-service:after {
        width: 80%;
    }

    .contact .flex-container .panel {
        width:48%;
    }

    .contact .flex-container .panel h3{
        margin-top:0;
        margin-bottom: 0.5em;
    }
    .map-responsive{
        padding-bottom:25%;
    }

    .partners .flex-panel {
        width: 30%;
        margin-left: 3%;
    }
    .partners .flex-panel h3 {
        font-size: var(--fs24);
    }
}

/* Media desktop+ (1280px) */
@media screen and (min-width: 80em){
    .container {
        max-width:96%;
        text-align: left;
    }
    header .branding {
        width:26%;
    }

    header .nav-area {
        width: 70%;
    }

    header p {
        font-size: var(--fs24);
    }

    .hero .panel {
        width: 55%;
    }

    .partners .flex-panel {
        width: 22%;
        margin-left: 2.85%;
    }
    .partners .flex-panel h3 {
        font-size: var(--fs30);
    }

}
/*Media larger desktop display (+1440px) */
@media screen and (min-width: 90em){
    body {
        max-width: 1440px;
    }
    .container {
        max-width: 1240px;
        text-align: left;
    }
}