/* --- Opći stilovi --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222;
  background-color: #f9f9f9;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* --- Breadcrumbs --- */
.ss-breadcrumb {
  margin: 1rem 0 2rem 0;
  font-size: 0.9rem;
}
.ss-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ss-breadcrumb li {
  display: inline;
}
.ss-breadcrumb li+li:before {
  content: "›";
  margin: 0 0.5rem;
  color: #888;
}
.ss-breadcrumb a {
  color: #0a454e;
  text-decoration: none;
}
.ss-breadcrumb a:hover,
.ss-breadcrumb a:focus {
  text-decoration: underline;
}
.ss-breadcrumb li[aria-current="page"] {
  color: #444;
  font-weight: 600;
  cursor: default;
}

/* --- Kvartali (Quarterlies) --- */
.ss-quarterlies-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .ss-quarterlies-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .ss-quarterlies-list {
    grid-template-columns: 1fr;
  }
}
.ss-quarterly-box {
  background: #fff;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.ss-quarterly-box:hover,
.ss-quarterly-box:focus-within {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ss-quarterly-cover {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.ss-quarterly-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a454e;
}

/* --- Header kvartala na listi lekcija --- */
.quarterly-header {
  gap: 2rem;
  align-items: flex-start;
  background: #fff;
  padding: 1rem 1.5rem;
}
@media (max-width: 768px) {
  .quarterly-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.quarterly-cover {
  width: 220px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.quarterly-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a454e;
  margin: 0 0 1rem 0;
}
.quarterly-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.quarterly-date {
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.05em;
}

/* --- Lista lekcija --- */
.lessons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lesson-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  min-height: 80px;
  padding-left: 100px;
}
.lesson-item:last-child {
  border-bottom: none;
}
.lesson-cover {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  position: absolute;
  top: 16px;
  left: 0;
}
.lesson-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a454e;
  text-decoration: none;
}
.lesson-title:hover,
.lesson-title:focus {
  text-decoration: underline;
}
.lesson-dates {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}

/* --- Lekcija sidebar i sadržaj --- */
.lesson-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.lesson-sidebar {
  width: 220px;
  background: #fff;
  padding: 1rem;
}
.lesson-sidebar h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0a454e;
}
.lesson-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lesson-sidebar li {
  margin-bottom: 0.5rem;
}
.lesson-sidebar li.active a {
  font-weight: 700;
  color: #01373f;
}
.lesson-sidebar a {
  color: #0a454e;
  text-decoration: none;
}
.lesson-sidebar a:hover,
.lesson-sidebar a:focus {
  text-decoration: underline;
}
.lesson-content {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
}
.lesson-content h2 {
  margin-top: 0;
  color: #0a454e;
}
.lesson-content p {
  margin-top: 0.3rem;
  color: #444;
}

/* --- Modal --- */
.ss-modal {
  border: none;
  padding: 1rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.ss-modal-content {
  display: flex;
  flex-direction: column;
}
.ss-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}
.ss-verse-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #222;
  max-height: 300px;
  overflow-y: auto;
}
#translationSelect {
  margin-top: 0.5rem;
  padding: 0.3rem;
  font-size: 1rem;
}

/* --- Share buttons --- */
.ss-share-buttons a {
  margin-right: 1rem;
  text-decoration: none;
  color: #0a454e;
  font-weight: 600;
}
.ss-share-buttons a:hover,
.ss-share-buttons a:focus {
  text-decoration: underline;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .lesson-container {
    flex-direction: column;
  }
  .lesson-sidebar {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .lesson-content {
    width: 100%;
  }
}
