/**
 * Theme: US Stock Investment Landing Page
 * File: Main Stylesheet
 * Purpose: Professional, clean design optimized for Google Ads compliance
 */

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004999;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Header & Navigation
   ======================================== */

#site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #0066cc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding {
  flex: 1 1 auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.site-title a {
  color: #0066cc;
  text-decoration: none;
}

.site-description {
  font-size: 0.9rem;
  color: #666;
}

#main-navigation {
  flex: 0 0 auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
}

.nav-menu a:hover {
  color: #0066cc;
  text-decoration: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: #ffffff;
  color: #0066cc;
}

.btn-primary:hover {
  background-color: #f0f0f0;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ========================================
   Risk Warning Banner - ENHANCED FOR GOOGLE ADS COMPLIANCE
   ======================================== */

.risk-warning-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left: 6px solid #ff6b6b;
  border-right: 6px solid #ff6b6b;
  padding: 30px 20px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: pulseWarning 3s ease-in-out infinite;
}

@keyframes pulseWarning {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
  50% { transform: scale(1.01); box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4); }
}

.warning-content {
  max-width: 1000px;
  margin: 0 auto;
  color: #721c24;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 3px solid #ff6b6b;
  padding-bottom: 15px;
}

.warning-icon {
  font-size: 48px;
  animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.warning-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #d32f2f;
}

.warning-body {
  font-size: 16px;
  line-height: 1.8;
}

.warning-body p {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 18px;
}

.warning-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warning-body li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 16px;
  font-weight: 500;
}

.warning-body li:before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-size: 18px;
}

/* Hero Disclaimer Box */
.hero-disclaimer {
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border: 3px solid #ff9800;
  border-radius: 8px;
  text-align: left;
}

.hero-disclaimer p {
  margin: 0;
  color: #721c24;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

/* Educational Disclaimer Section */
.educational-disclaimer {
  background: #f8f9fa;
  padding: 50px 20px;
  margin: 50px 0;
  border-top: 4px solid #3498db;
  border-bottom: 4px solid #3498db;
}

.disclaimer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.disclaimer-content h3 {
  text-align: center;
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 40px;
  font-weight: 700;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.disclaimer-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.disclaimer-item h4 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.disclaimer-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.disclaimer-item li {
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
}

.disclaimer-footer {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #ff9800;
  font-size: 14px;
  line-height: 1.8;
  color: #721c24;
}

.disclaimer-footer strong {
  font-size: 16px;
  color: #d32f2f;
}

/* Sidebar Disclaimer Widget */
.widget-disclaimer {
  background: #fff3cd;
  border: 3px solid #ff6b6b;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.widget-disclaimer .widget-title {
  color: #d32f2f;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}

.disclaimer-box {
  font-size: 14px;
  line-height: 1.6;
  color: #721c24;
}

.disclaimer-box p {
  margin-bottom: 10px;
  font-weight: 600;
}

.disclaimer-box ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.disclaimer-box li {
  padding: 5px 0;
  font-weight: 500;
}

.disclaimer-link {
  display: inline-block;
  margin-top: 10px;
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #d32f2f;
}

.disclaimer-link:hover {
  color: #b71c1c;
  border-bottom-color: #b71c1c;
}

/* Risk Reminder Widget */
.widget-risk-reminder {
  background: #ffebee;
  border: 2px solid #ef5350;
  border-radius: 8px;
  padding: 20px;
  margin-top: 25px;
}

.widget-risk-reminder .widget-title {
  color: #c62828;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.risk-text {
  font-size: 14px;
  line-height: 1.6;
  color: #721c24;
  margin-bottom: 10px;
  font-weight: 600;
}

.advice-text {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0;
  font-style: italic;
}

/* ========================================
   Main Content Layout
   ======================================== */

#main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.single-article-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* ========================================
   Article Cards
   ======================================== */

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.featured-post {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-post .card-image {
  grid-row: span 1;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.featured-label {
  background-color: #ffc107;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.featured-post .card-image {
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0066cc;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-title a {
  color: #333;
  text-decoration: none;
}

.card-title a:hover {
  color: #0066cc;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.card-excerpt {
  color: #555;
  margin-bottom: 1rem;
  flex: 1;
}

.card-footer {
  margin-top: auto;
}

.read-more-btn,
.read-more-link {
  display: inline-block;
  color: #0066cc;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: 2px solid #0066cc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.read-more-btn:hover,
.read-more-link:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   Single Article Page
   ======================================== */

.breadcrumb {
  background-color: #f8f9fa;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #999;
}

.article-single {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1.5rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-disclaimer {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.article-disclaimer p {
  margin: 0;
  color: #856404;
  font-size: 0.95rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0066cc;
}

.article-content h2 {
  font-size: 2rem;
}

.article-content h3 {
  font-size: 1.6rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  margin: 2rem auto;
  border-radius: 8px;
}

.article-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.tags-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.tag-link {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0066cc;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0.25rem;
}

.tag-link:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar-area {
  position: sticky;
  top: 100px;
  align-self: start;
}

.widget {
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.widget-content {
  font-size: 0.95rem;
}

.widget-notice {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: #0066cc;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #004999;
}

.categories-list,
.popular-posts-list {
  list-style: none;
}

.categories-list li,
.popular-post-item {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child,
.popular-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.count {
  color: #999;
  font-size: 0.85rem;
}

.popular-post-item a {
  display: block;
}

.post-title {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.post-views {
  display: block;
  font-size: 0.85rem;
  color: #999;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}

.widget-disclaimer {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

.disclaimer-content {
  font-size: 0.85rem;
  line-height: 1.6;
}

.disclaimer-content p {
  margin-bottom: 0.75rem;
}

.disclaimer-links {
  margin-top: 1rem;
  font-weight: 600;
}

/* ========================================
   Comments Section
   ======================================== */

.comments-section {
  background-color: #ffffff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comments-notice {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin-bottom: 2rem;
}

.comment-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.comment-body {
  display: flex;
  gap: 1rem;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.comment-content-wrapper {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 700;
  color: #333;
  font-style: normal;
}

.author-badge {
  background-color: #0066cc;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-time {
  color: #999;
  font-size: 0.85rem;
}

.comment-text {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.comment-reply-link {
  color: #0066cc;
  font-size: 0.9rem;
  font-weight: 600;
}

.children {
  list-style: none;
  margin-left: 3rem;
  margin-top: 1rem;
}

.comment-form-wrapper {
  margin-top: 2rem;
}

.comment-form-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.comment-guidelines {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.required {
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-text {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.verify-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.verify-input {
  flex: 1;
}

.verify-image {
  height: 40px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.btn-submit {
  background-color: #0066cc;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #004999;
}

.btn-reset {
  background-color: #6c757d;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reset:hover {
  background-color: #5a6268;
}

/* ========================================
   Pagination
   ======================================== */

.pagination-wrapper {
  margin: 3rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
}

.page-numbers {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers .current {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers a:hover {
  background-color: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
  text-decoration: none;
}

.page-numbers .current {
  background-color: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
  font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

#site-footer {
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  color: #ffffff;
  padding: 4rem 2rem 1.5rem;
  margin-top: 5rem;
  box-shadow: 0 -4px 20px rgba(0, 102, 204, 0.1);
  position: relative;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066cc 0%, #00a8ff 50%, #0066cc 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0066cc;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #00a8ff;
}

.footer-section p {
  line-height: 1.8;
  color: #b8c5d6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  transition: transform 0.2s;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a {
  color: #b8c5d6;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: '▸';
  margin-right: 8px;
  color: #0066cc;
  font-weight: bold;
}

.footer-links a:hover {
  color: #00a8ff;
  padding-left: 5px;
}

.compliance-notice {
  grid-column: 1 / -1;
  background: rgba(255, 243, 205, 0.05);
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 1rem;
}

.compliance-notice h3 {
  color: #ffc107;
  border-bottom-color: rgba(255, 193, 7, 0.5);
}

.disclaimer-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #d0dae6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 3px solid #ffc107;
}

.disclaimer-text strong {
  color: #ffc107;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  color: #8899aa;
  font-size: 0.9rem;
}

.copyright p {
  margin: 0.25rem 0;
}

.powered-by {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.powered-by a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

.powered-by a:hover {
  color: #00a8ff;
}

.compliance-badges {
  text-align: right;
}

.compliance-text {
  color: #8899aa;
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

/* ========================================
   Educational Disclaimer Section
   ======================================== */

.educational-disclaimer {
  background-color: #f8f9fa;
  border-top: 3px solid #0066cc;
  padding: 2rem;
  margin-top: 3rem;
}

.educational-disclaimer .disclaimer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.educational-disclaimer h3 {
  color: #0066cc;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.educational-disclaimer p {
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ========================================
   Search Results & 404 Page
   ======================================== */

.search-section,
.error-content-wrapper {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-title {
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.search-query {
  color: #333;
  font-style: italic;
}

.search-count {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.search-form-container {
  margin-bottom: 3rem;
}

.no-results {
  text-align: center;
  padding: 3rem 0;
}

.no-results h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.suggested-categories {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.category-link {
  display: inline-block;
  background-color: #e3f2fd;
  color: #0066cc;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-link:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}

.error-404-content {
  text-align: center;
  padding: 3rem 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: #0066cc;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-search {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.error-search h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-suggestions h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  background-color: #e3f2fd;
  border-color: #0066cc;
  text-decoration: none;
}

.category-card h4 {
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.category-card .count {
  color: #666;
  font-size: 0.9rem;
}

/* ========================================
   Related Articles
   ======================================== */

.related-articles {
  background-color: #f8f9fa;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-post-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-post-item h4 a {
  color: #333;
  text-decoration: none;
}

.related-post-item h4 a:hover {
  color: #0066cc;
}

.related-post-item .excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .single-article-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar-area {
    position: static;
  }
  
  .featured-post {
    grid-column: span 1;
    display: block;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .compliance-notice {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .children {
    margin-left: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .compliance-notice {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  #main-content {
    padding: 0 1rem;
  }
  
  .article-single,
  .comments-section {
    padding: 1.5rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .widget {
    padding: 1rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  #site-header,
  #site-footer,
  .sidebar-area,
  .hero-section,
  .risk-warning-banner,
  .comment-form-wrapper,
  .breadcrumb,
  .error-actions {
    display: none;
  }
  
  body {
    background-color: #ffffff;
  }
  
  .article-single {
    box-shadow: none;
  }
}

/* ========================================
   Accessibility
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
