/* ==========================================
   THEME CSS FOR FUNDACJA RL
   Colors: neutral (primary), royalblue (accent)
   Font: Nunito
   ========================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 18px;
}

a {
  color: #4169E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2c4db8;
}

img {
  max-width: 100%;
  height: auto;
}

/* === NAVBAR === */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #4169E1 !important;
}

.navbar-brand svg {
  width: 40px;
  height: 40px;
}

.navbar-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #555 !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  list-style: none !important;
}

.navbar-nav .nav-link:hover {
  color: #4169E1 !important;
}

.navbar-nav .nav-item {
  list-style: none !important;
}

.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after {
  display: none !important;
  content: none !important;
}

.navbar-toggler {
  border: 2px solid #4169E1;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(65, 105, 225, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #e8ecf5 100%) !important;
  padding: 4rem 0 !important;
  margin-bottom: 3rem !important;
}

.hero-section h1 {
  color: #222 !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
}

.hero-section .lead {
  font-size: 1.15rem !important;
  color: #444 !important;
  margin-bottom: 2rem !important;
  line-height: 1.8 !important;
}

.hero-section .btn-hero {
  background-color: transparent !important;
  color: #4169E1 !important;
  border: 2px solid #4169E1 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.hero-section .btn-hero:hover {
  background-color: #4169E1 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.hero-section img {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* === TABLE OF CONTENTS === */
.toc-section {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.toc-section h2 {
  margin-top: 0;
  color: #4169E1;
  text-align: center;
  margin-bottom: 1.5rem;
}

.toc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.toc-buttons .btn {
  background-color: transparent;
  color: #4169E1;
  border: 2px solid #4169E1;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toc-buttons .btn:hover {
  background-color: #4169E1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* === CONTENT SECTIONS === */
.content-section {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.content-section h2 {
  color: #4169E1;
  border-bottom: 3px solid #4169E1;
  padding-bottom: 0.75rem;
  margin-top: 0;
}

.content-section h3 {
  color: #333;
  margin-top: 1.5rem;
}

/* === LISTS === */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.content-section ul li,
.content-section ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 18px;
  line-height: 1.7;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background-color: #4169E1;
  border-radius: 50%;
}

.content-section ol {
  counter-reset: custom-counter;
}

.content-section ol li {
  counter-increment: custom-counter;
}

.content-section ol li::before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #4169E1;
  font-weight: 700;
  font-size: 1.1rem;
}

/* === TABLES === */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  font-size: 17px;
}

table thead {
  background-color: #4169E1;
  color: #ffffff;
}

table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  font-size: 17px;
}

table tbody tr:hover {
  background-color: #f8f9fa;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* === CARDS === */
.info-card {
  background-color: #f0f4ff;
  border-left: 4px solid #4169E1;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.info-card h3 {
  margin-top: 0;
  color: #4169E1;
}

/* === IMAGES === */
.content-section img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}

.content-section picture {
  display: block;
  text-align: center;
}

/* === CONVERSION BUTTONS === */
.btn-conversion {
  background-color: transparent;
  color: #4169E1;
  border: 2px solid #4169E1;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  margin: 1rem 0;
}

.btn-conversion:hover {
  background-color: #4169E1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  background-color: #222;
  color: #e0e0e0;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer h5 {
  color: #4169E1;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer ul li {
  margin-bottom: 0.5rem;
  list-style: none !important;
  padding-left: 0 !important;
}

footer ul li::before,
footer ul li::after {
  display: none !important;
  content: none !important;
}

footer a {
  color: #e0e0e0;
  font-size: 1rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #4169E1;
}

footer .footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #999;
  font-size: 0.95rem;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

footer .footer-logo svg {
  width: 32px;
  height: 32px;
}

footer .footer-logo span {
  font-weight: 700;
  font-size: 1.3rem;
  color: #4169E1;
}

/* === MATERIAL ICONS === */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  color: #4169E1;
  vertical-align: middle;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero-section {
    padding: 3rem 0 !important;
  }

  .hero-section h1 {
    font-size: 2rem !important;
  }

  .hero-section .lead {
    font-size: 1.05rem !important;
  }

  .content-section {
    padding: 1.5rem;
  }

  .toc-section {
    padding: 1.5rem;
  }

  .toc-buttons {
    flex-direction: column;
  }

  .toc-buttons .btn {
    width: 100%;
  }

  table thead th,
  table tbody td {
    padding: 0.75rem;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-section h1 {
    font-size: 1.75rem !important;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  p, .content-section ul li, .content-section ol li {
    font-size: 16px;
  }
}
