/*!
Theme Name: Comisia Vetting
Author: Boris Gherman
Version: 1.0.0
Text Domain: comisia-vetting
*/

:root {
  --color-primary: #010C80;
  --color-secondary: #4B91F1;
  --color-background: #f2f2f2;
  --navbar-height: 100px;
  --navbar-height-negative: -100px;
}
@media (max-width: 999px) {
  :root {
    --navbar-height: 100px;
  }
}
a {
  color: var(--color-primary);
  transition: color .25s;
}
a:hover {
  color: var(--color-secondary);
}
img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 0.75rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  color: #333;
  line-height: 1.45;
}
html {
  scroll-behavior: smooth;
}
body {
  display: grid;
  /* grid-template-rows: auto max-content; */
  padding-top: var(--navbar-height);
  background-color: var(--color-background);
}
body.admin-bar .site-header {
  top: 32px;
}

#cmplz-cookiebanner-container,
#cmplz-manage-consent {
  display: none;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.2rem;
}
.post-content h1, h2, h3, h4, h5, h6 {
  margin-block: 1em .2em;
}
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}
.page > .container {
  padding-block: 2rem 3rem;
}
@media (max-width: 800px) {
  .page > .container {
    max-width: calc(100vw - 1rem);
  }
}
.container-content {
  max-width: 800px;
  min-height: 42vh;
  margin: 3rem auto;
  padding-inline: 16px;
}
.list-unstyled {
  padding-left: 0;
  margin-block: 0;
  list-style: none;
}
:not(.button-primary).button {
  padding: 8px 48px 6px;
  border-radius: 4px;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  transition: background-color .25s;
}
.button:hover {
  color: #fff;
  background-color: var(--color-primary);
}


.page-padding {
  padding-block: 3rem;
}
.page-header {
  padding-block: 2rem;
  text-align: center;
  background-color: var(--color-primary);
  color: #fff;
  background-size: 100% 100%;
}
.page-header h1 {
  opacity: .85;
  line-height: 1;
  font-size: 2.2rem;
}
@media (max-width: 800px) {
  .page-header {
    padding-block: 2rem;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}


.post-content {
  padding: 0.1rem 3rem 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

@media (max-width: 500px) {
  .post-content {
    padding: 0.1rem 0 2rem;
  }
}



/* #region News */

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 2rem;
}
.news-item {
  color: inherit;
  text-decoration: none;
}
.news-item:hover .news-title {
  color: var(--color-secondary);
}
.news-item:hover img {
  filter: brightness(1.1);
}
.news-item:hover .news-thumbnail:not(:empty):before {
  opacity: 1;
  transform: scale(1);
}
.news-item .entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: hsl(0 0% 45% / 1);
}
.news-item img {
  border-radius: 4px;
  aspect-ratio: 2/1.2;
  object-fit: cover;
  transition: filter .25s;
}
.news-item svg {
  margin-bottom: 4px;
}
.news-thumbnail {
  position: relative;
}
.news-thumbnail:before {
  --offset: 10px;
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  border: 5px solid #fff;
  top: var(--offset);
  left: var(--offset);
  width: calc(100% - (var(--offset) * 2));
  height: calc(100% - (var(--offset) * 2));
  border-radius: 4px;
  transform: scale(.8);
  opacity: 0;
  transition: transform .25s, opacity .25s;
}
.news-thumbnail.has-video::after {
  content: '\25B6'; /* Unicode for play icon */
  font-size: 50px;
  color: white;
  opacity: 0.8;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.multimedia-thumbnail {
  border-radius: 4px;
  overflow: hidden;
}
.multimedia-thumbnail iframe {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.video-container {
  text-align: center;
}
.video-container iframe {
  width: 100%;
  max-width: 850px;
  height: auto;
  margin-block: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
}

.multimedia-title,
.news-title {
  margin-top: .6rem;
  font-family: 'Lato';
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2;
  transition: color 0.25s;
}

@media (max-width: 799px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .news-list {
    grid-template-columns: 1fr;
  }
  .news-item p {
    display: none;
  }
}
/* #endregion News */


.news-header {
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin: 2rem auto;
}
.news-header h1 {
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  font-weight: bold;
}
@media (max-width: 800px) {.news-header h1 {
  font-size: 1.5rem;
}
}
.news-cover {
  width: 850px;
  margin: auto;
  display: block;
  aspect-ratio: 2/1;
  border-radius: 6px;
  object-fit: cover;
}
.post-date {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 700;
  color: #999;
  text-transform: capitalize;
}
.post-date svg {
  margin-bottom: 2px;
}



.list-of-laws li + li {
  margin-top: 1.5rem;
}
.list-of-laws a {
  color: inherit;
  text-decoration: none;
}
.law-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90ch;
  margin-inline: auto;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  transition: background-color .25s, box-shadow .25s;
  box-shadow: rgba(0, 0, 0, 0) 0px 4px 6px -1px, rgba(0, 0, 0, 0) 0px 2px 4px -1px;
  background-color: #fff;
}
@media (max-width: 800px) {
  .law-item {
    padding: 1rem .5rem;
  }
}
.law-item:hover {
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.law-item:hover .law-name {
  color: var(--color-primary);
}
.law-item .icon-pdf {
  width: 64px;
  height: auto;
}
.law-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.law-number {
  margin: 0.5rem 0 0 0;
  color: #777;
}
.law-download {
  margin: 0.5rem 0 0 0;
  color: var(--color-secondary);
  font-weight: bold;
}



.hero-section {
  position: relative;
  margin-bottom: 2rem;
}
/* .hero-background {
  position: absolute;
  z-index: -1;
  top: var(--navbar-height-negative);
  width: 100%;
  height: calc(100% + var(--navbar-height));
} */
.hero-image {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: top center;
}
.hero-section .container {
  position: relative;
}
.hero-section .button {
  display: inline-block;
  margin-top: 1rem;
}
.hero-section .button:hover {
  background-color: #fff;
  color: var(--color-secondary);
}
.hero-section-text {
  padding: 2rem;
  color: #fff;
  background-color: var(--color-primary);
}

@media (min-width: 801px) {
  .hero-section-text {
    width: 40%;
    position: absolute;
    left: 3rem;
    bottom: 2rem;
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  .hero-section {
    margin-bottom: 2rem;
  }
  .hero-section .container {
    padding: 0;
  }
  .hero-image {
    height: 30vh;
  }

  /* .hero-image {
    position: absolute;
    z-index: -1;
    width: 50%;
    height: 80%;
    right: 0;
    object-fit: cover;
  } */
  .hero-section .button {
    padding: 8px 16px 6px;
    font-size: 24px;
  }
}
.front-page .news-list {
  padding-top: 0;
}


.contact-card {
  display: flex;
  margin-block: 3rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  overflow: hidden;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem;
}
.contact-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}
.contact-line svg {
  color: #888;
}

@media (max-width: 1050px) {
  .contact-card {
    flex-direction: column;
  }
  .contact-list {
    padding: 2rem 1.5rem;
  }
  .contact-card iframe {
    width: 100%;
  }
}


/*
========================
Members of the Commission
========================
*/

.members-list {
  display: grid;
  gap: 2rem;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border-radius: 4px;
  padding: 1.3rem;
  background-color: #fff;
  background-image: url(https://borisgherman.com/demo/vetting-commission/wp-content/themes/comisia-vetting/images/blue-background.png);
  background-size: 100% 200px;
  background-repeat: no-repeat;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  text-align: center;
}
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-block: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  max-width: 70ch;
  background-color: #fefefe;
  margin: auto;
  padding: 20px min(6%, 36px);
  border: 1px solid #888;
  width: 90%;
  text-align: initial;
}
.modal-content .member-photo {
  max-width: 300px;
}
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color .2s;
}
.close:hover {
  color: var(--color-primary);
}
.modal.active {
  display: block;
}
.member-photo {
  display: block;
  width: 84%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 1rem auto 0 auto;
  outline: 8px solid white;
  outline-offset: -7px;
  border-radius: 50%;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.member-name {
  margin: 1rem 0 0 0;
  text-align: center;
}
.member-status {
  margin-bottom: .75rem;
  color: hsl(0 0% 45% / 1);
  text-align: center;
}
.member-buttons {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .4rem;
}
.download-declaration {
  margin-top: 1rem;
  color: #595959;
  font-weight: 600;
  text-align: center;
}
.member-buttons .member-button {
  max-width: max-content;
}
.member-button-bio {
  margin-top: auto;
}
.member-button,
.member-button-bio {
  padding: 7px 12px 6px;
  border: 1px solid hsl(0 0% 70% / 1);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  color: #595959;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  line-height: inherit;
  background-color: transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.member-button:hover,
.member-button-bio:hover {
  border-color: var(--color-secondary);
  background-color: var(--color-secondary);
  color: #fff;
}
@media (min-width: 1000px) {
  .members-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 720px) and (max-width: 999px) {
  .members-list {
    grid-template-columns: repeat(2, 1fr);
  }
}





/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background-color: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	max-width: 100%;
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
  min-height: 2rem;
}
input[type="file"] {
	max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #222;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
  resize: vertical;
}

/* file upload button */
.wpcf7-form-control-wrap .qbutton {
  padding: 8px 24px;
  font-size: 1.2rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #e5e7eb;
}

.mfcf7_zl_delete_file {
  text-decoration: none;
}
.form-submit p {
  text-align: center;
}
.form-submit input {
  transform: scale(1.2);
  cursor: pointer;
}
.form-row {
  display: grid;
  column-gap: 2rem;
}
@media (min-width: 700px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.notify-form h2 {
  max-width: 620px;
  font-size: 2rem;
  line-height: 1;
}
.notify-form .form-row input {
  width: 100%;
}
.notify-form .form-row p {
  margin-block: .5rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  display: flex;
  gap: 2rem;
  padding: 2rem 3rem;
  border-radius: 6px;
}
.wpcf7 form.sent .wpcf7-response-output:before {
  content: '';
  display: block;
  width: 64px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NmI0NTAiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNNCA0aDE2YzEuMSAwIDIgLjkgMiAydjEyYzAgMS4xLS45IDItMiAySDRjLTEuMSAwLTItLjktMi0yVjZjMC0xLjEuOS0yIDItMnoiPjwvcGF0aD48cG9seWxpbmUgcG9pbnRzPSIyMiw2IDEyLDEzIDIsNiI+PC9wb2x5bGluZT48L3N2Zz4=');
}
.wpcf7-form.sent .notify-form {
  display: none;
}
@media (max-width: 800px) {
  .wpcf7 form.sent .wpcf7-response-output {
    flex-direction: column;
    align-items: center;
  }
  .wpcf7 form.sent .wpcf7-response-output:before {
    height: 64px;
  }
}


.table-group-list {
  counter-reset: tables;
}
.table-group-list table {
  border-collapse: collapse;
  font-size: 1.1rem;
}
.table-group {
  background-color: #fff;
  border-radius: 4px;
}
.table-group-content {
  padding: 0 2rem 2rem;
}
.table-group + .table-group {
  margin-top: 2rem;
}
.table-group h2 {
  margin: 0;
  padding: 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
}
.table-group h2::before {
  counter-increment: tables;
  content: counter(tables) ". ";
}
@media (max-width: 700px) {
  .table-group h2 {
    padding: 1rem 1rem 2rem;
  }
  .table-group-content {
    padding: 0 1rem 1rem;
    overflow-x: scroll;
  }
  .paginate_button.previous,
  .paginate_button.next {
    display: none !important;
  }
}
thead {
  font-weight: bold;
}
thead tr {
  border-bottom: 1px solid #777;
}
table.dataTable tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color .2s;
}
table.dataTable tbody tr:hover {
  background-color: hsl(215 86% 96% / 1);
}
th, td {
  padding: 8px 12px;
}


.tables-with-tabs .tab:not(.active),
.documents-with-tabs .tab:not(.active) {
  display: none;
}
.tables-with-tabs li + li,
.documents-with-tabs li + li {
  margin-top: .5rem;
}
.tab-documents {
  width: max-content;
  padding: 4px;
  margin: auto auto 1.5rem auto;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
@media (max-width: 900px) {
  .tab-documents {
    display: flex;
    flex-direction: column;
  }
  .tab-documents button {
    font-size: 1rem !important;
  }
}
@media (max-width: 410px) {
  .tab-documents {
    width: auto;
  }
}
.tab-button {
  padding: 16px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  background-color: transparent;
  font-weight: bold;
  transition: color .2s, background-color .2s;
}
.tab-button.active {
  background-color: var(--color-primary);
  color: #fff;
}
.tab-button:not(.active):hover {
  background-color: var(--color-secondary);
  color: #fff;
}



/* Pagination */
.pagination-container {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  font-family: 'Oswald', sans-serif;
}
.pagination {
  display: flex;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}
.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding-top: 1px;
  border: 1px solid var(--grey-line);
  border-radius: 2px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  color: inherit;
  background-color: hsl(330 11% 90% / 1);
  transition: background-color .25s, color .25s;
  &.current {
    background-color: var(--color-secondary);
    color: #fff;
    cursor: default;
  }
  &.dots {
    border: none;
  }
  &:hover:not(.dots):not(.current) {
    background-color: #444;
    color: #fff;
  }
}
@media (max-width: 700px) {
  .page-link {
    width: 36px;
    height: 36px;
  }
}

.faq > li {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.faq > li + li {
  margin-top: 1.5rem;
}
.faq-question {
  position: relative;
  margin: 0;
  padding: 1.4rem 5rem 1.4rem 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: bold;
  cursor: pointer;
}
.faq-question.active:after {
  transform: rotate(180deg);
}
.faq-question:after {
  content: '';
  display: block;
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  width: 32px;
  height: 32px;
  background-size: cover;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  transition: transform .2s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer-container {
  padding: 0.2rem 2rem 2rem;
  border-radius: 4px;
  border-bottom: 4px solid var(--color-primary);
}
.faq-answer.active {
  max-height: 1000px;
}

@media (max-width: 600px) {
  .faq-question {
    padding-inline: 1.4rem;
    font-size: 1.1rem;
  }
  .faq-answer-container {
    padding-inline: 1.4rem;
  }
}

.gallery-item img {
  border-color: #f2f2f2 !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}