/* 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;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    position: relative;
    padding: 15px 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  nav.mobile-active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    margin: 0;
  }

  nav ul li {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 10px;
    font-size: 18px;
  }

  /* Search trigger in mobile menu */
  nav .search-trigger {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    background: var(--accent-color);
    border-radius: 6px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  nav ul li {
    margin-left: 15px;
  }

  .container {
    padding: 0 30px;
  }
}

/* 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;
}

/* Why Explore Section */
.why-explore {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

.benefit-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Quick Facts Section */
.quick-facts {
  padding: 60px 0;
  background-color: var(--accent-color);
}

.facts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.fact-card {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fact-number {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.fact-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #555;
}

.fact-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Newsletter Section */
.newsletter-signup {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 20px;
}

.newsletter-content > p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 18px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.btn-primary {
  background-color: #fff;
  color: var(--primary-color);
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #f0f0f0;
}

.privacy-note {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .email-input {
    width: 100%;
  }

  .facts-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .fact-number {
    font-size: 32px;
  }
}