@import url('https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i');


/* Base */
* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #858796; /* Szary kolor tekstu typowy dla SB Admin */
}

/* Background similar to the screenshot */
body {
    background:
        radial-gradient(circle at 50% 10%, #e6e6ea 0%, #f6f6f7 40%, #eeeeF1 100%);
}

/* Page container */
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px 44px;
}

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 10px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.logo {
    height: 54px;
    width: auto;
}

/* Login button (top-right) */
.login-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #6dd15f;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
}

.login-btn:hover {
    transition: all 0.2s ease-in-out; /* Czas trwania animacji: 0.2s */
    color: white !important; /* Wymuszenie białego tekstu */
}

/* 2. Hover: Przyciemnienie dowolnego tła o 15% */
.login-btn:hover {
    filter: brightness(85%);       /* To robi "magiczną" robotę ściemniania */
    transform: translateY(-2px);   /* Opcjonalnie: guzik lekko unosi się do góry */
    text-decoration: none;         /* Usuwa podkreślenie linków */
}
/* Layout: sidebar + content */
.layout {
    display: flex;
    gap: 34px;
    padding-top: 18px;
}

/* Sidebar */
.sidebar {
    width: 210px;
    padding-top: 76px; /* aligns links visually with the content header */
}

.nav-link {
    display: block;
    padding: 10px 0;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 16px;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Content */
.content {
    flex: 1;
    min-width: 0;
}

/* Header: "Aktualności" + horizontal line */
.content-header {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 16px;
}

.title {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.title-line {
    flex: 1;
    height: 1px;
    background: #bcbcc0;
    margin-bottom: 10px; /* makes the line sit slightly lower than the text top */
}

/* Cards */
.cards {
    display: grid;
    gap: 22px;
    max-width: 860px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 26px;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.15),
        0 1px 0 rgba(0,0,0,0.05);
}

.card-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.card-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #2a2a2a;
}

.card-more {
    display: inline-block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    text-decoration: none;
}

.card-more:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .layout { flex-direction: column; gap: 18px; }
    .sidebar { width: 100%; padding-top: 0; display: flex; gap: 18px; }
    .nav-link { padding: 8px 0; }
    .cards { max-width: 100%; }
}
