.home .wrapper,
.home .container {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

p {
    text-align: justify !important;
}

.bg-midnight-blue {
  background-color: #191970;
}

.bg-prussian-blue {
  background-color: #003153;
}

.single .content {
    text-align: left !important;
    margin-left: 0;
    margin-right: 0;
}

.measure {
    max-width: 1200px !important;
}

.measure-wide {
    max-width: 1200px !important;
}

body { /* Or your main container */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the container takes full viewport height */
}

main {
    flex-grow: 1;
}

footer {
  text-align: center;
}

.pb7 {
    padding-bottom: 1rem;
}

.pdf-download {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space between icon and text */
    margin: 1rem 0;
}

.pdf-icon {
    height: 24px;
    width: auto;
    display: block;
}

.down-arrow-icon {
    height: 16px;
}

aside {
    display: none;
}

nav {
  display: flex;
  justify-self: flex-end;
}

/* Mobile navbar layout */
@media screen and (max-width: 60em) {
  nav ul {
    display: block;
  }

  nav li {
    display: block;
    margin-bottom: 2.5rem;
  }
}

.dropdown {
  display: none;
  z-index: 1000;
}

li:hover > .dropdown {
  display: block;
}

.dropdown-parent.open > .dropdown {
    display: block;
}

.dropdown a {
  color: #333;
}

.dropdown a:hover {
  background: #eee;
}

.arhiva-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.year-section {
  margin-bottom: 4rem;
}

.year-header {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.issue-item {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-item:hover {
  transform: translateY(-5px);
}

.issue-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.issue-image {
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: block;
}

.issue-image:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  border-color: #3498db;
}

.small-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.smaller-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.bottom-divider {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.contact-info {
  max-width:800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-section {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-section h3 {
  color: #003153;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-section p {
  margin: 0.5rem 0;
  text-align: center !important;
  line-height: 1.6;
}

.contact-section a {
  color: #3498db;
  text-decoration: none;
  word-break: break-word;
}

.contact-section a:hover {
  text-decoration: underline;
}

.contact-links p {
  margin: 0.75rem 0;
}

.issue-title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.issue-link:hover .issue-title {
  color: #3498db;
}

/* Responsive design for tablets */
@media screen and (max-width: 60em) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .year-header {
    font-size: 1.75rem;
  }
}

/* Responsive design for mobile */
@media screen and (max-width: 30em) {
  .issues-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .year-header {
    font-size: 1.5rem;
  }

  .arhiva-container {
    padding: 1rem 0.5rem;
  }
}

/* Novo Godište styles */
.novo-godiste-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

.issues-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1400px;
}

.issue-card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #3498db;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image-wrapper {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.issue-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.card-link:hover .card-title {
  color: #3498db;
}

/* Detail page styles */
.novo-godiste-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

.pdf-download-section {
  text-align: center;
  margin-bottom: 2rem;
}

.pdf-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.pdf-download-link:hover {
  background-color: #2980b9;
}

.pdf-download-link .pdf-icon {
  width: 20px;
  height: 20px;
}

.detail-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.doi-section {
  flex: 1;
}

.doi-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.detail-image-wrapper {
  width: 250px;
  flex-shrink: 0;
}

.detail-image {
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.articles-table-wrapper {
  margin-bottom: 3rem;
  overflow-x: auto;
}

.articles-table {
  width: 100%;
  border-collapse: collapse;
}

.articles-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

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

.articles-table td {
  padding: 1.5rem 1rem;
  vertical-align: top;
}

.article-info {
  width: 50%;
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-link:hover .article-title {
  color: #3498db;
}

.article-authors {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.article-title {
  font-size: 1.1rem;
  color: #2c3e50;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.article-pages,
.article-doi {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  width: 25%;
}

.detail-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-top: 2rem;
}

/* Responsive design for novo godište */
@media screen and (max-width: 60em) {
  .issues-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .page-title,
  .detail-title {
    font-size: 2rem;
  }

  .detail-header-section {
    flex-direction: column;
  }

  .detail-image-wrapper {
    width: 200px;
    margin: 0 auto;
  }

  .articles-table td {
    padding: 1rem 0.5rem;
  }

  .article-info {
    width: 45%;
  }

  .article-pages,
  .article-doi {
    width: 27.5%;
  }
}

@media screen and (max-width: 30em) {
  .issues-cards {
    grid-template-columns: 1fr;
  }

  .page-title,
  .detail-title {
    font-size: 1.75rem;
  }

  .novo-godiste-container,
  .novo-godiste-detail {
    padding: 1rem 0.5rem;
  }

  .detail-image-wrapper {
    width: 100%;
    max-width: 250px;
  }

  .articles-table {
    font-size: 0.9rem;
  }

  .articles-table td {
    padding: 0.75rem 0.25rem;
  }

  .article-title {
    font-size: 1rem;
  }

  .article-authors,
  .article-pages,
  .article-doi {
    font-size: 0.85rem;
  }
}

/* Article detail page styles */
.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-container {
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
}

.article-header {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.article-authors-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.article-pdf-download {
  margin: 1.5rem 0;
}

.article-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.article-pdf-link:hover {
  background-color: #2980b9;
}

.article-pdf-link .pdf-icon {
  width: 20px;
  height: 20px;
}

.article-doi-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.doi-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

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

.article-text {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  text-align: justify;
}

.article-references {
  list-style-type: none;
  padding-left: 0;
}

.article-references li {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.article-references li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
}

.article-content {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* Responsive design for article pages */
@media screen and (max-width: 60em) {
  .article-container {
    padding: 2rem;
  }

  .article-header {
    font-size: 2rem;
  }

  .article-section-title {
    font-size: 1.3rem;
  }
}

.w-two-thirds-l {
  width: 100%;
}

@media screen and (max-width: 30em) {
  .article-detail {
    padding: 1rem 0.5rem;
  }

  .article-container {
    padding: 1.5rem;
  }

  .article-header {
    font-size: 1.75rem;
  }

  .article-subtitle {
    font-size: 1rem;
  }

  .article-section-title {
    font-size: 1.2rem;
  }

  .article-text,
  .article-authors-text,
  .article-doi-text {
    font-size: 1rem;
  }

  .article-references li {
    font-size: 0.95rem;
  }
}

.lh {
  line-height: 80px;
}
