/**
 * Keycloak Gov IDP-Only Theme - Login Styles
 * 
 * Card-based IDP selection layout matching GOV.GR design patterns.
 * Each IDP is displayed as a card with its logo and translated name.
 *
 * Design System: @digigov/css v2.0.0-rc.29
 * Documentation: https://www.npmjs.com/package/@digigov/css
 */

:root {
  --text-color: rgba(var(--color-base-content-rgb), 1);
  --main-color: rgba(var(--color-primary-rgb), 1);
  --main-color-dark: rgba(var(--color-primary-rgb), 0.9);
  --dark-color: rgba(var(--color-base-900-rgb), 1);
  --bg-color: rgba(var(--color-base-100-rgb), 1);
  --card-bg: rgba(var(--color-base-200-rgb), 1);
  --header-bg: #003375;
  --header-stripe: #0065c1;
  --idp-btn-bg: #1a3b6e;
  --idp-btn-hover: #142e56;
}

/* ===== Page Layout ===== */

html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff !important;
  background-image: none !important;
  color: rgba(var(--color-base-content-rgb), 1);
}

.login-pf {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  background-image: none !important;
  margin-top: -20px;
}

.login-pf body {
  background: #ffffff !important;
  background-image: none !important;
}

/* ===== Header ===== */

#kc-header {
  background: var(--header-bg);
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  position: relative;
}

.govgr-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.govgr-header-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

#kc-header-wrapper {
  color: #ffffff;
  text-align: center;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===== IDP Section ===== */

#kc-idp-section {
  margin: 2rem auto;
  padding: 0 1.5rem;
  max-width: 1200px;
  width: 100%;
}

.idp-page-subtitle {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 400;
    color: #00b0f0 !important;
    margin: 1.5rem 0 2rem 0;
    font-family: 'Roboto', sans-serif;
}

.idp-page-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 2rem 0;
  font-family: 'Roboto', sans-serif;
}

/* ===== Card Grid ===== */

.idp-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

/* ===== Individual Card ===== */

.idp-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 260px;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.idp-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.idp-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.idp-card-link:hover {
  text-decoration: none !important;
}

.idp-card-link:focus {
  outline: 3px solid #ffdd00;
  outline-offset: -3px;
  border-radius: 6px;
  background: none;
  box-shadow: none;
}

/* ===== Card Logo ===== */

.idp-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 1.25rem;
}

.idp-logo-img {
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Card Button ===== */

.idp-card-action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.idp-card-button {
  display: inline-block;
  background: var(--idp-btn-bg);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: normal;
  text-align: center;
  transition: background-color 0.2s ease;
  border: 2px solid var(--idp-btn-bg);
}

.idp-card:hover .idp-card-button {
  background: var(--idp-btn-hover);
  border-color: var(--idp-btn-hover);
}

/* ===== Identity Provider Buttons (fallback for default layout) ===== */

.kc-social-section {
  margin: 0;
  padding: 0;
}

/* ===== Info Section ===== */

#kc-info {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

#kc-registration {
  color: rgba(var(--color-base-content-rgb), 1);
}

/* ===== Responsive ===== */

@media (max-width: 639px) {
  .idp-card-grid {
    flex-direction: column;
    align-items: center;
  }

  .idp-card {
    width: 100%;
    max-width: 360px;
  }

  #kc-header {
    padding: 0.75rem 1rem;
  }

  #kc-header-wrapper {
    font-size: 0.95rem;
  }

  .govgr-header-logo {
    height: 24px;
  }

  .idp-page-title {
    font-size: 1.35rem;
    margin: 1rem 0 1.25rem 0;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .idp-card {
    width: calc(50% - 0.75rem);
  }
}

@media (min-width: 768px) {
  body {
    font-size: 19px;
  }

  #kc-header {
    padding: 1.25rem 2rem;
  }

  #kc-header-wrapper {
    font-size: 1.25rem;
  }

  .idp-page-title {
    font-size: 2rem;
  }
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgba(var(--color-base-content-rgb), 1);
}

h1 {
  font-size: 2rem; /* 32px */
  font-weight: 700;
}

h2 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
}

h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem; /* 40px on larger screens */
  }
  
  h2 {
    font-size: 1.875rem; /* 30px on larger screens */
  }
}

/* Paragraphs - GOV.GR standard body text */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: inherit; /* Uses body font size: 16px mobile, 19px desktop */
  line-height: 1.5;
  color: rgba(var(--color-base-content-rgb), 1);
}

/* Lead paragraph class (24px) for introductory text */
.govgr-body-l,
.lead-text {
  font-size: 1.25rem; /* 20px on small screens */
  line-height: 1.6;
}

@media (min-width: 768px) {
  .govgr-body-l,
  .lead-text {
    font-size: 1.5rem; /* 24px on desktop per GOV.GR spec */
  }
}

/* Small body text class */
.govgr-body-s,
.small-text {
  font-size: 0.875rem; /* 14px on small screens */
  line-height: 1.5;
}

@media (min-width: 768px) {
  .govgr-body-s,
  .small-text {
    font-size: 1rem; /* 16px on larger screens */
  }
}

/* Hint text - secondary label text for forms */
.govgr-hint,
.hint-text {
  font-size: 1rem;
  color: rgba(var(--color-gray-800-rgb), 1); /* Secondary text color */
  margin-bottom: 0.5rem;
}

/* Links - GOV.GR link colors with proper states */
a {
  color: rgba(var(--color-link-rgb), 1);
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s ease;
}

a:hover {
  color: rgba(var(--color-link-hover-rgb), 1);
  text-decoration: underline;
}

a:visited {
  color: rgba(var(--color-link-visited-rgb), 1);
}

a:active {
  color: rgba(var(--color-link-active-rgb), 1);
}

a:focus {
  outline: 3px solid rgba(var(--color-focus-rgb), 1);
  outline-offset: 2px;
  background-color: rgba(var(--color-focus-rgb), 1);
  color: rgba(var(--color-base-content-rgb), 1);
}

/* Link without underline variant */
.govgr-link--no-underline {
  text-decoration: none;
}

.govgr-link--no-underline:hover {
  text-decoration: underline;
}

/* Bold text emphasis */
strong,
b {
  font-weight: 700;
}

/* Buttons - Using @digigov/css design system */
.pf-c-button {
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif;
}

.pf-c-button.pf-m-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, #5b8db8 0%, #4a7ba7 100%); /* Blue gradient like screenshot button */
  border: 1px solid #4a7ba7;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  width: 100%;
  min-height: 2.75rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pf-c-button.pf-m-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #4a7ba7 0%, #3d6a8f 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.pf-c-button.pf-m-secondary {
  background-color: rgba(var(--color-secondary-rgb), var(--tw-bg-opacity, 1));
  border-color: rgba(var(--color-secondary-rgb), var(--tw-border-opacity, 1));
  color: rgba(var(--color-base-content-rgb), var(--tw-text-opacity, 1));
  box-shadow: var(--btn-secondary-box-shadow);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  width: 100%;
  min-height: 2.5rem;
}

.pf-c-button.pf-m-secondary:hover {
  opacity: 0.85;
}

.pf-c-button.pf-m-control {
  --pf-c-button--BorderRadius: none;
  --pf-c-button--disabled--BackgroundColor: none;
  --pf-c-button--after--BorderWidth: none;
  --pf-c-button--after--BorderColor: none;
  color: rgba(var(--color-link-rgb), var(--tw-text-opacity, 1));
  background-color: transparent;
  text-decoration: underline;
}

.pf-c-button.pf-m-control:hover {
  color: rgba(var(--color-link-hover-rgb), var(--tw-text-opacity, 1));
  text-decoration-thickness: 2px;
}

.fa {
  color: var(--text-color);
}

a[type="button"] {
  border: solid 1px !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease;
}

a[type="button"]:hover {
  border: solid var(--main-color-dark) 1px !important;
  background-color: var(--main-color-dark);
  color: var(--text-color);
}

/* Input Fields - Using @digigov/css design system */

.pf-c-input-group {
  --pf-c-input-group--BackgroundColor: transparent;
}

.pf-c-form-control:not(textarea) {
  height: 100%;
}

.pf-c-form-control {
  background-color: rgba(var(--color-base-100-rgb), var(--tw-bg-opacity, 1));
  border: 2px solid rgba(var(--color-base-content-rgb), var(--tw-border-opacity, 1));
  border-radius: var(--input-border-radius, 4px);
  color: rgba(var(--color-base-content-rgb), var(--tw-text-opacity, 1));
  font-size: 1rem; /* Match body font size (16px/19px based on screen size) */
  font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif;
  padding: 0.5rem;
}

.pf-c-form-control:focus {
  --pf-c-form-control--BorderBottomColor: rgba(var(--color-primary-rgb), 1);
  padding: 0.5rem;
  border: 2px solid rgba(var(--color-primary-rgb), var(--tw-border-opacity, 1));
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-focus-rgb), 0.3);
}

.pf-c-form-control.pf-m-error {
  border: 3px solid rgba(var(--color-error-text-rgb), var(--tw-border-opacity, 1));
}

.form-group {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: 2rem;
    }
}

.pf-c-form__helper-text.pf-m-error {
  color: rgba(var(--color-error-text-rgb), var(--tw-text-opacity, 1));
  font-size: 1rem;
  font-weight: 400;
}

/* Form Labels - Using @digigov/css design system */
.pf-c-form__label {
  font-size: var(--label-font-size, 1rem);
  line-height: var(--label-line-height, 1.5);
  letter-spacing: var(--label-letter-spacing, 0);
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Spacing for Form Fields - Government Standards */
.kcFormGroupClass {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .kcFormGroupClass {
    margin-bottom: 2rem;
  }
}

/* Content wrapper */
#kc-form-wrapper {
  margin-top: 0;
  width: 100%;
}

#kc-content-wrapper {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* Footer Links - Government Spacing */
.pf-c-login__main-footer-links li {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .pf-c-login__main-footer-links li {
    margin-right: 1rem;
  }
}

/* ===== Locale Selector - Gov.gr Style ===== */

/* govgr-header-content is flex-centered; locale is positioned by #kc-header */
.govgr-header-content {
  position: static;
}

/* Reset bootstrap column classes injected by Keycloak */
#kc-locale {
  position: absolute !important;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  float: none !important;
  margin: 0 !important;
}

#kc-locale-wrapper {
  width: auto;
}

/* ---- Locale dropdown (govgr-dropdown native <details>) ---- */

.locale-dropdown {
  position: relative;
}

/* Toggle button: globe + code + chevron */
.locale-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: #2E7BBF !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  box-shadow: none !important;
  outline: none;
  list-style: none; /* hide default <details> marker */
}

/* Hide default marker in webkit/blink */
.locale-toggle::-webkit-details-marker {
  display: none;
}

.locale-toggle::marker {
  content: '';
  display: none;
}

.locale-toggle:hover {
  background: #256CA8 !important;
}

.locale-toggle:focus {
  outline: 3px solid #ffdd00 !important;
  outline-offset: 2px;
  background: #256CA8 !important;
}

/* Globe icon */
.locale-globe {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Locale short code text */
.locale-code {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Chevron icon */
.locale-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Rotate chevron when dropdown is open */
.locale-dropdown[open] .locale-chevron {
  transform: rotate(180deg);
}

/* Dropdown content panel */
.locale-content {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #ffffff !important;
  border: none !important;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  min-width: 150px;
  z-index: 1000;
  padding: 0.35rem 0 !important;
  margin: 0 !important;
  overflow: hidden;
  width: max-content;
}

/* Dropdown option links */
.locale-option {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  line-height: 1.4;
}

.locale-option:hover {
  background: #f4f5f6 !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.locale-option:focus {
  background: #e8eaed !important;
  outline: 2px solid #2E7BBF;
  outline-offset: -2px;
  box-shadow: none !important;
  color: #1a1a1a !important;
}

.locale-option:visited {
  color: #333333 !important;
}

/* Responsive adjustments for locale selector */
@media (max-width: 639px) {
  #kc-locale {
    position: absolute !important;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .locale-toggle {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.8rem;
  }

  .locale-globe {
    width: 16px;
    height: 16px;
  }

  .locale-code {
    font-size: 0.85rem;
  }

  .locale-chevron {
    width: 10px;
    height: 10px;
  }
}

/* Spacing Adjustments - Government Layout Standards */
.login-pf .container,
.login-pf .ds-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .login-pf .container,
  .login-pf .ds-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* (info section styled above) */

/* Alerts - Using @digigov/css design system */
.pf-c-alert__title {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(var(--color-error-text-rgb), var(--tw-text-opacity, 1));
}

.pf-c-alert.pf-m-inline {
  border-width: 5px;
  border-color: rgba(var(--color-error-rgb), var(--tw-border-opacity, 1));
  background-color: rgba(var(--color-error-rgb), var(--tw-bg-opacity, 1));
  border-radius: var(--notification-banner-border-radius, 4px);
  margin-bottom: 1.5rem;
}

.pf-c-alert.pf-m-inline.pf-m-success {
  border-color: rgba(var(--color-success-rgb), var(--tw-border-opacity, 1));
  background-color: rgba(var(--color-success-rgb), var(--tw-bg-opacity, 1));
}

.pf-c-alert.pf-m-inline.pf-m-info {
  border-color: rgba(var(--color-info-rgb), var(--tw-border-opacity, 1));
  background-color: rgba(var(--color-info-rgb), var(--tw-bg-opacity, 1));
}

/* Center "Sign Up" header properly */
.login-pf-header .col-md-10 {
  width: 100% !important;
}

/* Section Spacing - Government Standards */
#kc-form-options, 
#kc-info-wrapper {
  margin-top: 1.5rem;
}

#kc-form-buttons {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  #kc-form-options,
  #kc-info-wrapper {
    margin-top: 2rem;
  }
  
  #kc-form-buttons {
    margin-top: 2rem;
  }
}

/* (IDP section styled above) */
.card-pf {
    box-shadow: none !important;
}
/* Mobile Responsiveness */
@media (max-width: 639px) {
  .login-pf-page-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .login-pf-page-header img {
    max-height: 50px;
  }
  
  #kc-header {
    padding: 0.75rem 1rem;
  }
  
  #kc-header-wrapper {
    font-size: 1.25rem;
  }
  
  #kc-content {
    padding: 1.5rem 1.25rem;
  }
  
  .card-pf {
    margin: 2rem auto;
  }
}

/* (Locale selector styles are in the dedicated section above) */

/* Notification Banner Adjustments */
.govgr-notification-banner {
  border-left: 5px solid var(--color-info) !important;
  margin: 0 !important;
  text-align: left !important;
}

.govgr-notification-banner__content {
  padding: 1.5rem !important;
}

/* Greek Government Typography Enhancements */
.govgr-heading-lg {
  font-weight: 400 !important;
  letter-spacing: 0.5px;
}

.govgr-body {
  line-height: 1.6 !important;
  color: #252830 !important; /* GovGR official dark text (--color-base-content) */
}

.govgr-body-sm {
  line-height: 1.5 !important;
  opacity: 0.9;
}

/* Masthead adjustments to match GOV.GR */
.govgr-masthead--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-300) 100%) !important;
}

/* Link styling to match GOV.GR */
.govgr-link {
  color: var(--color-link) !important;
  transition: all 0.2s ease;
}

.govgr-link:hover {
  color: var(--color-link-hover) !important;
  text-decoration-thickness: 2px !important;
}

.govgr-link:focus {
  background-color: var(--color-focus) !important;
  color: var(--color-link-active) !important;
  outline: 3px solid var(--color-focus) !important;
  outline-offset: 0 !important;
  box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content) !important;
}

/* Width Container Adjustments */
.govgr-width-container {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .govgr-width-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Footer styling to match GOV.GR screenshots */
#kc-info-wrapper {
  background: var(--color-base-200);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

/* Button focus states following GOV.GR standards */
.govgr-btn:focus {
  outline: 3px solid transparent !important;
  box-shadow: 0 0 0 4px var(--color-focus) !important;
}

/* ===== Error Page Styles ===== */

#kc-error-section {
  padding: 2rem 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.error-message {
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: center;
  margin: 0;
}

.govgr-notification-banner--error {
  border-left: 4px solid #d32f2f;
  background-color: #ffebee;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.govgr-notification-banner--error .govgr-notification-banner__content {
  text-align: center;
}

.error-back-link {
  margin-top: 2rem;
  text-align: center;
}

.error-back-link .govgr-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--main-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.error-back-link .govgr-link:hover {
  background-color: var(--main-color-dark);
}

.error-back-link .govgr-link:focus {
  outline: 3px solid transparent;
  box-shadow: 0 0 0 4px var(--color-focus);
}

/* ===== Page Footer ===== */

.page-footer {
  position: relative;
  margin-top: auto;
  width: 100%;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 1.25rem 1.5rem;
}

.page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-footer-col {
  display: flex;
  align-items: center;
}

.page-footer-left {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.page-footer-center {
  flex: 1;
  justify-content: center;
}

.page-footer-right {
  flex: 0 0 auto;
}

.footer-greece-logo {
  height: 60px;
  width: auto;
  display: block;
}

.footer-gov-logo {
  height: 60px;
  width: auto;
  display: block;
}

.footer-implementation-text {
  margin: 0;
  font-size: 0.875rem;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.5;
}

.footer-link {
  color: #003375;
  font-weight: 500;
  text-decoration: underline;
}

.footer-link:visited {
  color: #003375;
}

@media (max-width: 639px) {
  .page-footer {
    padding: 1rem;
  }

  .page-footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .page-footer-left,
  .page-footer-center,
  .page-footer-right {
    justify-content: center;
    width: 100%;
  }

}