/* Additional styles for stories and case studies */ .stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; } .story-card { border: 1px solid var(--border-color); border-radius: 4px; padding: 1.5rem; background-color: var(--card-bg); transition: transform 0.3s, box-shadow 0.3s; height: auto; display: flex; flex-direction: column; box-sizing: border-box; margin: 0; } .story-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); } .story-card h2 { margin-top: 0; font-size: 1.5rem; color: var(--heading-color); } .story-excerpt { flex-grow: 1; margin-bottom: 1rem; } .story-meta { font-size: 0.85rem; color: var(--meta-text-color); margin-bottom: 1rem; font-style: italic; } .story-link { display: inline-block; padding: 0.5rem 1rem; background-color: #004494; /* Darker blue for better contrast */ color: #ffffff; /* Bright white for better contrast */ text-decoration: none; border-radius: 4px; font-weight: 700; /* Increased from 500 to 700 for better visibility */ transition: background-color 0.3s; text-align: center; align-self: flex-start; } /* Dark mode specific styles for story links */ @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .story-link { background-color: #0056b3; /* Darker blue for dark mode */ color: #ffffff; /* Bright white */ } :root:not([data-theme='light']) .story-link:hover { background-color: #003d82; /* Even darker blue for hover in dark mode */ } } html[data-theme='dark'] .story-link { background-color: #0056b3; /* Darker blue for dark mode */ color: #ffffff; /* Bright white */ } html[data-theme='dark'] .story-link:hover { background-color: #003d82; /* Even darker blue for hover in dark mode */ } .story-link:hover { background-color: #003366; /* Darker hover color for better contrast */ } /* Individual story page styles */ .story-header { margin-bottom: 2em; } .story-header h1 { margin-bottom: 0.5rem; } .story-header .story-meta { margin-top: 0; margin-bottom: 1rem; } /* Story image container and caption styles */ .story-image-container { margin: 2rem 0; text-align: center; } .story-image { width: 100%; max-width: 800px; height: auto; border-radius: 4px; margin: 0 0 0.5rem; border: 1px solid var(--border-color); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .image-caption { font-size: 0.9rem; color: var(--meta-text-color); margin: 0.5rem 0 1.5rem; font-style: italic; text-align: center; } .story-content { line-height: 1.7; max-width: 800px; margin: 0 auto; margin-bottom: 2em; } .story-content h2 { margin-top: 2rem; margin-bottom: 1rem; } .story-content p { margin-bottom: 1.5rem; } .story-content blockquote { border-left: 4px solid var(--accent-color); padding-left: 1rem; margin-left: 0; margin-right: 0; font-style: italic; color: var(--blockquote-color); } .story-footer { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--border-color); } .related-stories { margin-top: 2rem; } .related-stories h3 { margin-bottom: 1em; } .related-stories-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5em; } .story-nav { display: flex; justify-content: space-between; margin-bottom: 2em; } .story-nav-link { padding: 0.5em 1em; background-color: var(--theme-bg); border: 1px solid var(--border-color); border-radius: 4px; text-decoration: none; transition: all 0.3s ease; color: #004494; } .story-nav-link:hover { background-color: var(--theme-hover); text-decoration: none; color: #003366; } .story-nav-link.prev::before { content: "← "; } .story-nav-link.next::after { content: " →"; } /* Responsive adjustments */ @media (max-width: 768px) { .stories-grid { grid-template-columns: 1fr; } .related-stories-list { grid-template-columns: 1fr; } .story-nav { flex-direction: column; gap: 1rem; } .story-nav-link { text-align: center; } } @media (max-width: 600px) { .related-stories-list { grid-template-columns: 1fr; } } /* Accessibility enhancements */ .story-link:focus { outline: 2px solid var(--focus-outline-color); outline-offset: 2px; } /* Utility classes */ .hidden { visibility: hidden; } /* Placeholder notice styling */ .placeholder-notice { background-color: var(--theme-bg); border: 2px dashed var(--accent-color); border-radius: 8px; padding: 2em; margin: 2em 0; text-align: center; } .placeholder-notice h2 { color: var(--accent-color); margin-bottom: 1em; } .placeholder-notice h3 { margin-top: 1.5em; margin-bottom: 0.5em; } .placeholder-notice ul { display: inline-block; text-align: left; margin: 1em auto; } .placeholder-notice li { margin: 0.5em 0; } .placeholder-notice a { font-weight: bold; color: #004494; text-decoration: underline; } .placeholder-notice a:hover { color: #003366; }