/* Main Styles for Rissian.com */
:root {
  --primary-color: #3a5b8f;
  --secondary-color: #8ba5ca;
  --accent-color: #e4ebf5;
  --text-color: #333333;
  --bg-color: #ffffff;
  --footer-bg: #f5f5f5;
  --header-bg: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--header-bg);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.hero {
  padding: 80px 0;
  background-color: var(--accent-color);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

main {
  padding: 60px 0;
}

h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

p {
  margin-bottom: 20px;
}

.article {
  margin-bottom: 60px;
}

.article-meta {
  color: #777;
  margin-bottom: 15px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.topic-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.topic-card h3 {
  margin-bottom: 15px;
}

footer {
  background-color: var(--footer-bg);
  padding: 40px 0;
  color: #666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #666;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

/* Article content styling */
.article-content {
  font-size: 17px;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--secondary-color);
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #777;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.related-articles {
  margin-top: 50px;
  background-color: var(--accent-color);
  padding: 30px;
  border-radius: 8px;
}

.related-articles h3 {
  margin-top: 0;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-article-card {
  background-color: #fff;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.related-article-card h4 {
  margin-bottom: 10px;
}

.related-article-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.related-article-card a:hover {
  text-decoration: underline;
}