/*
Theme Name: SHALNEW
Author: Richard East
Description: The Custom theme for SHAL

*/

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

@font-face {
    font-family: 'book_antiquabold';
    src: url('fonts/book_antiqua_bold-webfont.woff2') format('woff2'),
    url('fonts/book_antiqua_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'book_antiquaregular';
    src: url('fonts/book_antiqua-webfont.woff2') format('woff2'),
    url('fonts/book_antiqua-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'book_antiquabold_italic';
    src: url('fonts/bookantiquabolditalic-webfont.woff2') format('woff2'),
    url('fonts/bookantiquabolditalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'book_antiquaitalic';
    src: url('fonts/bookantiquaitalic-webfont.woff2') format('woff2'),
    url('fonts/bookantiquaitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{scroll-behavior:smooth}body{line-height:1}a{text-decoration-skip-ink:auto}a[href^="tel"]{color:inherit;text-decoration:none}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}input[type="search"]{-webkit-appearance:textfield}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:bold}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:#f7f7f7;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#007acc;display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}

a { text-decoration: none; color: #000;}
body { color: #000; background-color: #f8fefa; font-family: "Roboto", sans-serif; line-height: 1.4; }
.container { width:95%; max-width: 1400px; margin-left: auto; margin-right: auto; }
strong { font-weight: bold; }
.shalLogo img { max-width: 100%; }

/* =====================
   HAMBURGER
   ===================== */
.navigation-box {
    width: 45px;
    display: none;
    position: fixed;
    top: 12px;
    margin-top: 10px;
    transition: 0.15s margin ease-out;
    right: 25px;
    cursor: pointer;
    height: 33px;
    z-index: 1001;
}


.navigation-box span {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    border-radius: 6px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
    background-color: #000;
}

@media (max-width: 768px) {
    .navigation-box { display: block; }
}

.navigation-box:hover span { background-color: #F1CF60; }

.navigation-box span:nth-child(1) { top: 0px; }
.navigation-box span:nth-child(2), .navigation-box span:nth-child(3) { top: 12px; }
.navigation-box span:nth-child(4) { top: 24px; }

.navigation-box.open span:nth-child(1) { top: 12px; width: 0%; left: 50%; }
.navigation-box.open span:nth-child(2) { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); }
.navigation-box.open span:nth-child(3) { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); }
.navigation-box.open span:nth-child(4) { top: 12px; width: 0%; left: 50%; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2 { font-family: book_antiquaregular, sans-serif !important; }
h1 { font-size: 55px; }
h2 { font-size: 40px; }


@media (max-width: 768px) {

    h1 { font-size: 35px; }
    h2 { font-size: 22px; }

}


/* =====================
   NAVBAR - DESKTOP
   ===================== */
.navbar { display: inline-block; }

.topnav .shalLogo {
    display: inline-block;
    vertical-align: middle;
    max-width: 185px;
    transition: max-width 0.5s ease-in-out;
}
.topnav .shalLogo img { width: 100%; }

.topnav .navbar {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    text-align: right;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.topnav .navbar li { display: inline-block; margin-left: 20px; margin-right: 20px; font-size: 20px; }
.topnav .navbar .sub-menu li { margin-left: 0px; margin-right: 0px; font-size: 17px; width: 100%; }
.topnav .navbar li:last-child { margin-right: 0px; }
.topnav .navbar li a { text-decoration: none; color: #000; }

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.5s ease-in-out;
}
.topnav .container {
    display: block;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0;
}

.shrink .topnav { background-color: rgba(255,255,255,0.8); }
.shrink .topnav .shalLogo { max-width: 95px; }

.navbar .menu { list-style: none; margin: 0; padding: 0; }
.navbar .menu > li { position: relative; display: inline-block; }
.navbar .menu > li > a { display: block; transition: 0.3s ease; padding: 10px 15px; }
.navbar .menu > li > a:hover, .navbar .menu > li.active { background-color: #406a29; color: #fff; }
.navbar .menu > li.active a { color: #fff; }

.navbar .menu > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}
.navbar .menu > li > .sub-menu a { color: #000; }
.navbar .menu > li.active > .sub-menu { display: block; }
.navbar .menu > li > .sub-menu > li { position: relative; text-align: center; width: 100%; font-size: 17px; margin-left: 0; }
.navbar .menu > li > .sub-menu > li > a { text-align: right; display: block; padding: 10px 15px; color: #000; border-bottom: 1px solid #f0f0f0; }
.navbar .menu > li > .sub-menu > li > a:hover { background-color: #f8f8f8; }

.navbar .menu > li > .sub-menu > li > .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1001;
}
.navbar .menu > li > .sub-menu > li.active > .sub-menu { display: block; }
.navbar .menu > li > .sub-menu > li > .sub-menu > li > a { display: block; padding: 10px 15px; color: #000; border-bottom: 1px solid #f0f0f0; }
.navbar .menu > li > .sub-menu > li > .sub-menu > li > a:hover { background-color: #f8f8f8; }

.navbar .menu .menu-item-has-children > a::after { content: "\25BE"; font-size: 0.8em; }
.navbar .menu .sub-menu .menu-item-has-children > a::after { content: ' ▸'; }

/* =====================
   MOBILE NAV
   ===================== */
@media (max-width: 768px) {

    .topnav .shalLogo {
        position: relative;
        z-index: 999;
    }

    .topnav .navbar {
        margin-right:-330px;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        overflow-y: auto;
        padding-top: 70px;
        z-index: 998;
        transform: none;
        transition: margin-right 0.3s ease-in-out;
    }

    .topnav .navbar.open {
        margin-right:0px;
    }

    .topnav .navbar .menu > li {
        display: block;
        margin: 0;
    }

    .topnav .navbar .menu > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        font-size: 18px;
    }

    .topnav .navbar .menu > li > .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f4f4f4;
        padding-left: 15px;
        display: none;
    }

    .topnav .navbar .menu > li.active > .sub-menu {
        display: block;
    }

    .topnav .navbar .menu > li > .sub-menu > li > .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #ebebeb;
        padding-left: 15px;
        display: none;
    }

    .topnav .navbar .menu > li > .sub-menu > li.active > .sub-menu {
        display: block;
    }
}


/* =====================
   BUTTONS
   ===================== */
.button-white { transition: 0.3s ease; font-family: book_antiquaregular, sans-serif; background-color: #fff; border-radius: 10px; padding: 10px 30px; font-size: 18px; }
.button-white:hover { background-color: #ccc; }
.button-green { transition: 0.3s ease; font-family: book_antiquaregular, sans-serif; background-color: #406a29; color:#fff; border-radius: 10px; padding: 10px 30px; font-size: 18px; }
.button-green:hover { background-color: #6cb647; }

/* =====================
   FOOTER
   ===================== */
.footer { background-color: #406a29; color: #fff; padding: 20px 0; margin-top: 50px; }
.footer .footercontainer { display: table; width: 100%; }
.footer .copyright { text-align: left; width: 50%; display: inline-block; vertical-align: middle; }
.footer .charitynumber { text-align: right; width: 50%; display: inline-block; vertical-align: middle; }

@media (max-width: 480px) {
    .footer .footercontainer { display: block; }
    .footer .copyright { display: block; width: 100%; text-align: center; margin-bottom: 5px; }
    .footer .charitynumber { display: block; width: 100%; text-align: center; }
}

/* =====================
   HOMEPAGE - HERO
   ===================== */
.homepage .hero { position: relative; border-bottom: 2px solid #000; line-height: 0; }
.homepage .heroimage img { width: 100%; }
.homepage .hero .herocontainer { position: absolute; top: 64%; width: 100%; }
.homepage .hero .herocontainer h1 { font-size: 64px; width: 770px; line-height: 1.2; }

@media (max-width: 1200px) {
    .homepage .hero .herocontainer h1 { font-size: 56px; width: 670px; }
}
@media (max-width: 1000px) {
    .homepage .hero .herocontainer h1 { font-size: 45px; width: 570px; }
}
@media (max-width: 800px) {
    .homepage .hero .herocontainer h1 { font-size: 35px; width: 80%; }
}
@media (max-width: 550px) {
    .homepage .hero {  padding-top: 80px;  }
    .topnav .shalLogo {  max-width: 130px;  }

    .homepage .hero .herocontainer {         top: auto; bottom:3%;
        width: 100%; }
    .homepage .hero .herocontainer h1 { font-size: 22px; width: 85%; }
}

/* =====================
   HOMEPAGE - WELCOME
   ===================== */
.homepage .welcometext { padding-top: 45px; }
.homepage .welcometext h2 { font-size: 55px; }

@media (max-width: 768px) {
    .homepage .welcometext { padding-top: 25px; }
    .homepage .welcometext h2 { font-size: 36px; }
}

/* =====================
   HOMEPAGE - EVENT BOXES
   ===================== */
.homepage .eventboxes { padding-top: 40px; margin-left: -50px; display: table; }
.homepage .eventboxes img { width: 100%; }
.homepage .eventboxes .eventbox { overflow: hidden; background-color: #fff; display: inline-block; width: calc(33.333% - 50px); margin-top: 15px; margin-left: 50px; border: 1px solid #999999; border-radius: 10px; }
.homepage .eventboxes .eventbox img { border-top-left-radius: 10px; border-top-right-radius: 10px; transition: 0.5s ease; }
.homepage .eventboxes .eventbox .eventimage { overflow: hidden; line-height: 0; }
.homepage .eventboxes .eventbox:hover img { transform: scale(1.1); }
.homepage .eventboxes .eventname { font-family: book_antiquaregular, sans-serif; text-align: center; padding: 10px 7px; font-size: 20px; }

@media (max-width: 768px) {
    .homepage .eventboxes { margin-left: -20px; }
    .homepage .eventboxes .eventbox { width: calc(50% - 20px); margin-left: 20px; }
}
@media (max-width: 480px) {
    .homepage .eventboxes { margin-left: 0; display: block; }
    .homepage .eventboxes .eventbox { width: 100%; margin-left: 0; display: block; }
}

/* =====================
   HOMEPAGE - NEXT EVENT
   ===================== */
.homepage .nexteventcontainer, .homepage .joincontainer { display: table; width: 100%; }
.homepage .nextevent { margin-top: 55px; padding-bottom: 40px; padding-top: 40px; background-color: #a3ba63; }
.homepage .nextevent .nexteventtext { display: inline-block; vertical-align: middle; width: 50%; padding-left: 5%; }
.homepage .nextevent .eventimage { display: inline-block; vertical-align: middle; width: 40%; padding-left: 5%; }
.homepage .nextevent .eventimage img { width: 100%; border: 3px solid #fff; border-radius: 10px; }
.homepage .nextevent .eventicon { display: inline-block; vertical-align: middle; width: 25px; margin-right: 10px; }
.homepage .nextevent .eventicon img { width: 100%; }
.homepage .nextevent .eventtitle { padding-top: 20px; font-size: 30px; padding-bottom: 10px; }
.homepage .nextevent .eventlocation { padding-bottom: 8px; }
.homepage .nextevent .eventbutton { padding-top: 30px; }

@media (max-width: 768px) {
    .homepage .nextevent { margin-top: 30px; }
    .homepage .nexteventcontainer { display: block; }
    .homepage .nextevent .nexteventtext { display: block; width: 100%; padding: 0 20px; }
    .homepage .nextevent .eventimage { display: block; width: 80%; margin: 20px auto 0; padding-left: 0; }
    .homepage .nextevent .eventtitle { font-size: 24px; }
    .homepage .nextevent .eventbutton { padding-bottom: 10px; }
}

/* =====================
   HOMEPAGE - JOIN SHAL
   ===================== */
.homepage .joincontainer { max-width: 950px; margin-left: auto; margin-right: auto; }
.homepage .joinshal { margin-top: 40px; margin-bottom: 20px; }
.homepage .joinshal .jointitle { padding-top: 20px; font-size: 30px; padding-bottom: 10px; }
.homepage .joinshal .joinimages { display: inline-block; vertical-align: middle; width: 35%; }
.homepage .joinshal .joinimages img { width: 100%; border-radius: 10px; }
.homepage .joinshal .joinimage { padding-top: 7px; padding-bottom: 7px; }
.homepage .joinshal .joindetails { display: inline-block; vertical-align: middle; width: 65%; padding-left: 10%; }
.homepage .joinshal .joinbutton { margin-top: 40px; }

@media (max-width: 768px) {
    .homepage .joincontainer { display: block; }
    .homepage .joinshal .joinimages { display: none; }
    .homepage .joinshal .joindetails { display: block; width: 100%; padding-left: 0; }
    .homepage .joinshal .jointitle { font-size: 24px; }
    .homepage .joinshal .joinbutton { margin-top: 20px; margin-bottom: 20px; }
}

/* =====================
   INNER PAGES
   ===================== */
.innerpage { padding-top: 155px; }

@media (max-width: 550px) {
.innerpage {  padding-top: 80px;  }
}

.innerpage .hero { position: relative; border-bottom: 2px solid #000; line-height: 0; }
.innerpage .hero img { width: 100%; }
.innerpage .maincontent { padding-top: 30px; }
.innerpage .maincontent p { padding-bottom: 20px; }
.innerpage .subtitlecontainer { margin-bottom: 20px; }
.innerpage .subtitlecontainer .dig-year { display: inline-block; font-weight: bold; margin-right: 30px; vertical-align: top; }
.innerpage .subtitlecontainer .dig-subtitle { display: inline-block; font-weight: bold; vertical-align: top; }
.innerpage .nextprev-buttons { display: table; width: 100%; padding-top: 20px; }
.innerpage .nextprev-buttons .prev-button { display: inline-block; vertical-align: middle; width: 50%; }
.innerpage .nextprev-buttons .next-button { display: inline-block; text-align: right; vertical-align: middle; width: 50%; }

