/* /*
Theme Name: CityPortal v3
Theme URI: https://crowdpolicy.com
Author: Stavros Melidoniotis, Spyros Gkikas
Author URI: https://crowdpolicy.com
Description: Crowdpolicy custom theme
Tags: blog, theme
Version: 1.0
Requires at least: 5.0
Tested up to: 5.9
Requires PHP: 7
Licence: GNU General Public Licence v2 or later
Licence URI: https://www.gnu.org/licences/gpl-2.0.html
Text Domain: cityportal-theme
*/

:root {
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 1rem;
  /* 16px */
  --text-md: 1.25rem;
  /* 20px */
  --text-lg: 1.5rem;
  /* 24px */
  --text-xl: 2rem;
  /* 32px */
  --text-xxl: 3rem;
  /* 48px */
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Thin.otf);
  font-weight: 100;
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Light.otf);
  font-weight: 300;
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Regular.otf);
  font-weight: 400;
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Medium.otf);
  font-weight: 500;
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Bold.otf);
  font-weight: 600;
}

@font-face {
  font-family: Cera-Pro;
  src: url(./assets/fonts/Cera\ Pro\ Black.otf);
  font-weight: 700;
}

h1 {
  font-size: var(--text-lg);
}

h2 {
  font-size: var(--text-md);
}

p {
  font-size: var(--text-sm);
}

body {
  height: 100vh;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  font-family: "Cera-Pro", sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 1199px) {
  .noScroll {
    overflow: hidden;
  }
}

a {
  text-decoration: none;
}

a:hover {
  color: initial;
}

img {
  max-width: 100%;
}

main.content {
  flex: 1 0 auto;
}

/* All Buttons */

.all-btn-wrapper {
  padding: 50px;
}

.all-btn {
  font-size: var(--text-sm);
  letter-spacing: 0px;
  color: #fff;
  background: #9F2626;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  padding: 0.5rem 1rem;
  min-width: 150px;
  height: 50px;
  transition: all 0.5s ease;
}

.all-btn:hover {
  background: #49403E;
}

/* Breadcrumbs */

#breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: var(--text-sm);
  gap: 0.5rem;
  margin-top: 4rem;
  white-space: pre-line;
  padding: 0;
}

#breadcrumbs li a,
.bread-current,
#breadcrumbs .separator {
  color: #939393;
  font-weight: 500;
}

/* Header */

.pilot {
  /* position: absolute; */
  top: -20px;
  left: 0;
  font-weight: 100;
  font-size: 14px;
}

.nav-log-in-btn,
.find-us-on i {
  color: #000;
}

.nav-log-in-btn:hover,
.find-us-on i:hover {
  color: #fff;
}

.header-container {
  top: 0;
  position: relative;
  z-index: 9999;
  padding-bottom: 1rem;
}

/* .admin-bar .header-container.position-fixed {
  padding: 0rem 0 1rem;
} */

.imgLogo,
.image-logo {
  height: 105px;
  max-width: 274px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.navbar-nav {
  position: relative;
}

.nav-item {
  font-size: 21px;
}

.nav-item:first-child {
  margin-left: 0;
}

.openbtn {
  background-color: transparent;
  border: none;
  position: relative;
  overflow: hidden;
  color: #9F2626;
}

.openbtn:hover,
.openbtn:focus {
  color: #49403E;
}

.openbtn:hover::after,
.openbtn:focus::after {
  transform: translateX(0);
  opacity: 1;
}

.dropdownPanel {
  position: absolute;
  top: 145px;
  background-color: #fff;
  overflow: hidden;
  transition: 0.5s;
  z-index: 2;
  display: none;
  min-width: fit-content;
  min-height: fit-content;
  border-radius: 0 0 5px 5px;
}

.dropdownPanelAnimation {
  animation: dropDown 0.5s ease-in-out forwards;
  transform-origin: top center;
}

@keyframes dropDown {
  0% {
    transform: scaleY(0);
  }

  80% {
    transform: scaleY(1.1);
  }

  100% {
    transform: scaleY(1);
  }
}

.dropdownPanel * {
  text-decoration: none;
}

.dropdownPanel-inner {
  font-size: 14px;
  text-align: start;
}

.dropdownPanel a {
  font-size: 16px;
  line-height: 2rem;
}

@media screen and (max-width: 768px) {
  .dropdownPanel a {
    line-height: unset;
  }
}

.closebtn {
  position: absolute;
  right: 5px;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
}

.menu-items a,
.menu-items span {
  display: grid;
  text-decoration: none;
  color: #9F2626;
  padding: 0.25rem 1rem;
  /* border-top: 1px solid #9F262633; */
}

.menu-items:first-child {
  padding: 0;
}

.menu-items a:hover,
.menu-items span:hover {
  opacity: 0.75;
}

.menu-item-title {
  font-weight: bold;
}

.menu-items {
  padding: 1rem 0;
  font-weight: 500;
}

.menu-items span {
  font-weight: lighter;
}

.menu-items-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* .admin-bar .header-container {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .header-container {
    top: 46px;
  }
}

@media screen and (max-width: 601px) {
  .admin-bar .header-container {
    top: 0;
  }
} */

#language-switcher-inner {
  position: relative;
}

@media screen and (min-width: 1400px) {
  .openbtn {
    padding: 1.5rem 1rem 0.5rem;
    color: #9F2626;
  }

  .openbtn.active {
    background: #fff;
    color: #49403E !important;
  }

  #language-switcher-inner {
    display: none;
  }

  .language-switcher-small {
    position: absolute;
    right: -7%;
    padding: 1.5rem 1rem 0.5rem;
  }
}

@media screen and (max-width: 1399px) {
  .menu-items-container {
    width: 75%;
  }

  #language-switcher {
    display: none;
  }

  .noScroll {
    overflow: hidden !important;
  }

  .hero-second-menu-bg {
    position: absolute !important;
  }
}

@media screen and (max-width: 768px) {
  .imgLogo {
    display: block !important;
  }
}

#language-switcher a,
#language-switcher-inner a {
  color: #000;
  font-size: 14px;
}

.current-language {
  background-color: #000;
}

.secondary-language {
  font-weight: bold;
}


.burger-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  z-index: 2;
}

.burger-icon-line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 10px 0;
  background: #9F2626;
  transition: all 0.5s ease-out;
}

.burger-icon-line:last-child {
  margin: 0;
}

.close .burger-icon-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.close .burger-icon-line:nth-child(2) {
  opacity: 0;
}

.close .burger-icon-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media screen and (min-width: 1400px) {
  .burger-icon {
    display: none;
  }

  .navbar-nav {
    justify-content: end;
  }

  .nav-item {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 1399px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    z-index: 2;
    top: 0;
    right: 0;
    width: 0;
    transition: height 0.5s ease, width 0.5s ease, visibility 0.2s ease;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
  }

  .hiddenNav {
    height: 50vh;
    width: 100vw;
    visibility: visible;
    pointer-events: all;
    flex-direction: column !important;
  }

  #language-switcher {
    margin-bottom: 1rem;
    position: unset !important;
  }

  #language-switcher a {
    color: #9F2626 !important;
  }

  .find-us-on {
    margin-bottom: 1rem;
    margin-right: 1rem;
  }

  .dropdownPanel {
    top: 0;
    height: 100vh;
    width: 100vw;
  }

  .logged-in .dropdownPanel {
    margin: 30px 0 0 !important;
  }

  .nav-item {
    padding-bottom: 1rem;
    margin-left: 0;
    color: #9F2626 !important;
  }

  .openbtn::after {
    bottom: 15px;
  }

}

@media screen and (max-width: 768px) {
  .dropdownPanel-inner {
    text-align: center;
  }

  .logged-in .dropdownPanel {
    margin: 44px 0 0 !important;
  }

  .menu-items-container {
    gap: 1rem;
  }

  .menu-items {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .menu-items span {
    display: none;
  }

  .menu-items a {
    grid-column: span 1;
  }
}

/* Footer */
footer {
  flex-shrink: 0;
  padding-bottom: 2rem;
  /* margin-top: 4rem; */
}

footer a {
  color: var(--section-title);
}

.footer-logo {
  width: 80px;
}

@media screen and (max-width: 400px) {
  .footer-logo {
    width: 70px;
  }

  .social-media {
    gap: 0.75rem;
    padding: 0;
  }
}

.social-media {
  list-style: none;
  margin-bottom: 0;
  font-size: var(--text-lg);
  gap: 1.5rem;
}

.social-media a:hover {
  color: var(--hover_color);
}

@media screen and (max-width: 768px) {
  .terms-design {
    justify-content: center !important;
    /* Default is - between (with Bootsrap) */
  }
}

.terms-design a {
  text-align: center;
}

.terms-design:hover a {
  color: var(--section-title);
}

/* Custom Scrollbar */

/* width */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 1px grey;
  border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #b3b3b3;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #a2a2a2;
}

.holdbody {
  overflow-y: hidden;
}

/* Back to top button */

#back-to-top {
  width: 35px;
  height: 35px;
  position: fixed;
  bottom: 5%;
  right: 5%;
  border-radius: 100%;
  z-index: 400;
  font-size: var(--text-xl);
  padding: 1rem;
  background-color: #fff;
  color: var(--color-politis);
  border: 2px solid var(--color-politis);
  justify-content: center;
  align-items: center;
  display: none;
  animation: fade-in 0.6s ease reverse;
}

@media screen and (max-width: 1530px) {
  #back-to-top {
    bottom: 7%;
  }
}

@media screen and (max-width: 441px) {
  #back-to-top {
    bottom: 10%;
  }
}

@media screen and (max-width: 375px) {
  #back-to-top {
    bottom: 12%;
  }
}

#back-to-top.active {
  animation: fade-in 0.6s ease;
}

#back-to-top:hover>i {
  animation: up-and-down 1s ease infinite;
}

@keyframes fade-in {
  0% {
    transform: translateY(25px);
    opacity: 0;
  }

  30% {
    opacity: 0.3;
  }

  60% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes up-and-down {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Timeliness */

@media screen and (max-width: 1300px) {
  /* .timeliness-body {
    display: none !important;
  }

  .timeliness-btn {
    display: none !important;
  }
}

@media screen and (min-width: 1301px) {
  .timeliness-btn-responsive {
    display: none !important;
  } */
}

@media screen and (max-width: 1000px) {
  .timeliness-btn-responsive {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* Category */
.single-post-container {
  display: block;
  box-shadow: 0px 2px 4px #00000029;
  border-radius: 10px;
  width: 300px;
  height: 370px;
}

.date {
  font-weight: lighter;
  font-size: var(--text-xs);
  color: #9DB1AD;
}

.date span {
  margin-left: 5px;
  font-family: "Cera-Pro";
}

.single-post-title {
  color: #05668D;
}

.pagination .page-numbers {
  background-color: lightgray;
  border-radius: 4px;
  padding: 5px 10px;
  color: var(--header-text);
  margin-right: 5px;
}

.page-numbers.current {
  color: var(--hover_color);
  background-color: var(--header-text);
}

.pagination .page-numbers:hover {
  color: var(--hover_color);
  background-color: var(--header-text);
}

#cat-name {
  color: var(--section-title);
  font-size: var(--text-xl);
}

/* Sidebar */
.sidebar-box a {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: var(--section-title);
  font-size: var(--text-md);
  font-weight: 500;
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 0.25rem;
}

.sidebar-box a i {
  opacity: 0;
  color: var(--secondary);
}

.sidebar-box a.active>i {
  opacity: 1;
}

.sidebar-box a:hover:not(.active)>i {
  animation: slide-in 0.4s ease-in 0.1s 1 normal forwards;
}

@keyframes slide-in {
  0% {
    transform: translateX(-40px);
    opacity: 0;
  }

  10% {
    transform: translateX(-35px);
    opacity: 0.1;
  }

  20% {
    transform: translateX(-30px);
    opacity: 0.3;
  }

  30% {
    transform: translateX(-20px);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-15px);
    opacity: 0.6;
  }

  60% {
    transform: translateX(-10px);
    opacity: 0.7;
  }

  80% {
    transform: translateX(-8px);
    opacity: 0.8;
  }

  90% {
    transform: translateX(-5px);
    opacity: 0.9;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

#categoryDropdown {
  border: 0;
  border-bottom: 2px solid #93CCF2;
}

#categoryDropdown:focus-visible {
  outline: 0;
}

.category-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent no-repeat 100% 0%;
}

/* WPML Footer banner registered site as development */
.otgs-development-site-front-end {
  display: none;
}

/* WP Edits */
.wp-block-ub-content-toggle-accordion-title-wrap,
.wp-block-ub-content-toggle-accordion {
  border-radius: 16px;
}

.wp-block-button a {
  border-radius: 8px;
}

.wp-block-ub-content-toggle,
.wp-block-buttons {
  max-width: 700px;
  position: relative;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  margin-top: 50px;
}

@media screen and (max-width: 768px) {

  .wp-block-ub-content-toggle,
  .wp-block-buttons {
    max-width: 100%;
    margin-top: 25px;
  }
}

.toggle-biografiko {
  left: unset;
  transform: unset;
}