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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #d32f2f;
}

a:hover {
  text-decoration: underline;
}

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

/* Header Styles */

/* Main Content Styles */
.article-header {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

.article-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.article-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 18px;
}

.author-role {
  opacity: 0.8;
  font-size: 14px;
}

.article-date {
  margin-left: auto;
  opacity: 0.8;
}

/* Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin: 40px 0;
}

.main-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Story Content */
.story-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 14px;
}

.story-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: #1a237e;
}

.story-content h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #283593;
}

.story-content p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
}

.story-content ul,
.story-content ol {
  margin: 20px 0 20px 30px;
}

.story-content li {
  margin-bottom: 10px;
  font-size: 18px;
}

.highlight-box {
  background: #f3f5ff;
  border-left: 4px solid #d32f2f;
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.quote {
  font-size: 22px;
  font-style: italic;
  color: #555;
  border-left: 3px solid #d32f2f;
  padding-left: 20px;
  margin: 30px 0;
}

.quote-author {
  text-align: right;
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}

/* Calculator */
.calculator {
  background: white;
  border: 2px solid #eaeaea;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calculator-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
  color: #1a237e;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.range-input {
  width: 100%;
  margin: 15px 0;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #d32f2f;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.selected-amount {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #d32f2f;
  margin: 20px 0;
}

.profit-result {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  text-align: center;
  border: 1px solid #c8e6c9;
}

.profit-label {
  font-size: 16px;
  color: #666;
  margin-bottom: 5px;
}

.profit-value {
  font-size: 24px;
  font-weight: 700;
  color: #2e7d32;
}

/* Registration Form */
.registration-section {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 60px 0;
  margin: 60px 0;
  text-align: center;
}

.registration-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.registration-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 40px;
}

.registration-form {
  background: white;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 10px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #d32f2f;
}

.form-button {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 10px;
}

.form-button:hover {
  background: #b71c1c;
}

.form-note {
  font-size: 14px;
  color: #666;
  margin-top: 20px;
  text-align: center;
}

/* Sidebar Components */
.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a237e;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
}

.popular-stories {
  list-style: none;
}

.story-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.story-item:last-child {
  border-bottom: none;
}

.story-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
}

.story-link {
  color: #333;
  font-weight: 500;
  display: block;
}

.story-link:hover {
  color: #d32f2f;
}

.story-readers {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Comments Section */
.comments-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
}

.comments-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #1a237e;
}

.comment {
  padding: 25px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fafafa;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.comment-author {
  font-weight: 600;
}

.comment-time {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

.comment-content {
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  font-size: 14px;
}

.comment-like {
  color: #666;
  cursor: pointer;
}

.comment-like:hover {
  color: #d32f2f;
}

/* Footer */
.main-footer {
  background: #1a237e;
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-description {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .main-content {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 26px;
  }

  .article-subtitle {
    font-size: 18px;
  }

  .registration-title {
    font-size: 28px;
  }

  .registration-form {
    padding: 10px 4px;
  }

  .registration-section .container {
    padding: 0 10px;
  }
}
