/*
Theme Name: Election Beacon
Author: www.electionbeacon.com
Author URI: www.electionbeacon.com
Description: Theme © electionbeacon.com | all rights reserved
Version: 0.0.2
Copyright: electionbeacon.com
*/

:root {
  --color-bg_0: #000;	
  --color-bg_1: #ffffff;
  --color-bg_2: #001740;
  --color-bg_3: #cb3131;	
 
  --color-border_0: #000;
  --color-border_1: #ffffff;
  --color-border_2: #001740;
  --color-border_3: #cb3131;
  
  --color-font_0: #000;
  --color-font_1: #ffffff;
  --color-font_2: #001740;
  --color-font_3: #cb3131;

  --color-bg_0: #000;
  --color-bg_1: #ffffff;
  --color-bg_2: #001740;
  --color-bg_3: #cb3131;
 
  --color-bg-button_0: #000;
  --color-bg-button_1: #ffffff;
  --color-bg-button_2: #001740;
  --color-bg-button_3: #cb3131;
  

  --font-family-1: "Source Sans 3", sans-serif;
  --font-family-2: "Prata", serif;

  --font-weight-regular-1: 400; /* regular  */
  --font-weight-bold-1: 700; /* bold */

  --font-weight-2: 400; /* extralight */
  --font-weight-4: 400; /* regular */
  --font-weight-5: 500; 
  --font-weight-6: 600; 
  --font-weight-7: 700; /* bold */

  --full-width-content-with-nav: calc(100%);
}

.bg-1 {
	background: var(--color-bg_1);
}
.bg-2 {
	background: var(--color-bg_2);
}
.bg-3 {
	background: var(--color-bg_3);
}
.color-1 {
	color: var(--color-font_1);
}
.wrapper {
	width: var(--full-width-content-with-nav);
}
.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0) !important;
}

body {
	background: var(--color-bg_1);
}
html, body {
	color: var(--color-font_0);
	font-family: var(--font-family-1);
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust:     100%;
	font-size: 16px; 
	font-weight: var(--font-weight-regular-1); 
}

hr {
	color: var(--color-border_0)
}

p { 
	font-size: 1.1em; 
	line-height: 1.5; 
}

a, 
a:visited, 
a:active {
	color: var(--color-font_3); 
	text-decoration: underline;
}


a:focus,
a:hover {
	color: var(--color-bg_3); 
}

h1 { 
	color: var(--color-font_0); 
	font-family: var(--font-family-2);
    padding-bottom: 0.5em;
}

h2, h3, h4, h5, h6 { 
	color: var(--color-font_0); 
	font-family: var(--font-family-2);
    padding-bottom: 0.5em;
}

footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: var(--color-font_1); 
    font-family: var(--font-family-2);
}

section,
.section {
    padding: 4em 0em;
}

/* --------------------------------------------------------------
	Navigation
-------------------------------------------------------------- */

.nav-1 .navbar-toggler {
	background: transparent;
	color: #fff;
    box-shadow: 0px 0px 2px #fff;
    border: 0px solid #fff;
    margin: 0.5em;
}

.navbar-toggler:focus {
	outline: auto;
}
.nav-1 .navbar-toggler-icon {
    background-image: url('img/theme/hamburger.svg') !important;
}
.nav-1 .navbar-collapse.collapse.show .navbar-toggler-icon {
    background-image: url('img/theme/close.svg') !important;
}
.nav {
	transition:all 0.5s ease;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
}

.nav-1 {
    z-index: 6;
	width: 100%;
	background-color: var(--color-bg_2);
}

.nav-1-inner {
    width: 100%;
    max-width: 240px;
}

.nav-1 ul li {
    text-align: center;
    line-height: 18px;
}

@media (max-width: 767px) {
    .nav-1 ul {
        align-items: center;
        border-top: 1px dotted #00183e;
        margin-top: 1em;
    }
    .nav-1 ul li {
        padding: 0.3em 0.5em;
        border-bottom: 1px dotted #00183f;
        width: 100%;
        text-align: center;
    }
    .nav-1-inner {
        width: 100%;
        max-width: 100%;
    }    
}


.nav-1 .navlogo {
	max-width: 250px;
    /* 
    max-width: 80px;
    border-radius: 100em;
    box-shadow: 4px 4px 10px #00173f;
    */
    padding: 0.2em;
    margin: 0.2em 1em;    
}
@media (max-width: 950px) {
    .nav-1 .navlogo {
        max-width: 220px;
    }
}
@media (max-width: 500px) {
    .nav-1 .navlogo {
        max-width: 200px;
    }
}


.nav-1 a.navlogo-text{
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
.nav-1 a.navlogo-text span{
    min-width: 250px;
}

.nav-1 .menu li a {
    display: block;
    color: var(--color-font_1);
    text-decoration: none;
    font-size: 1em;
    font-weight: var(--font-weight-5);
    padding: 0em 0.5em;
}

@media (max-width: 1050px) {
    .nav-1 .menu li a {
        padding: 0em 0.3em;
    }
}
@media (max-width: 991px) {
    .nav-1 .menu li a {
        font-size: 0.9em;
    }
}

.nav-1 .menu li.current_page_item a,
.nav-1 .menu li.current_menu_item a {
	color: #bdbdbd;
	font-weight: var(--font-weight-bold-1);
}



/* --------------------------------------------------------------
	FOOTER
-------------------------------------------------------------- */
.footer {
    height: auto;
	min-height: 350px;
    position: relative;
	background: var(--color-bg_3);
    z-index: 6;
}

.footer h2,
.footer h3 {
    padding-bottom: 0.3em;
    margin-bottom: 0em;
}

.footer p {
    font-size: .85em;
}
.footer-bottom {
    position: relative;
    z-index: 6;
    background-color: #fff;
}

.footer ul {
    list-style-type: none;
    padding: 0;
}

.footer a {
    color: var(--color-font_1);
    text-decoration: none;
}

.footer .footer-inner {
    width: 100%;
	z-index: 1;
    padding-top: 5em;
	padding-bottom: 1em;
}

.social-media-footer a {
    display: inline-block;
    margin: 10px 10px;
    color: var(--color-font_1);
    text-decoration: none;
    font-weight: var(--font-weight-5);
    border: 1px solid var(--color-border_1);
    border-radius: 0.5em;
    padding: 0.4em 1em;
}
.social-media-footer a:first-of-type {
    margin-left: 0;
}
.social-media-footer a:last-of-type {
    margin-bottom: 30px;
}

/* --------------------------------------------------------------
	Napit, buttonit & taulukot
-------------------------------------------------------------- */

/* BTN 1 */
.btn-1 {
	letter-spacing: 3px;
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    color: var(--color-bg_1);
    font-weight: var(--font-weight-bold-1);
    cursor: pointer;
    padding: 15px 30px;
	text-align: center;
    -webkit-border-radius: 0px;
    border-radius: 0px;	
	margin: 0.75em 0;
	display: flex;
    flex-direction: column;
	font-size: 0.7em;
	text-transform: uppercase;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.btn-1.btn:focus-visible {
    color: var(--color-bg_1);
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    outline: 0;
    box-shadow: none;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;		
}
.btn-1.btn-check:checked+.btn, .btn-1.btn.active, .btn-1.btn.show, .btn-1.btn:first-child:active, :not(.btn-check)+.btn-1.btn:active {
    color: var(--color-bg_1);
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
}
.btn-1:hover {
    background-color: var(--color-bg-button_3);
    border: 0px solid var(--color-bg-button_1);
    color: var(--color-bg_1);
    font-weight: var(--font-weight-bold-1);

    -webkit-filter: brightness(70%);
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}

/* BTN 2 */
.btn-2 {
	letter-spacing: 0px;
    background-color: var(--color-bg-button_2);
    color: var(--color-font_1);
    font-weight: var(--font-weight-regular-1);
    cursor: pointer;
    padding: 15px 20px;
	text-align: center;
    -webkit-border-radius: 0px;
	margin: 0.75em 0;
	display: flex;
    flex-direction: column;
	font-size: 1.0em;
	/*text-transform: uppercase;*/

	border-radius: 0em;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.btn-2.btn:focus-visible {
    color: var(---color-font_1);
    background-color: var(--color-bg-button_2);
    outline: 0;
    box-shadow: none;

	-webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;		
}
.btn-2.btn-check:checked+.btn, .btn-2.btn.active, .btn-2.btn.show, .btn-2.btn:first-child:active, :not(.btn-check)+.btn-2.btn:active {
    color: var(--color-font_1);
    background-color: var(--color-bg-button_2);
    border: 2px solid var(--color-bg-button_2);
}
.btn-2:hover {
    background-color: var(--color-bg-button_2);
    border: 2px solid var(--color-bg-button_2);
    color: #ffffff;
    font-weight: var(--font-weight-regular-4);

	transform: scale(1.02);

    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	
}
.btn-2:visited {
    background-color: var(--color-bg-button_2);
    color: #ffffff;
}

.btn-2 a {
	text-decoration: none;
}



/* WOO ADD CART BTN */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: var(--color-bg_2);
    color: #fff;
    -webkit-font-smoothing: antialiased;

    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	    
}
/* hover */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    background-color: var(--color-bg_3);
    color: #fff;

    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;	    
}


/* --------------------------------------------------------------
	POLLING LOCATION & LINKS
-------------------------------------------------------------- */

/*
.voting-links {
  max-width: 1200px;
  margin: auto;
}
*/

.state-block {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.state-block h2 {
  margin-bottom: 5px;
  font-size: 24px;
}

.state-block h3 {
  margin-top: 15px;
  font-size: 18px;
}

.state-block a {
  color: #0073aa;
  text-decoration: none;
}

.state-block a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------
	LOMAKKEET & Placeholderit
-------------------------------------------------------------- */
:placeholder,
::placeholder,
::-ms-input-placeholder,
input:placeholder,
input::placeholder { color: #757575;}


/* Yleiset inputit */
input, textarea {
	border: 1px solid var(--color-border_2);
	margin: 0.2em 0em;
}
input[type="submit"]{
	background: var(--color-bg-button_3);
	color: var(--color-font_1);
	padding: .5em 1em;
	border: 1px solid var(--color-border_3);
	border-radius: 0.6em;
	letter-spacing: 2px;
}


.contact-form input,
.contact-form textarea {
    border: 1px solid var(--color-border_2);
    margin: 0.2em 0em;
    width: 100%;
    padding: .5em;
}
.contact-form input[type="submit"] {
    background: var(--color-bg-button_2);
    color: #fff;
    padding: .5em 1em;
}
.contact-form .wpcf7-list-item input {
    width: auto;
}

/* -------------------------------
	My Account sivu WooCommercessa
------------------------------ */
/* My Surveys  */
.my-surveys-list {
    list-style: none;
    padding-left: 0;
    max-width: 100%;
    font-family: Arial, sans-serif;
}

.my-survey-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1em;
    background-color: #f9f9f9;
    display: flex;
    gap: 1em;
    justify-content: flex-start;
    align-items: center;
}

.my-survey-item strong a {
    font-size: 1em;
    color: #0073aa;
    text-decoration: none;
}

.my-survey-item strong a:hover {
    text-decoration: underline;
}

.my-survey-item small {
    color: #666;
    display: block;
}

.my-survey-item .button {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin-right: 10px !important;
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: background-color 0.3s ease;
    cursor: pointer !important;
    font-size: 14px !important;
}

.my-survey-item .button:hover {
    background-color: #005177;
}


/* ------------------------------------------- 
------------ Candidate-profile.php ----------- */

.candidate-profile-page {
    padding: 3em 0em;
}

.candidate-party {
    display: inline-block;
    margin: 0.2rem 0 0.6rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--party-color);
}
.candidate-divider {
    height: 5px;
    width: 100%;
    margin: 1rem 0;
    background: linear-gradient(
        to right,
        var(--party-color),
        rgba(0, 0, 0, 0)
    );
    border-radius: 999px;
}


.candidate-phone {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #374151;
}

.candidate-phone a {
    color: inherit;
    text-decoration: none;
}

.candidate-phone a:hover {
    text-decoration: underline;
}


.candidate-answers .answer-row {
    margin-bottom: 1.5rem;
}

.candidate-answers .question {
    font-weight: 600;
    margin-bottom: 0.4rem;
    padding-left: 1em;
}

.candidate-answers .likert-scale {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.candidate-answers .likert-scale .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
}

.candidate-answers .likert-scale .dot.active {
    background: #2563eb; /* sininen */
    transform: scale(1.3);
}

.candidate-answers .likert-wrapper {
    max-width: 600px;
    padding-left: 1em;
}

.candidate-answers .likert-edges {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.candidate-answers .likert-active-label {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    padding-left: 1em;
}

.candidate-answers .likert-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
}
.candidate-answers .likert-wrapper .likert-wrapper-col-1 {
    width: 40%;
    margin-right: 10%;
}  
.candidate-answers .likert-wrapper .likert-wrapper-col-2 {
    width: 50%;
}      
@media (max-width: 767px) {
    .candidate-answers .likert-wrapper {
        flex-direction: column;
        padding: 0em 1em;
    }
    .candidate-answers .likert-wrapper .likert-wrapper-col-1,
    .candidate-answers .likert-wrapper .likert-wrapper-col-2 {
        width: 100%;
        margin: 0 0 1rem 0;
    }
}

.candidate-location {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.candidate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.candidate-links a {
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #374151;
}

.candidate-links a:hover {
    background: #2563eb;
    color: #fff;
}

.candidate-surveys-title {
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.candidate-surveys {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.candidate-surveys li {
    margin-bottom: 0.4rem;
}

.candidate-surveys a {
    text-decoration: none;
    color: #2563eb;
}

.candidate-surveys a:hover {
    text-decoration: underline;
}


/* Candidate profile header */
.candidate-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 2rem;
}
@media (max-width: 767px) {
    .candidate-header {
        flex-flow: column;
        align-items: flex-start;
    }
    .candidate-meta {
        padding: 0em 2em;
    }    
    .candidate-avatar {
        margin-left: 1em;
    }    
}

.candidate-avatar {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: var(--party-color); */
    padding: 1em;
}            

.candidate-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.candidate-meta {
    flex: 1;
}

.candidate-name {
    margin: 0 0 0.3rem;
    font-size: 2rem;
}
@media (max-width: 767px) {
    .candidate-name {
        font-size: 1.5rem;
    }    
}

.candidate-website a {
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
}

.candidate-website a:hover {
    text-decoration: underline;
}

.candidate-description,
.candidate-bio {
    color: #000;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-left: 4px solid var(--party-color);;
    font-size: 1rem;
    line-height: 1.6;
}

.answers-survey-title {
    margin: -0.5rem 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}
@media (max-width: 767px) {
    .answers-survey-title-first {
        padding: 0em .7em;
    }   
    .answers-survey-title {
        padding: 0em 1em;
    }    
}

.answer-group-title {
    margin: 2.5rem 0 1rem;
    padding-left: 1em;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px dotted #e5e7eb;
    padding-bottom: 0.8em;
}
