/*
Theme Name: OpenGov
Theme URI: https://crowdpolicy.com
Author: Crowdpolicy
Author URI: https://crowdpolicy.com
Description: A custom theme for open government initiatives.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opengov
Tags: opengov, gov.gr, opengov 3.0
*/

/* 
https://serp.co/tools/css-reset/
<link rel="stylesheet" href="https://css.serp.co/css-reset/reset.css/">
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --color-dark-blue: #002d6e;
  --color-medium-blue: #003f8a;
  --color-light-blue: #00baff;
  --color-text: #1c1c1c;
  --color-white: #ffffff;
  --primary-dark: #073476;
  --primary-light: #00b0f0;
  --secondary-grey: #959496;
  --bg-light: #f4f7f9;
  --text-color: #333;
  --card-bg: #fff;
}

body {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  font-family: "Roboto", sans-serif !important;
}

.legacy-platform-notice {
  background-color: #e3f0fa;
  border: 1px solid rgba(7, 52, 118, 0.12);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-color);
  text-align: center;
}

.legacy-platform-notice-badge {
  display: inline-block;
  background-color: #ffc107;
  color: #1c1c1c !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  transition: background-color ease 0.2s;
}

.legacy-platform-notice-badge:hover {
  background-color: #e0a800;
}

.legacy-platform-notice-icon {
  font-size: 0.85rem;
  color: var(--primary-dark);
  cursor: help;
}

main {
  flex: 1;
  position: relative;
}

#navbarNav {
  display: flex;
  gap: 4rem;
  justify-content: flex-end;
}

.container-header {
  max-width: 80% !important;
}

#menu-menu {
  display: flex;
  gap: 2rem;
  margin-bottom: 0;
  justify-content: center;
  list-style-type: none;
}

@media screen and (max-width: 1300px) {
  #menu-menu {
    gap: 2rem;
    text-align: center;
    margin: 1rem 0;
  }
}

#menu-menu a {
  text-decoration: none !important;
}

.second-column-header {
  display: flex;
  gap: 1rem;
}

#signin {
  background-color: #ffffff;
  color: #0165b3 !important;
  border-radius: 3px;
  width: 100%;
  max-width: 120px;
  padding-left: 1.2rem;
  padding-right: 1.5rem;
  transition: all ease 0.2s;
  border: 1px solid transparent;
}

#signin:hover {
  background: #003476;
  color: #fff !important;
  border: 1px solid #fff;
}

#signin:hover i {
  color: #ffffff !important;
}

#signin i {
  color: #0165b3 !important;
}

#menu-menu li a {
  color: #fff !important;
  font-weight: 500;
  transition: all ease 0.2s;
  text-wrap: balance;
}

.mega-menu li a {
  font-size: 14px;
}

#menu-menu li a:hover {
  color: #00aeef !important;
}

.nav-link {
  width: max-content;
}

.nav-link i {
  color: #fff;
  transition: all ease 0.2s;
}

.nav-link i:hover {
  color: #00aeef !important;
}

header .fa-search {
  font-size: 20px;
}

header .fa-search:hover {
  color: #00aeef;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  margin: 0 !important;
  background-color: var(--color-dark-blue);
  border-bottom: 8px solid #00b0f0;
}

@media screen and (max-width: 992px) {
  header {
    position: static;
  }
}

header img {
  max-width: 180px;
}

@media screen and (max-width: 768px) {
  .site-branding {
    flex-direction: column;
    margin: 2rem 0;
    justify-content: center;
    text-align: center;
  }

  .navbar-toggler {
    margin: 0 auto;
  }

  .container-header {
    flex-direction: column;
    justify-content: center;
  }
}

.main-blue {
  color: #003476;
}

.secondary-blue {
  color: #00aeef;
}

.text-primary-light-hover:hover {
  color: var(--primary-light);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
}

.green-dot {
  background-color: #28a745;
}

.red-dot {
  background-color: red;
}

.orange-dot {
  background-color: #ffa034;
}

#breadcrumbs-custom {
  background: #f5f5f6;
  padding: 1rem 0;
}

.breadcrumbs a {
  position: relative;
  text-decoration: none;
  /* remove default underline */
  color: inherit;
  /* keep link color */
}

.breadcrumbs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  /* distance from text */
  width: 0;
  height: 2px;
  background: currentColor;
  /* underline color same as text */
  transition: width 0.3s ease;
  /* smooth animation */
}

.breadcrumbs a:hover::after {
  width: 100%;
}

.breadcrumbs {
  font-size: 15px;
}

.breadcrumbs a {
  color: #003476 !important;
  text-decoration: none;
}

.breadcrumbs p {
  margin-bottom: 0 !important;
}

.breadcrumbs span {
  font-weight: 500;
}

.breadcrumb-separator {
  color: #003476;
}

.footer-content span,
.footer-sitemap span {
  color: #00b0f0;
  font-size: 1.7rem;
  font-weight: 600;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
  transition: all ease 0.3s;
}

.footer-sitemap a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all ease 0.3s;
  text-transform: capitalize;
}

.footer-sitemap a:hover,
.footer-content a:hover {
  color: #00aeef;
}

.footer-content p {
  color: #fff;
}

.site-footer {
  background-color: #003476;
}

.footer-content a h3 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0rem !important;
}

.footer-content img {
  margin-right: 8px;
}

.footer-content p {
  margin-bottom: 0rem !important;
}

.footer-privacy a {
  color: #fff;
  transition: all ease 0.5s;
  font-size: 1rem;
}

.footer-privacy a:hover {
  color: #00a3e0;
}

.footer-sitemap {
  color: #fff;
  justify-content: space-between;
}

.primary-button {
  background-color: #073476;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  transition: all ease 0.5s;
}

.primary-button:hover {
  background-color: #00b0f0;
}

.dropdown-menu-prof {
  background: white;
  min-width: 215px;
  z-index: 999;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-item-prof {
  padding: 0.5rem;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  transition: all ease-in-out 0.2s;
}

.dropdown-item-prof.logout-btn:hover {
  background-color: #b60202;
  color: #ffffff !important;
}

.dropdown-item-prof.account-btn:hover {
  background-color: #515058;
  color: #ffffff !important;
}

footer img {
  object-fit: contain;
}

footer .custom-logo-link img {
  max-width: 150px;
}

/* Back to top button */

#back-to-top {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 5%;
  right: 5%;
  border-radius: 100%;
  z-index: 400;
  padding: 1rem;
  background-color: #003476;
  color: #ffffff;
  border: 2px solid #ffffff;
  justify-content: center;
  align-items: center;
  display: none;
  animation: fade-in 0.6s ease reverse;
  transition: all ease-in-out 0.2s;
}

#back-to-top:hover {
  background-color: #f5f5f5;
  border-color: #003476;
  color: #003476;
}

@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);
  }
}

@media screen and (max-width: 1200px) {
  #signin {
    display: none !important;
  }

  a.dropdown-item-prof {
    font-size: 16px;
  }

  #profileDropdown {
    display: none !important;
  }

  a.dropdown-item-prof.account-btn {
    color: #ffffff;
  }

  .dropdown-item-prof.account-btn:hover {
    background-color: transparent;
    color: #00aeef !important;
  }
}

@media screen and (max-width: 767px) {
  .footer-content {
    gap: 1rem !important;
    width: 100% !important;
    align-items: center;
  }

  .footer-sitemap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .footer-privacy {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 500px) {
  .bloginfo-text {
    max-width: 150px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .container-header {
    max-width: 90% !important;
  }

  #mega-menu-row {
    max-height: 500px;
    overflow: auto;
  }

  .site-header {
    height: 100%;
  }
}

@media screen and (min-width: 1200px) {
  #mobile-extra-items {
    display: none;
  }
}

@media screen and (max-width: 1400px) {
  .container-header {
    max-width: 100% !important;
  }

  .site-title {
    width: max-content;
  }

  #menu-menu {
    gap: 0.5rem;
  }

  .site-title {
    font-size: 1rem;
  }
}

.custom-toast {
  visibility: hidden;
  min-width: 320px;
  max-width: 500px;
  background: #013476;
  backdrop-filter: blur(20px);
  color: #fff;
  text-align: left;
  border-radius: 16px;
  padding: 18px 24px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px) scale(0.8);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  justify-content: center;
}

.custom-toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: toastBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
}

.custom-toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 100%;
  height: 3px;
  background: #01b0f1;
  border-radius: 0 0 16px 16px;
}

.custom-toast.show::after {
  animation: progressBar 3s linear forwards;
}

@keyframes toastBounce {
  0% {
    transform: translateX(-50%) translateY(100px) scale(0.8) rotate(-3deg);
    opacity: 0;
  }

  50% {
    transform: translateX(-50%) translateY(-10px) scale(1.05) rotate(1deg);
  }

  100% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes progressBar {
  0% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}

#wpadminbar #wp-admin-bar-comments2 .ab-icon:before {
  content: "\f101";
  top: 3px;
}

.skip-link {
  position: absolute;
  top: -40px; /* Hide off-screen by default */
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0; /* Bring into view on tab focus */
}