:root {
  --club-blue: #0b3f91;
  --club-blue-dark: #062452;
  --club-yellow: #ffea00;
  --club-gold: #f4c400;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 300px;
  background: linear-gradient(180deg, var(--club-blue), var(--club-blue-dark));
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 28px;
  text-align: center;
}

.club-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 18px 28px;
  font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: var(--club-yellow);
  color: var(--club-blue-dark);
}

.sidebar-motto {
  margin-top: auto;
  padding: 28px;
  font-weight: 800;
  color: var(--club-yellow);
}

.sidebar-motto p {
  margin: 4px 0;
}

.portal-main {
  flex: 1;
  padding: 0 32px 24px;
}

.portal-header {
  background: linear-gradient(90deg, var(--club-blue), var(--club-blue-dark));
  color: white;
  margin: 0 -32px 32px;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-header h1 {
  margin: 0;
  font-size: 34px;
}

.portal-header p {
  margin: 6px 0 0;
  color: var(--club-yellow);
  font-weight: 700;
}

.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-block span {
  display: block;
  color: #dbeafe;
  font-size: 14px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--club-yellow);
  color: var(--club-blue-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.welcome-panel {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.welcome-panel h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.welcome-panel h3 {
  color: var(--club-blue);
  margin: 0 0 12px;
}

.welcome-panel p {
  color: var(--club-blue);
  font-style: italic;
  font-weight: 700;
  margin: 0;
}

.welcome-motto {
  border-left: 4px solid var(--club-yellow);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--club-blue-dark);
  font-size: 26px;
  font-style: italic;
}

.tasks-section,
.module-section {
  margin-bottom: 28px;
}

.tasks-section h2,
.module-section h2 {
  margin: 0 0 14px;
}

.task-grid,
.module-grid {
  display: grid;
  gap: 18px;
}

.task-grid {
  grid-template-columns: repeat(4, 1fr);
}

.module-grid {
  grid-template-columns: repeat(4, 1fr);
}

.task-card,
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.task-card strong {
  font-size: 32px;
  color: var(--club-blue);
}

.task-card p {
  margin: 8px 0 4px;
  font-weight: 800;
}

.task-card span {
  color: var(--muted);
}

.module-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.module-card p {
  color: #334155;
  line-height: 1.4;
}

.module-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--club-blue);
  font-weight: 800;
  text-decoration: none;
}

.module-card:first-child {
  border-color: var(--club-yellow);
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 10px 0;
}

@media (max-width: 900px) {
  .portal-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-logo,
  .sidebar-motto {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-nav a {
    white-space: nowrap;
  }

  .portal-header,
  .welcome-panel,
  .portal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}