/* Navigation spacing adjustments */
.navbar-nav .nav-item {
    margin-left: 1.5rem;
}

.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

/* Ensure dropdown menus align properly with increased spacing */
.navbar-nav .dropdown-menu {
    margin-top: 0.125rem;
}

/* Body text styling improvements - Reference design inspired */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #333;
}

/* Standard paragraph styling for all pages */
p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
    font-weight: 400;
}

/* Stream paragraph styling */
.stream_par {
    margin-bottom: 1.75rem;
}

.stream_par p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
    font-weight: 400;
}

.stream_par p:last-child {
    margin-bottom: 0;
}

/* Stream text styling */
.stream_text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
    font-weight: 400;
}

.stream_text:last-child {
    margin-bottom: 0;
}

/* Ensure paragraphs in richtext content have proper spacing */
.richtext p, [data-block-key] {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
    font-weight: 400;
}

/* Target paragraphs inside mb-3 divs (from richtext filter) */
.mb-3 p[data-block-key] {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
    font-weight: 400;
}

/* Add spacing to all paragraphs in richtext content */
.richtext-content p {
    margin-bottom: 1.75rem !important;
}

/* Last paragraph in a richtext block */
.richtext-content p:last-child {
    margin-bottom: 0.5rem !important;
}

/* Last paragraph in a richtext block */
.richtext p:last-child, .mb-3 p[data-block-key]:last-child {
    margin-bottom: 0.5rem;
}

/* Modern heading styles (excluding visitor info page feature headings) */
h1:not(.feature-heading), h2:not(.feature-heading), h3:not(.feature-heading) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    margin-top: 2.75rem;
}

h1:not(.feature-heading) {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2:not(.feature-heading) {
    font-size: 2rem;
    line-height: 1.3;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

h3:not(.feature-heading) {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #555;
}

/* First heading after content start */
h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

ul, ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: #444;
}

/* Sidebar styling */
.sidebar-sticky {
    position: sticky;
    top: 90px; /* Account for fixed navbar height */
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding-top: 1rem;
}

/* Important links card styling */
.important-links-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.important-links-card .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-bottom: none;
}

.important-links-card .list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.15s ease-in-out;
}

.important-links-card .list-group-item:hover {
    background-color: #f8f9fa;
}

.important-links-card .list-group-item:first-child {
    border-top: none;
}

.important-links-card .list-group-item:last-child {
    border-bottom: none;
}

/* Responsive sidebar */
@media (max-width: 767.98px) {
    .sidebar-sticky {
        position: relative;
        top: auto;
        height: auto;
        margin-top: 2rem;
    }
}

/* Hiroshima Feature Block Styling */
.hiroshima-feature-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hiroshima-feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.feature-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.feature-image-wrapper img {
    transition: transform 0.3s ease;
}

.feature-image-wrapper:hover img {
    transform: scale(1.05);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.feature-heading {
    color: #212529;
    font-weight: 600;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.feature-details {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-details p {
    margin-bottom: 1rem;
}

.feature-details p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hiroshima-feature-block {
        padding: 1.5rem 0;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
    
    .feature-heading {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .feature-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .feature-image-wrapper {
        margin-bottom: 1.5rem;
    }
}

/* News Page Styling */
.news-article {
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
}

.news-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.news-image-wrapper:hover .news-image {
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.875rem;
}

.news-date {
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.news-excerpt p {
    margin-bottom: 0;
}

.news-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #0056b3;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* Responsive adjustments for news */
@media (max-width: 767.98px) {
    .news-image {
        height: 200px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}

/* Article Page Styling */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    letter-spacing: 0.01em;
}

.article-hero-image {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-hero-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
}

.article-content h2 {
    clear: both;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 2rem;
    letter-spacing: -0.02em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

/* Ensure consistent spacing for all content blocks */
.mb-3 {
    margin-bottom: 2rem !important;
}

/* Content blocks should have proper paragraph spacing */
.container p, .content p, .page-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: #444;
}

.article-content blockquote {
    clear: both;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
}

/* Responsive adjustments for article */
@media (max-width: 767.98px) {
    .article-hero-image {
        float: none;
        margin: 0 0 1.5rem 0;
        max-width: 100%;
        display: block;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        margin-top: 2rem;
        font-size: 1.5rem;
    }
    
    h1:not(.feature-heading) {
        font-size: 2rem;
    }
    
    h2:not(.feature-heading) {
        font-size: 1.5rem;
    }
    
    h3:not(.feature-heading) {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Mono-style News List Layout */
.news-list-item {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  background: none;
  transition: background 0.2s;
}
.news-list-item:last-child {
  border-bottom: none;
}
.news-list-item:hover {
  background: #fafbfc;
}
.news-list-item .news-title {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.news-list-item .news-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
.news-list-item .news-title a:hover {
  color: #007bff !important;
}
.news-list-item .news-date {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}
.news-list-item .news-excerpt {
  color: #555;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
@media (max-width: 767.98px) {
  .news-list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  .news-list-item .me-4 {
    margin-right: 0 !important;
    margin-bottom: 1rem !important;
  }
  .news-list-item .news-title {
    font-size: 1.1rem;
  }
}

.squircle {
  border-radius: 30%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.squircle-img {
  width: 120px !important;
  height: 120px !important;
  display: block;
}

/* Header overlay text styling */
.position-absolute.bg-dark.bg-opacity-75.text-white {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 24px !important;
}

.position-absolute.bg-dark.bg-opacity-75.text-white h1,
.position-absolute.bg-dark.bg-opacity-75.text-white p {
    color: white !important;
    font-family: inherit !important;
}

.position-absolute.bg-dark.bg-opacity-75.text-white .display-4 {
    color: white !important;
    font-family: inherit !important;
    font-size: 2.5rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.position-absolute.bg-dark.bg-opacity-75.text-white .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: inherit !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
}