/* === Styl ogólny panel-oessh.pl === */
body {
  background-color: #f9f8f6;
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.6;
}

/* Nagłówki */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #7a0026;
}

/* Menu górne */
.sp-megamenu-parent > li > a {
  color: #7a0026 !important;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.sp-megamenu-parent > li > a:hover {
  color: #000 !important;
}

/* Treść strony głównej */
.homepage-intro {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 40px auto;
}
.homepage-intro img {
  width: 120px;
  margin-bottom: 20px;
}

/* Stopka */
#sp-footer {
  text-align: center;
  color: #7a0026;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  background-color: #ffffff;
}

/* Przyciski */
.btn, button {
  border-radius: 8px !important;
}

.btn-primary { background-color: #7a0026; border-color: #7a0026; }
a { color: #7a0026; }
a:hover,
a:focus { color: #b80020; }

/* ====== LINKI GLOBALNE ====== */
a {
  color: #7a0026; /* Bordo z identyfikacji */
  text-decoration: underline 0.05em rgba(122, 0, 38, 0.25); /* delikatne podkreślenie */
  text-underline-offset: 3px;
  transition: all 0.2s ease-in-out;
}

/* Po najechaniu – jaśniejszy, cieplejszy odcień */
a:hover,
a:focus {
  color: #b80020;
  text-decoration-color: currentColor;
}

/* Linki w przyciskach i nawigacji — bez podkreśleń */
.btn a,
.nav a,
.pagination a {
  text-decoration: none;
}

/* ====== DODATKOWE ROZWIĄZANIE: LINK ZA NAGŁÓWKIEM ====== */
/* Jeśli występuje link zaraz po nagłówku (np. tytuł i pod nim link) */
h2 + a,
h3 + a,
h4 + a {
  font-weight: 600;
  color: #7a0026;
  text-decoration: underline;
  text-underline-offset: 3px;
}
h2 + a:hover,
h3 + a:hover,
h4 + a:hover {
  color: #b80020;
}

/* ====== LINKI W TREŚCI CiviCRM ====== */
#crm-container a {
  color: #7a0026;
  text-decoration: underline 0.05em rgba(122, 0, 38, 0.25);
  text-underline-offset: 3px;
}
#crm-container a:hover {
  color: #b80020;
  text-decoration-color: currentColor;
}

/* ====== LEPSZY KONTRAST W STOPCE ====== */
footer a {
  color: #7a0026;
}
footer a:hover {
  color: #b80020;
  text-decoration-color: currentColor;
}

/* Ukrywa linki do stron wpłat w dashboardzie użytkownika */
.crm-contact-dashboard a[href*="civicrm/contribute/transact"] {
    display: none !important;
}

/* Ukrywa przycisk "Zapłać teraz" w tabeli składek/wydarzeń */
.crm-contact-dashboard .crm-payment-link {
    display: none !important;
}

/* Wspólna ramka dla paneli */
.panel-login-box,
.panel-register-box {
    background-color: #faf7f5; /* bardzo delikatne tło */
    border: 1px solid #e3d6cf; /* ramka */
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 30px;
}

/* Opcjonalnie: cień dla „ważności” */
.panel-login-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Przycisk rejestracji bez logowania */
.panel-register-box a {
    display: inline-block;
    background-color: #7a0026;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Główny przycisk */
.btn-primary {
    background-color: #7a0026;
    border-color: #7a0026;
    color: #ffffff;
}

/* Hover / focus / active */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #5e001d;
    border-color: #5e001d;
    color: #ffffff;
    box-shadow: none;
}

/* Usunięcie bootstrapowego niebieskiego focusa */
.btn-primary:focus-visible {
    outline: none;
}

a {
    color: #7a0026;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #cc0000;
    text-decoration: underline;
}

input[type="checkbox"]:checked {
    accent-color: #7a0026;
}

.form-control:focus {
    border-color: #7a0026;
    box-shadow: 0 0 0 0.15rem rgba(122, 0, 38, 0.25);
}

.panel-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;       /* WYRÓWNANIE fontu */
    line-height: 1.5;
    font-weight: 600;

    text-decoration: none;
}

.panel-register-btn:hover,
.panel-register-btn:focus {
    text-decoration: none; /* KLUCZOWE */
}

/* =========================
   CiviCRM – przyciski akcji
   ========================= */

#crm-container button,
#crm-container input[type="submit"],
#crm-container input[type="button"] {
    background-color: #7a0026 !important;
    border-color: #7a0026 !important;
    color: #ffffff !important;

    border-radius: 6px;
    padding: 0.6em 1.4em;
    font-size: 0.95rem;
    font-weight: 500;

    box-shadow: none;
}

#crm-container a.crm-button,
#crm-container a.button {
    display: inline-block;
    background-color: #7a0026;
    border: 1px solid #7a0026;
    color: #ffffff !important;

    border-radius: 6px;
    padding: 0.6em 1.4em;
    font-weight: 500;
    text-decoration: none !important;
}

/* CiviCRM – "Zarejestruj się teraz" (stary typ przycisku) */
#crm-container a.button,
#crm-container a.button span {
    display: inline-block;
    background-color: #7a0026 !important;
    border: 1px solid #7a0026 !important;
    color: #ffffff !important;

    border-radius: 6px;
    padding: 0.6em 1.4em;
    font-weight: 500;
    text-decoration: none !important;
}

#crm-container a.button:hover,
#crm-container a.button:hover span {
    background-color: #5f001e !important;
    border-color: #5f001e !important;
    color: #ffffff !important;
}