/* Main styles for the cybersecurity awareness website */

:root {
  --primary-color: #1d773c;
  --secondary-color: #2c9150;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --light-bg: #f8f9fa;
  --border-color: #dee2e6;
  --text-dark: #1d1d1b;
  --text-muted: #6c757d;
  --brand-green: #3b8c3a;
  --brand-green-dark: #2d6d2c;
  --brand-grey: #f2f4f7;
  --brand-grey-dark: #d6dbe3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--brand-grey);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}


.header {
  display: none;
}

.card {
  background: white;
  border: 1px solid var(--brand-grey-dark);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 16px rgba(20, 35, 50, 0.08);
}

.card h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--primary-color);
}

.card p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--brand-green);
  color: white;
}

.btn-primary:hover {
  background-color: var(--brand-green-dark);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border: 2px solid var(--brand-green);
}

.btn-outline:hover {
  background: var(--brand-green);
  color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.loading {
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 3px solid var(--light-bg);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-center {
  text-align: center;
}

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

.mb-3 {
  margin-bottom: 15px;
}

.mb-4 {
  margin-bottom: 20px;
}

.mt-3 {
  margin-top: 15px;
}

.info-box {
  background-color: #f6fbf7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 140, 58, 0.25);
}

.warning-box {
  background-color: #fff3cd;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid var(--warning-color);
}

.danger-box {
  background-color: #f8d7da;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid var(--danger-color);
}

.success-box {
  background-color: #d4edda;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid var(--success-color);
}

/* Itsme specific styles */
.itsme-logo {
  text-align: center;
  margin-bottom: 30px;
}

.itsme-logo img {
  max-width: 150px;
}

.itsme-button {
  background-color: #e60278;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}
.itsme-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px auto 0;
  max-width: 360px;
  width: 100%;
}

.itsme-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #dadee2;
  border-radius: 12px;
  background-color: #fff;
  text-align: left;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
  text-decoration: none;
  color: inherit;
  max-width: 360px;
  width: 100%;
}

.itsme-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.itsme-card__logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: transparent;
  overflow: hidden;
}

.itsme-card__logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.itsme-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.itsme-card__title {
  font-size: 18px;
  font-weight: 700;
  font-family: "Roboto", "Source Sans 3", Arial, sans-serif;
  color: #871642;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.itsme-card__subtitle {
  font-size: 15px;
  font-family: "Roboto", "Source Sans 3", Arial, sans-serif;
  color: #3f4045;
  font-weight: 500;
}

.itsme-card__help {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #dadee2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 600;
  background-color: #f4f6f8;
  margin-left: 8px;
  align-self: flex-start;
}

.itsme-card:hover .itsme-card__subtitle {
  text-decoration: underline;
}

.itsme-card-cta__link {
  display: inline-flex;
  font-size: 16px;
  font-family: "Roboto", "Source Sans 3", Arial, sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #000;
  text-decoration: underline;
}

.itsme-card-cta__link:hover {
  text-decoration: underline;
}

.itsme-card-note {
  font-size: 14px;
}

.itsme-button:hover {
  background-color: #c00266;
}

.code-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.code-digit {
  width: 50px;
  height: 60px;
  font-size: 24px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: 8px;
}

.code-digit:focus {
  border-color: var(--secondary-color);
  outline: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .code-digit {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }
}

/* Admin dashboard styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.stat-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table th {
  background-color: var(--light-bg);
  font-weight: 600;
  color: var(--primary-color);
}

table tr:hover {
  background-color: var(--light-bg);
}

.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
}

/* Wallonie themed landing page */
.wl-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e9ed;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

/* SPF Economie themed layout */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spf-header {
  background: #ffffff;
  border-bottom: 1px solid var(--brand-grey-dark);
  box-shadow: 0 2px 6px rgba(10, 30, 60, 0.08);
}

.spf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: #f9fbfc;
  border-bottom: 1px solid var(--brand-grey-dark);
  font-size: 14px;
}

.spf-lang-switch {
  display: flex;
  gap: 12px;
  align-items: center;
}

.spf-lang-switch a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

.spf-lang-switch .is-active {
  color: var(--text-dark);
  position: relative;
}

.spf-lang-switch .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--brand-green);
}

.spf-topbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.spf-topbar-link {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: none;
}

.spf-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
}

.spf-logo img {
  display: block;
  height: 58px;
  width: auto;
}

.spf-logo {
  display: flex;
  align-items: center;
}

.spf-middle-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.spf-contact-list {
  display: flex;
  gap: 12px;
  list-style: none;
}

.spf-contact-list li a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-grey);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}

.spf-quick-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.spf-quick-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.spf-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  border-top: 1px solid var(--brand-grey-dark);
  background: #ffffff;
}

.spf-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
}

.spf-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.spf-nav .is-active {
  color: var(--text-dark);
  border-bottom: 3px solid var(--brand-green);
}

.spf-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--brand-grey-dark);
  border-radius: 30px;
  padding: 6px 14px;
}

.spf-search input {
  border: none;
  outline: none;
  min-width: 220px;
}

.spf-search button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.spf-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.spf-breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.spf-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.spf-page-header h1 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.spf-page-header {
  margin-bottom: 24px;
}

.spf-page-header p {
  max-width: 720px;
  margin-bottom: 16px;
}

.spf-alert {
  background: #fff5e6;
  border-left: 4px solid #f59f23;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 22px;
  color: #754d11;
  font-weight: 600;
}

.spf-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.spf-page-actions a {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: none;
}

.spf-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.spf-tile {
  display: block;
  background: #ffffff;
  border: 1px solid var(--brand-grey-dark);
  padding: 18px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 30, 45, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spf-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 30, 45, 0.12);
}

.spf-highlight-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: #f1f9f2;
  border: 1px solid rgba(59, 140, 58, 0.3);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  align-items: center;
}

.spf-highlight-text h2 {
  color: var(--brand-green);
  font-size: 22px;
  margin-bottom: 10px;
}

.spf-counter {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--brand-grey-dark);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 6px 14px rgba(15, 35, 55, 0.08);
}

.spf-counter-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spf-counter-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.spf-counter-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
}

.spf-counter-value.is-dynamic {
  color: var(--brand-green);
}

.spf-counter-separator {
  width: 1px;
  height: 52px;
  background: var(--brand-grey-dark);
}

.card ul {
  margin-left: 1.5rem;
  margin-bottom: 12px;
}

.card ul li {
  margin-bottom: 6px;
}

.spf-highlight-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.spf-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.spf-side-card {
  background: #fff;
  border: 1px solid var(--brand-grey-dark);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 16px rgba(20, 35, 50, 0.08);
}

.spf-side-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

@media (max-width: 1024px) {
  .spf-middle,
  .spf-nav-wrapper,
  .spf-topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .spf-nav {
    gap: 18px;
  }

  .spf-content-grid {
    grid-template-columns: 1fr;
  }

  .spf-highlight-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .spf-highlight-actions {
    width: 100%;
  }

  .spf-highlight-actions .btn {
    flex: 1 1 auto;
  }

  .spf-counter {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .spf-counter-separator {
    display: none;
  }
}

@media (max-width: 768px) {
  .spf-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .spf-middle-right {
    align-items: flex-start;
  }

  .spf-nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .spf-search {
    width: 100%;
  }

  .spf-search input {
    width: 100%;
  }

  .spf-tile-grid {
    grid-template-columns: 1fr;
  }
}

.wl-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px 16px;
}

.wl-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wl-brand img {
  width: 88px;
  height: auto;
}

.wl-brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.2;
}

.wl-brand-text span:first-child {
  font-size: 18px;
  color: var(--text-muted);
}

.wl-brand-text span:last-child {
  font-size: 32px;
}

.wl-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wl-font-toggle {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.wl-pill {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid #e9ecf1;
  background: #ffffff;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
}

.wl-pill--primary {
  background: var(--wallonie-red);
  color: #fff;
  border-color: var(--wallonie-red);
  box-shadow: 0 6px 16px rgba(209, 0, 25, 0.25);
}

.wl-header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px 22px;
}

.wl-nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
}

.wl-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 8px;
  position: relative;
  transition: color 0.2s ease;
}

.wl-nav a:hover,
.wl-nav a.is-active {
  color: var(--brand-dark);
}

.wl-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--wallonie-red);
  border-radius: 999px;
}

.wl-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wl-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #d8dce3;
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  min-width: 260px;
}

.wl-search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  flex: 1;
}

.wl-search-btn {
  background: var(--wallonie-red);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wl-social {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--brand-dark);
}

.wl-social span {
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f3f7;
  font-size: 13px;
  font-weight: 600;
}

.wl-main {
  margin-top: 40px;
}

.wl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wl-breadcrumb span:last-child {
  color: var(--wallonie-red);
  font-weight: 600;
}

.wl-page-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.wl-section-subtitle {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-dark);
  padding-bottom: 8px;
  border-bottom: 4px solid var(--wallonie-red);
  margin-bottom: 32px;
}

.wl-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.wl-tabs button {
  border: none;
  background: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 29, 45, 0.06);
  transition: all 0.2s ease;
}

.wl-tabs button.is-active {
  color: var(--wallonie-red);
  border-color: rgba(209, 0, 25, 0.3);
  background: #fff5f6;
}

.wl-highlight {
  background: #fff5f6;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(209, 0, 25, 0.25);
  margin-bottom: 28px;
}

.wl-highlight strong {
  color: var(--wallonie-red);
}

.wl-two-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.wl-aside {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #ececec;
  box-shadow: 0 12px 30px rgba(0, 20, 40, 0.07);
}

.wl-aside h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.wl-aside p {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .container {
    padding: 30px 20px;
  }

  .wl-header-top,
  .wl-header-bottom {
    padding: 24px;
  }

  .wl-nav {
    gap: 20px;
  }

  .wl-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .wl-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .wl-header-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .wl-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .wl-search-box {
    flex: 1;
    min-width: auto;
  }

  .wl-social {
    width: 100%;
    justify-content: flex-start;
  }

  .card {
    padding: 28px;
  }
}
