/*
Theme Name: IANSA Wordpress Theme
Theme URI: https://www.eyes-down.net
Author: Eyes Down Digital
Author URI: https://www.eyes-down.net
Description: A bespoke minimalist WordPress theme based on Bootstrap 5.
Text Domain: iansa-wp-theme
Version: 1.0.0
License: Subject to contract
*/

/* Brand colours

Dark (logo) blue - #25245D
Logo red - #C83F4B
Light blue - #73B9C7

*/
:root{
    --color-darkBlue: #25245D;
    --color-lightBlue: #73B9C7;
    --color-pinkRed:#C83F4B;
    --color-smokeWhite:#F2F2F2;
    --color-graySuit: #919193;
    --color-grayGrape:#424147;
    --color-grayWhisper:#EDECEC;
}

body {
    font-family: 'Poppins', sans-serif;
    color:var(--color-grayGrape);
}

p {
    margin-bottom: 15px;
}

p, li {
    font-size: 14px;
}

h1, .h1 {
    color: white;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 26px;
    text-align: center;
}

h2, h3, h4 , .h2, .h3, .h4 {
    color: var(--color-darkBlue);
    font-weight: 700;
    text-decoration: none;
    text-transform: unset;
    text-align: left;
}

h2, .h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

h3, .h3 {
    font-size: 20px;
    margin:20px 0 20px 0;
}

h4, h5, h6 {
    font-size: 16px;
    margin:0 0 15px 0;
}

a {
    color: var(--color-pinkRed);
    text-decoration: none;
}

a:hover{
    color: var(--color-pinkRed);
    text-decoration: underline;
}
h1 a, h2 a, .h2 a, h1 a:hover, h2 a:hover, .h2 a:hover {
    color: white;
    text-decoration: none;
}
h2 > a:hover, h3 > a:hover, h4 >a:hover {
    color: unset;
    text-decoration: unset;
}

blockquote {
    color: var(--color-pinkRed);
    font-style: italic;
    font-weight: 600;
    margin-left: 35px;
    border-left: 2px solid var(--color-pinkRed);
    padding-left: 10px;
}

/* Change bootstrap buttons and colours */

.btn {
    border-radius:0 !important;
    text-transform: uppercase;
    padding: .75rem 2rem !important;
    font-size: 0.9rem !important;
}
.btn:hover {
    text-decoration: none;
}

.btn-sm {
    font-size: 0.8rem !important;
    padding: .35rem 1rem !important;
}
.btn-primary {
    background-color: var(--color-lightBlue) !important;
    border-color: var(--color-lightBlue) !important;
}
.btn-secondary {
    background-color: var(--color-smokeWhite) !important;
    border-color: var(--color-smokeWhite) !important;
    color:#868586 !important;
}
.btn-light {
    background-color: white !important;
    border-color: white !important;
    color:var(--color-lightBlue) !important;
}

/* End change bootstrap colours */

/* Header */

.header-top {
    border-bottom: 1px solid #E5E5E5;
}
.header-top .container {
    position: relative;
}
.header-top .logo svg {
    width:400px;
    margin: 30px 0;
}
.language-picker {
    position: absolute !important;
    top:7px;
    right:0;
}
.language-picker span {
    display:none;
}
div.goog-te-gadget {
    color: transparent !important;
  }
.header-join {
    position: absolute !important;
    top:46px;
    right:0;
}
/* End header */

/* YouTube responsivness */

.video-container {
    overflow: hidden;
    position: relative;
    width:100%;
    max-width: 450px;
}

.video-container::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*  End YouTube responsivness */

/* Navigation */

.main-nav {
    width:100%;
    z-index: 5;
    position: relative;
}
.main-nav a {
    text-decoration: none;
}
  
.main-nav ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
  
.main-nav li {
    color: var(--color-darkBlue);
    display: inline-block;
    padding: 12px 80px 12px 0;
    position: relative;
    text-decoration: none;
    font-size:16px !important;
}

.main-nav li.search-icon {
    padding-right: 0;
    float: right;
}
.main-nav li.search-icon path {
    fill:#555555;
}
.main-nav li.search-icon a:hover path {
    fill: var(--color-pinkRed);
}
    
.main-nav li a {
    color: var(--color-darkBlue);
    font-weight: 600;
}
  
.main-nav li:hover,
.main-nav li:focus-within {
    cursor: pointer;
}
  
.main-nav li:hover a,
.main-nav li:focus-within a {
    outline: none;
    color: var(--color-pinkRed);
}
  
.main-nav ul li ul {
    background: var(--color-pinkRed);
    visibility: hidden;
    opacity: 0;
    min-width: 10rem;
    position: absolute;
    margin-top: 12px;
    left: 0;
    display: none;
    transition: display;
}
.main-nav ul li li { 
    padding: 10px 25px 10px 15px;
}
.main-nav ul li ul a {
    color:white !important;
}
.main-nav ul li ul li.menu-item-has-children a:after {
    content:'›';
    float: right;
    font-weight: 800;
}

.main-nav ul li ul li.menu-item-has-children li a:after {
    content:none;
}
  
.main-nav ul li:hover > ul,
.main-nav ul li:focus-within > ul,
.main-nav ul li ul:hover,
.main-nav ul li ul:focus {
     visibility: visible;
     opacity: 1;
     display: block;
}
  
.main-nav ul li ul li {
    clear: both;
    width: 100%;
}

.main-nav ul li ul ul {
    left: 10rem;
    top:-12px;
}

/* End navigation */

/* Taking action */
.taking-action h3,
.taking-action h4,
.taking-action h4 a,
.taking-action h5,
.taking-action h6 {
    color: white;
    font-weight: 600;
}

.taking-action h5,
.taking-action h6 {
    font-weight: 500;
}

.taking-action p{
    color: white;
}

.taking-action .text-content h6{
    font-size: 12px;
}

.taking-action .image > div,
.article__image > div{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.taking-action .image > div{
    background-position: right;
}
/* End Taking action */

/* Home banner */

.header-home {
    background-size:cover;
    background-position:center center;
    background-color:#201F5A;
    background-repeat:no-repeat;
}
.header-home h1 {
    text-transform:none;
    text-align:left;
    margin:110px 0 40px 0;
    font-weight:600;
    font-size:26px;
    line-height:1.4;
}

.header-home h1 {
    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 1s; /* Firefox < 16 */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera < 12.1 */
            animation: fadein 1s;
}

.header-home .btn {
    margin:0 0 110px 0;
}

.header-home img {
    height:100%;
}
.header-home .rh-col {
    background-size:auto 100%;
    background-position:right 80px top 0;
    background-repeat:no-repeat;
}

.header-home .rh-col {
    -webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 4s; /* Firefox < 16 */
        -ms-animation: fadein 4s; /* Internet Explorer */
         -o-animation: fadein 4s; /* Opera < 12.1 */
            animation: fadein 4s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* End home banner */

.article__image > div{
   background-position: left;
}

.date{
    margin: 5px 0 5px;
    color: #666;
    font-size:13px;
}

.article__excerpt{
    max-height: 4rem;
    overflow: hidden;
    margin: 5px 0 5px;
    font-weight: 600;
}

.article__text-content{
    font-size: 13px;
    font-weight: 600;
    padding-right: 1rem;
    min-height: 142px;
}

.article__text-content > h3{
    margin:unset;
}

.article-container .page-link{
    /* padding: 0.25rem 0.75rem; */
    color:var(--color-grayGrape);
    border: 1px solid var(--color-grayWhisper);
}

.article-container .page-item.active .page-link {
    background-color: var(--color-grayGrape);
    border-color: var(--color-grayGrape);
}

.article-container .page-item:first-child .page-link,
.article-container .page-item.active .page-link
{
    border-radius: unset;
}


.article-container .page-item{
    padding: 0 0.25rem;
}

.article-container .page-item > a{
    text-decoration: none;
}

.article-container hr {
    margin: 1rem 0 1rem 0;
    height: 2px;
}

/* Single article */

.attachment-col {
    background: var(--color-grayWhisper);
    padding: 10px 10px 10px 10px;
}
.attachment-col span {
    font-size:14px;
}

.single-article__date p {
    margin-bottom: 0;
}

/* End Single article  */

/* Accordian */

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color:var(--color-grayWhisper);
    cursor: pointer;
    padding: 16px 10px 13px 10px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-size: 14px;
    color:var(--color-grayGrape);
  }

  /* Style the accordion panel. Note: hidden by default */
  .panel {
    background-color: white;
    display: none;
    overflow: hidden;
    padding: 0 20px;
  }

  .accordion:after {
    content: url('images/folder-plus-solid.svg'); /* Unicode character for "plus" sign (+) */
    float: right;
    margin: -8px 0 -4px 0;
    height: 35px;
    width: 35px;
  }
  
  .accordion.active:after {
    content: url('images/folder-minus-solid.svg'); /* Unicode character for "plus" sign (+) */
  }
/* End accordian */


/* Search results */

.search-item h3 {
    margin-top: 0;
}

.page-numbers {
	display: inline-block;
	padding: 5px 10px;
	margin: 20px 2px 0 0;
	border: 1px solid #eee;
	line-height: 1;
	text-decoration: none;
	border-radius: 2px;
	font-weight: 600;
    color: white;
    background-color: var(--color-lightBlue);
}
.page-numbers.current,
a.page-numbers:hover {
	background: #ccc;
    color: #fff;
}

/* End search results */

/* Search form */

.searchform .btn {
    padding:.48rem 2rem !important;
}

/* End search form */

.filter .form-control{
    border: 1px solid var(--color-graySuit);
    border-radius: unset;
    font-size: 14px;
}

.filter button{
    padding: 6px 0.9rem !important;
    font-weight: 600;
}

.filter span,
.filter select{
    font-weight: 600;
}

.filter select{
    background: url('images/temp/down-arrow.png') no-repeat right 10px top 5px;
}

.pagination-show-all{
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grayGrape);
}

/* Inline stat block */

.inline-stat {
    background-image: url('images/inline-stat-bg.jpg');
    background-size: cover;
    padding: 40px 0;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.8;
}

.inline-stat span {
    background-color: var(--color-pinkRed);
    font-size: 26px;
    padding: 0 8px;
}

/* End inline stat block */

/* Column block */
.column-block a {
    font-size: 13px;
    font-weight: 600;
}

.column-block .inner > img{
    margin: auto;
    display: block;
    width:100%;
}

a.signpost-button:hover {
    text-decoration: none;
}
.signpost-button .inner {
    background: url('images/footer-bg.png') no-repeat;
    padding: 15px 10px;
}
.signpost-button:hover .inner {
    background-position: center bottom;
}
.signpost-button h3 {
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

.signpost-button h3 {
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* End column block */

/* https://github.com/jonsuh/hamburgers */

.hamburger {
    position: absolute;
    top:40px;
    right:-15px;
    padding: 15px 15px;
    display: none;
    cursor: pointer;
    outline:0;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    z-index: 20;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: white;
}
.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: var(--color-darkBlue);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}
.hamburger--slider-r .hamburger-inner {
    top: 2px;
}
.hamburger--slider-r .hamburger-inner::before {
    top: 10px;
    transition-property: transform, opacity;
    transition-timing-function: ease;
    transition-duration: 0.15s;
}
.hamburger--slider-r .hamburger-inner::after {
    top: 20px;
}
.hamburger--slider-r.is-active .hamburger-inner {
    transform: translate3d(0, 10px, 0) rotate(-45deg);
}
.hamburger--slider-r.is-active .hamburger-inner::before {
    transform: rotate(45deg) translate3d(5.71429px, -6px, 0);
    opacity: 0;
}
.hamburger--slider-r.is-active .hamburger-inner::after {
    transform: translate3d(0, -20px, 0) rotate(90deg);
}

/* End https://github.com/jonsuh/hamburgers */

.main-heading {
    background-image: url('images/header-bg.png');
    background-size: cover;
    padding: 32px 0;
}

.formatted ul, .formatted ol {
    margin: 0 0 15px 0;
    padding: 0;
}

.formatted li {
    list-style:none;
    padding-left: 20px;
    position: relative;
}

.formatted li:before {
    content:'•';
    position: absolute;
    left:0;
    color: var(--color-lightBlue);
}

/* Footer */

footer {
    background-image: url('images/footer-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;
    color: white;
}

footer p, footer a {
    color: white;
}

footer .logo svg {
    width:350px;
    max-width: 100%;
    margin: 0 0 30px 0;
}

footer a.social {
    margin: 0 10px 0 0;
    text-decoration: none;
}

footer .social svg {
    width:20px;
}

footer h4 {
    margin: 0 0 25px 0;
    color: white;
}

/* Footer newsletter  */
.newsletter-container {
    background-color: var(--color-grayWhisper);
}

.newsletter .row {
    padding: 20px 9px 10px;
}

.newsletter .newsletter__row-1 div {
    padding: 0px 3px !important;
}

.newsletter input[type='text'] {
    border: none;
    border-radius: unset;
    font-size: 14px;
    padding: 15px 16px 14px 16px;
}

.newsletter button {
    padding: 13px 3rem 14px 3rem !important;
    width: 100%;
}

.newsletter a {
    text-decoration: underline;
}

.newsletter input::-webkit-input-placeholder,
.newsletter-container small,
.newsletter-container a {
    color: var(--color-graySuit);
}

.mc4wp-alert{
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.mc4wp-alert p{
    margin-bottom: unset;
}

.mc4wp-success{
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.mc4wp-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
/* End Footer newsletter */

.subfooter {
    background-color: #18173F;
    color: #ADADCD;
    font-size: 12px;
    padding: 16px 0;
    margin-top: -2px;
}
.subfooter a {
    color: #ADADCD;
}

/* End footer */

.signposts {
    background-color: #EDEDED;
    padding: 60px 0;
}
.signposts .inner {
    background-color: #ffffff;
}
.signposts img {
    width:100%;
}

.callout {
    background-image: url('images/join-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.callout h2 {
    color: var(--color-pinkRed);
}
.callout p {
    color: #ffffff;
    margin-bottom: 25px;
}
.callout .inner {
    padding-top: 60px;
    padding-bottom: 60px;
}

.taking-action {
    padding: 60px 0;
}

.taking-action .inner {
    background-image: url('images/taking-action-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 130px 130px;
    background-color: var(--color-lightBlue);
}

.featured-member {
    height:200px;
    background-size:contain;
    background-repeat:no-repeat;
    background-position: center center;
    margin:20px;
}

.image-header {
    background-position: right 300px top, right top;
    background-size: auto 100%, 600px auto;
    background-repeat: no-repeat,no-repeat;
    background-color: #201F5E;
    min-height: 250px;
    padding: 80px 0;
}

.image-header h1 {
    text-align: left;
    margin-bottom: 20px;
}

.image-header p {
    color: white;
    margin-bottom: 0;
}

.image-header a.btn {
    margin-top: 20px;
}

.image-header .image {
    display: none;
}

.intro-text {
    background:#F2F2F2;
    padding: 45px 0 30px 0;
    text-align: center;
    font-size: 17px;
}

@media only screen and (max-width: 1400px) {
    .header-home .rh-col {
        background-position:right 40px top 0;
    }
}

@media only screen and (max-width: 1200px) {
    .main-nav li {
        padding: 12px 60px 12px 0;
        font-size:15px !important;
    }
    .image-header {
        background-position: right 250px top, right top;
    }
    .header-home .rh-col {
        background-position:right top;
    }
}

@media only screen and (max-width: 990px) {
    .main-nav li {
        padding: 12px 30px 12px 0;
        font-size: 14px;
    }
    .image-header {
        background-position: right 100px top, right top;
    }
    .header-home .rh-col {
        background-position:right top;
    }
    .header-home h1 {
        margin:80px 0 40px 0;
    }
    .header-home .btn {
        margin:0 0 80px 0;
    }
    .header-home {
    background-position:-60px center;
    }
}

@media only screen and (max-width: 768px) {
    .main-nav {
        position: fixed;
        width:100%;
        height: 100%;
        top:0;
        background-color: var(--color-pinkRed);
        text-align: center;
        z-index:10;
    }
    .main-nav li {
        display: block;
        float: none !important;
        padding: 5px 0 !important;
    }
    .main-nav li a {
        color:white;
        font-weight: 800;
        color: white;
        font-size: 14px;
    }
    .main-nav li:hover a,
    .main-nav li:focus-within a {
        color: white;
    }
    .main-nav li.search-icon path {
        fill:white;
    }
    .main-nav ul li ul {
        visibility:visible;
        display: block;
        position: relative;
        opacity: .8;
        margin-top: 0;
    }
    .main-nav ul li ul a {
        font-weight: 500;
        font-size: 13px;
    }
    .hamburger {
        display: block;
    }
    .header-join {
        display:none !important;
    }
    .header-top .logo svg {
        width:240px;
        margin: 30px 0;
    }
    .callout {
        background-position: -80px 0;
    }
    .header-home {
        background-position:right 0;
        background-size:auto 300px;
    }
    .header-home .rh-col {
        height:300px;
        background-position:right 15% top 0;
    }
    .header-home .container {
        max-width:none ;
        padding:0 !important;
    }
    .header-home h1 {
        margin:20px 30px;
        font-size:21px;
        text-align:center;
    }
    .header-home .btn {
        margin:0;
        display:block;
    }
    .image-header {
        background:none !important;
        padding: 0;
    }
    .image-header .image {
        display: block;
        height:250px;
        background-size: cover;
        background-position: center center;
    }
    .image-header .container {
        max-width:none ;
        padding:0 !important;
    }
    .image-header h1 {
        background-image: url('images/header-bg.png');
        background-size: cover;
        padding: 32px 0;
        text-align: center;
        margin: 0;
    }
    .image-header p {
        background:#F2F2F2;
        padding: 30px 20px;
        text-align: center;
        font-size: 15px;
        color:var(--color-grayGrape);
        margin: 0;
    }
    .image-header a.btn {
        display:block;
        margin: 0;
    }
    /* Single article */
    img.featured {
        float: none;
        margin-left: 0;
        max-width: auto;
    }
    /* End Single article  */
}

@media only screen and (max-width: 576px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }
    .callout {
        background-position: -280px 0;
    }
    .language-picker {
        display:none;
    }
    .hamburger {
        right:0;
        top:25px;
    }
}

@media only screen and (max-width: 400px) {
    .callout {
        background-position: -520px 0;
    }
}

