/*
Theme Name: NoVoiceUnheard
Theme URI: https://github.com/NoVoiceUnheard/nvu-wp-theme/
Description: Child theme for Twenty Twenty-Five
Author: @natedoesweb
Template: twentytwentyfive
Version: 1.0.17
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novoiceunheard
*/
/* Contact Page */
.hidden {
	display: none;
}
.page .contact-general,
.page .contact-press,
.page .contact-volunteer {
    display: none;
}
.query-inquiry-general .contact-general,
.query-inquiry-press .contact-press,
.query-inquiry-volunteer .contact-volunteer {
    display: block;
}
.query-inquiry-general .toggle-general a,
.query-inquiry-press .toggle-press a,
.query-inquiry-volunteer .toggle-volunteer a {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}
.wpcf7-form.sent p,
.wpcf7-form.sent h3,
.wpcf7-form.sent .form-group,
.wpcf7-form.sent .input-group
{
	display:none;
}

/* TOP NAV */ 
#topNav * {
	z-index: 999;
}
#topNav > div > div {
	padding-top: var(--wp--preset--spacing--30);
    padding-bottom: var(--wp--preset--spacing--30);
}
#topNav .siteLogo {
	width: 150px;
}
#topNav .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
    align-items: var(--navigation-layout-align, initial);
    display: flex;
    flex-direction: var(--navigation-layout-direction, initial);
    flex-wrap: var(--navigation-layout-wrap, wrap);
    justify-content: var(--navigation-layout-justify, initial);
}
#topNav .wp-block-navigation .wp-block-page-list, .wp-block-navigation__container, .wp-block-navigation__responsive-close, .wp-block-navigation__responsive-container, .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-dialog {
    gap: inherit;
}

/* NAV MENU ITEMS */ 
#topNav li, #footer li {
	font-size: 1rem;
    font-weight: 600;
}
#topNav li.ctaLink, #footer li.ctaLink {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-2);
	font-size: 0.8rem;
    padding: 0.3em 1.2em;
    border-radius: 1em;
    font-weight: 800;
}
.wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base) !important;
	border-radius: 25px;
	color: var(--wp--preset--color--contrast) !important;
}
#topNav li:not(.ctaLink) a:hover, #footer li:not(.ctaLink) a:hover {
    color: var(--wp--preset--color--accent-1) !important;
	text-decoration: none;
}
#topNav li.ctaLink:hover, #footer li.ctaLink:hover {
    background-color: var(--wp--preset--color--accent-3) !important;
	color: #fff;
  	transform: scale(1.25, 1.25);
}
#topNav li.ctaLink:hover, #footer li.ctaLink:hover {
	transition: all .2s ease-in-out; 
}
#topNav li.ctaLink a:hover, #footer li.ctaLink a:hover {
	text-decoration: none;
}

/* FOOTER */
.footer img {
	width: 150px;
}
.disclaimer {
	font-size: 1rem;
	padding-bottom: 50px;
}
.footer a {
	color: var(--wp--preset--color--accent-1);
}

/* HOMEPAGE HERO */
.homeHero h1 {
	font-size: 6rem;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 1;
    text-transform: uppercase;
	padding: 3rem 0;
}

.homeHero {
	padding: 2rem;
	height: 75vh;
}

/* Listing pages */
.cf7-submission-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	padding: 0;
}
.cf7-submission-list li {
	display: flex;
	background-color: var(--wp--preset--color--accent-2);
	margin: 0 0 15px;
	border-radius: 5px;
	box-shadow: #000 0px 0px 3px;
	transition: all .5s;
	background-image: url(/wp-content/themes/novoiceunheard/images/chevron-right.svg);
	background-repeat: no-repeat;
	background-size: 16px 24px;
	background-position: calc(100% - 8px) center;
}
.cf7-submission-list li.pending {
	background-color: var(--wp--preset--color--accent-3);
}
.cf7-submission-list .submission-content {
	padding: 15px 24px 15px 15px;
}
.cf7-submission-list li:hover {
	box-shadow: #000 0px 0px 10px;
	cursor: pointer;
}
.cf7-submission-list .submission-date {
	flex-basis: 100px;
	flex-shrink: 0;
	text-align: center;
	align-content: center;
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 5px 0 0 5px;
}
.cf7-submission-list .submission-date p {
	font-size: 20px;
	font-weight: bold;
}
.cf7-submission-list h3 {
	margin: 0;
	font-size: 18px;
	margin-bottom: 10px;
}
.cf7-submission-list h4 {
	font-weight: 500;
	font-size: 14px;
	margin: 0;
}
.cf7-submission-list p,
.cf7-submission-list .content {
	margin: 0 0 10px;
	font-size: 14px;
}
.cf7-submission-list .tag {
	font-size: 14px;
}
.cf7-submission-list .location,
.cf7-modal-content .location {
	font-weight: bold;
	margin: 0 0 8px;
	background-image: url(/wp-content/themes/novoiceunheard/images/location-pin.svg);
	background-size: 14px;
	background-repeat: no-repeat;
	padding-left: 20px;
}
.cf7-submission-list .edit,
.cf7-modal-content .edit {
	font-weight: bold;
	margin: 0;
	background-image: url(/wp-content/themes/novoiceunheard/images/pen.svg);
	background-size: 14px;
	background-repeat: no-repeat;
	padding-left: 20px;
	text-indent: -9999px;
	display: inline-block;
}
.cachetimestamp {
	text-align: center;
	font-size: 12px;
}
.wp-block-search__inside-wrapper {
	display: flex;
}
.wp-block-search__input {
	height: 64px;
	width: 100%;
	border: 0;
	border-radius: 50px 0 0 50px;
	padding: 0 20px;
}
.wp-block-search__button {
	border-radius: 0 50px 50px 0;
	height: 64px;
}

body:not(.query-state) .clear-filter {
	display: none;
}

/* CONTENT */
div.imgColumns {
	text-align: center;
	margin: 3em;
}
div.imgColumns h2 {
	font-size: 1em;
}
div.imgColumns p {
	font-size: 0.8em;
}
div.imgColumns .wp-block-column {
	padding: 1.5rem;
}
div.imgColumns > .wp-block-columns > .wp-block-column > figure > img {
	border-radius: 100%;
	padding: 1.5em;
}
div.partnerBlock img {
	border-radius: 100%;
	aspect-ratio: 1 / 1;
	padding: 3em;
}
.codeOfConduct h3, .rightsBlock h2, .immigrationResources h3, .resourcesBlock h3 {
	color: var(--wp--preset--color--accent-1);
	font-size: 1.5em;
	padding: 1em 0;
}
.aboutBlock h3 {
	color: var(--wp--preset--color--accent-4);
}
.page-template-default h1.wp-block-post-title {
	padding-bottom: 50px;
}
.introText {
	font-weight: 700;
}
.introText a {
	color: var(--wp--preset--color--accent-1);
}

/* Shaded background sections */
.home .wp-site-blocks > .wp-block-group > .wp-block-group, .entry-content > .wp-block-group > .wp-block-group, .wp-block-table, .resourcesBlock, .page-template-protest-listings main > div {
/* 	background-color: #090940cc;
	padding: 2rem;
    border-radius: 3rem;
	margin: 1rem; */
}

/* BUTTONS */
.wp-block-button:not(.is-style-outline*):hover {
	background-color: var(--wp--preset--color--accent-4);
}
.smallButtons-purple .wp-block-button a {
	padding: 0.5rem 2rem;
	background-color: var(--wp--preset--color--accent-4);
	color: #fff;
	border-color: #fff;
	border-style: solid;
	border-width: 1px;
}

/* IMAGE ROUNDING */
.entry-content .wp-block-group img {
	border-radius: 100%;
	padding: 1rem;	
}
h2 {
	color: var(--wp--preset--color--accent-1);
	font-size: 1.5em;
	padding: 1rem 0;
}

/* CTA BLOCKS */
.ctaBlock-purple > .wp-block-group {
	background-color: var(--wp--preset--color--accent-4) !important;
	padding: 2rem;
    border-radius: 3rem;
	margin: 1rem;	
}
.ctaBlock-purple h2, .ctaBlock-green h2 {
	font-size: 200%;
}
.ctaBlock-green > .wp-block-group {
	background-color: var(--wp--preset--color--accent-1) !important;
	padding: 2rem;
    border-radius: 3rem;
	margin: 1rem;
	color: #090940;
}
.ctaBlock-green h2 {
	color: #090940;
}
.ctaBlock-green .wp-block-button a {
	padding: 0.5rem 2rem;
	background-color: var(--wp--preset--color--accent-4);
	color: #fff;
}

/* Tables */
.wp-block-table {
	font-size: 75%;
}
/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-style: none !important;
	outline-width: 0 !important;
}

/* Responsive */
/* Tablet/Desktop
@media screen and (min-width: 601px) {
	.homeHero h1 {
		font-size: 6rem;
	}
}
*/
/* Mobile */
@media screen and (max-width: 600px) {
	.homeHero h1 {
		font-size: 3rem;
	}
	.wp-block-table {
		padding: .5rem !important;
    	font-size: 0.7rem;
	}
	.wp-block-table td {
		padding: 0.2rem;
	}
	:root :where(.wp-block-group) {
		border-radius: 0;
	}
}

/* FORMS */

.wpcf7-text, .wpcf7-textarea {
    background-color: var(--wp--preset--color--contrast);
    border-radius: 25px;
    border: 0;
    box-sizing: border-box;
    color: var(--wp--preset--color--accent-4);
    font-size: 14px;
    height: 100%;
    outline: 0;
    padding: 10px 15px;
	margin-top: 5px;
}

.wpcf7-submit {
	background-color: var(--wp--preset--color--accent-1);
	border-radius: 50px;
    border-width: 0;
    color: var(--wp--preset--color--accent-2);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 2;
    padding: 0.5rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
}
#post-tags-dropdown {
	width: 150px;
}
.select2-container--default .select2-selection--single {
}
.select2-container--open .select2-dropdown {
	background-color: var(--wp--preset--color--accent-3);
}
.select2-container--default .select2-selection--single {
    padding: 10px 15px;
    border-radius: 50px;
	height: auto !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 2;
	font-family: var(--wp--preset--font-family--manrope);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
}
.select2-results__option {
	font-size: 14px;
}

.cf7-modal {
    position: fixed;
    top: 0;
    left: 0;
	right: 0;
	bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden; /* Prevent body scrolling */
}

.cf7-modal-content {
    color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
    max-width: 600px;
	margin: auto;
    width: 90%;
    max-height: 80vh; /* Ensure it doesn’t exceed viewport height */
    overflow-y: auto; /* Allows scrolling within the modal */
    border-radius: 8px;
    position: relative;
}
.cf7-modal-content #modal-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
}
.cf7-modal-content h2,
.cf7-modal-content h4,
.cf7-modal-content p,
.cf7-modal-content span {
	padding: 0;
	margin: 0 0 10px;
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
}
.cf7-modal-content .actions {
	display: flex;
	justify-content: space-between;
}
.cf7-modal-content h2,
.cf7-modal-content h4 {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	line-height: 18px;
}
.cf7-modal-content .organizer {
	font-size: 14px;
	line-height: 14px;
}
.cf7-modal-content h4 {
	margin: 0;
}
.cf7-modal-content .submission-date p {
	margin: 0;
}
.cf7-modal-content .submission-date {
	background-image: url(/wp-content/themes/novoiceunheard/images/calendar.svg);
	background-repeat: no-repeat;
	background-size: 14px;
	background-position: center left;
	padding-left: 20px;
}
.cf7-modal-content .link {
	background-image: url(/wp-content/themes/novoiceunheard/images/link.svg);
	background-repeat: no-repeat;
	background-position: center left;
	background-size: 16px;
	padding-left: 20px;
}

.cf7-modal-content .image {
	display: flex;
	max-height: 300px;
	justify-content: center;
	margin-bottom: 8px;
}
.cf7-modal-content .image img {
	max-width: 100%;
}
.topbar {
	border-bottom: 1px solid var(--wp--preset--color--accent-2);
}
/* Mobile */
@media screen and (max-width: 600px) {
	.cf7-modal-content {
		max-height: 100vh;
		height: 100%;
		width: 100%;
		padding: 0;
		margin: 0;
		border-radius: 0;
	}
	.cf7-modal-content #modal-body {
		padding: 16px;
	}
}

/* BLOG */
.wp-block-categories-list {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0;
}
.wp-block-categories-list a {
	padding: 5px 0;
	display: inline-block;
}
.blog-content {
	word-wrap: break-word;
}

/* MAP */
#protest-map svg {
	color: white;
	display: block;
	margin: 0 auto;
	max-width: 1000px;
}
#protest-map path {
	fill: currentColor;
	stroke: #000;
	stroke-width: 1;
}

#protest-map a {
	transition: color 1s;
}

#protest-map a:hover {
	color: var(--wp--preset--color--accent-3);
	transition: color 0s;
}
/* PROTEST LISTING */
.close-button {
	display: block;
	background-image: url(/wp-content/themes/novoiceunheard/images/xmark.svg);
	background-repeat: no-repeat;
	background-size: 32px 32px;
	background-position: center;
	width: 48px;
	height: 48px;
	text-indent: -99999px;
	cursor: pointer;
	margin: 0 !important;
}
.close-button a {
	display: block;
	height: 100%;
	width: 100%;
}
.protest-submission h2 {
	color: inherit;
}
.protest-submission input,
.protest-submission textarea {
	width: 100%;
	height: auto;
	padding: 10px 15px;
	border-radius: 25px;
	border: 0;
	margin-top: 5px;
}
.input-group p {
	display: flex;
	flex-direction: row;
	gap: 16px;
}
.input-group br {
	display: none;
}
.input-group label {
	flex-basis: 50%;
}
.input-group .wpcf7-form-control-wrap {
	display: flex;
}
.form-group {
	border: 1px solid var(--wp--preset--color--accent-1);
	padding: 0 16px;
}
.wpcf7-form.submitting .wpcf7-submit {
	cursor: not-allowed;
	pointer-events: none;
}
.wpcf7-form.submitting p {
	position: relative;
	z-index: 0;
}
.wpcf7-form.submitting .wpcf7-spinner {
	position: absolute;
	top: 0;
	left: 50px;
	margin: auto;
	bottom: 0;
	z-index: 1;
}

.tableBlock img {
    border-radius: 10%;
    padding: 0;
}

.tableBlock table {
	padding: 10px;
}

.tableBlock td {
	font-size: var(--wp--preset--font-size--medium);
}

/* Base table styles */
table.responsive {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-family: Arial, sans-serif;
  background-color: var(--wp--preset--color--base);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

table.responsive thead {
  background-color: var(--wp--preset--color--accent-4);
  color: #fff;
  border-radius: 20px;
}

table.responsive th,
table.responsive td {
  padding: 0.75rem 1rem;
  /* border: 1px solid #ddd; */
  text-align: left;
}

table.responsive tbody tr:nth-child(even) {
  background-color: var(--wp--preset--color--accent-2);
}

table.responsive tbody tr:hover {
  background-color: var(--wp--preset--color--accent-4);
}

table.responsive img {
  border-radius: 10%!important;
  padding: 0.5rem!important;
}

table.responsive a {
  font-weight: 700;
}

/* Mobile styles */
@media (max-width: 768px) {
  table.responsive {
    border: none;
  }

  table.responsive {
    background-color: inherit;
  }

  table.responsive thead {
    display: none;
  }

  table.responsive,
  table.responsive tbody,
  table.responsive tr,
  table.responsive td {
    display: block;
  }

  table.responsive tr {
    margin-bottom: 1rem;
    border: 1px solid var(--wp--preset--color--accent-2);
    border-radius: 8px;
    background-color: var(--wp--preset--color--base);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  table.responsive td {
    border: none;
    /* border-bottom: 1px solid #eee; */
    position: relative;
    text-align: left;
  }

  table.responsive td:last-child {
    border-bottom: none;
  }

  table.responsive td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    white-space: nowrap;
  }
}