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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 0 20px;
}

#main-content {
  max-width: 1160px;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 1160px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

.site-logo {
  display: block;
  margin: 0 auto 20px;
  height: 90px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

h1 {
  color: #4a54c4;
  margin-bottom: 20px;
  text-align: center;
}

/* Why Use section in main container */
.container .why-use-section {
  margin-bottom: 25px;
}

.container .why-use-section h2 {
  color: #4a54c4;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.container .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.container .feature-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.container .feature-item h3 {
  color: #4a54c4;
  font-size: 16px;
  margin-bottom: 8px;
}

.container .feature-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

p {
  color: #666;
  text-align: justify;
  margin-bottom: 30px;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #4a54c4;
}

.input-section,
.output-section {
  margin-bottom: 20px;
}

.error {
  color: #e74c3c;
  background: #ffe5e5;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
}

.error.show {
  display: block;
}

.mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
}

.mode-btn {
  flex: 1;
  padding: 12px 20px;
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.mode-btn:hover {
  background: #ebebeb;
  border-color: #d0d0d0;
}

.mode-btn.active {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  color: white;
  border-color: #4a54c4;
}

.mode-btn:focus {
  outline: 3px solid #4a54c4;
  outline-offset: 2px;
}

.split-config {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.config-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.config-group label {
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.config-group input[type="number"] {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.config-group input[type="number"]:focus {
  outline: none;
  border-color: #4a54c4;
}

#processBtn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: 20px;
}

#processBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#processBtn:active {
  transform: translateY(0);
}

#processBtn:focus {
  outline: 3px solid #5a2d7a;
  outline-offset: 2px;
}

.split-summary {
  background: #f0f4ff;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #4a54c4;
  font-weight: 600;
  text-align: center;
}

.split-part {
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.split-part-header {
  background: #f8f9fa;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
}

.split-part-header strong {
  color: #333;
  font-size: 16px;
}

.split-part-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-btn {
  background: #4a54c4;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn:focus {
  outline: 3px solid #5a2d7a;
  outline-offset: 2px;
}

.size-badge {
  background: #4a54c4;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.split-textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: none;
  font-family: "Courier New", monospace;
  font-size: 14px;
  resize: vertical;
  background: white;
}

.split-textarea:focus {
  outline: none;
}

.file-hint {
  color: #666; /* Changed from #999 - now passes AA at 5.74:1 */
  font-size: 14px;
  font-weight: 400;
}

.input-section {
  position: relative;
}

.drop-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(102, 126, 234, 0.95);
  color: white;
  padding: 30px 50px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.input-section.drag-over {
  position: relative;
}

.input-section.drag-over textarea {
  border-color: #4a54c4;
  background: #f0f4ff;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  z-index: 1001;
}

.popup-message {
  margin-bottom: 25px;
  font-size: 16px;
  color: #333;
  text-align: center;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.popup-button {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  background-color: #2196f3;
  color: white;
  min-width: 100px;
}

.popup-button:hover {
  background-color: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-button:focus {
  outline: 3px solid #4a54c4;
  outline-offset: 2px;
}

.popup-step {
  text-align: center;
}

.popup-input-group {
  margin: 20px 0;
}

.popup-input-group input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.3s;
}

.popup-input-group input[type="number"]:focus {
  outline: none;
  border-color: #4a54c4;
}

.popup-button-secondary {
  background-color: #6c757d;
}

.popup-button-secondary:hover {
  background-color: #5a6268;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4a54c4;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Ad Container Styles for CLS Prevention */
.ad-container {
  display: block;
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.ad-container-header {
  min-height: 90px;
}

.ad-container-content {
  min-height: 280px;
}

@media (max-width: 768px) {
  .ad-container-header {
    min-height: 50px;
  }

  .ad-container-content {
    min-height: 250px;
  }
}

/* SEO Content Section */
.seo-content {
  max-width: 1160px;
  width: 100%;
  margin: 40px 0;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.seo-content section {
  margin-bottom: 40px;
}

.seo-content section:last-child {
  margin-bottom: 0;
}

.seo-content h2 {
  color: #4a54c4;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

.seo-content h3 {
  color: white;
  font-size: 20px;
  margin: 15px 0 5px 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-item {
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.feature-item h3 {
  color: #4a54c4;
  margin-bottom: 12px;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Use Cases Section */
.use-cases {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.use-cases li {
  padding: 15px 20px;
  background: #f8f9fa;
  border-left: 4px solid #4a54c4;
  margin-bottom: 15px;
  border-radius: 4px;
  color: #666;
  line-height: 1.6;
}

.use-cases li strong {
  color: #333;
  font-size: 16px;
}

/* FAQ Section */
.faq-section {
  background: #f0f4ff;
  padding: 30px;
  border-radius: 8px;
}

.faq-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #4a54c4;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  color: #4a54c4;
  font-size: 18px;
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Technical Details Section */
.technical-details {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  padding: 30px;
  border-radius: 8px;
  color: white;
}

.technical-details h2 {
  color: white;
}

.technical-details p {
  color: white;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  font-size: 16px;
}

/* Enhanced Footer */
.footer {
  background: transparent;
  color: white;
  padding: 30px 20px;
  margin-top: auto;
  border-top: none;
  width: 100%;
}

.footer-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  color: white;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-links a:focus {
  outline: 2px solid white;
  outline-offset: 2px;
  opacity: 1;
}

/* Responsive Design for SEO Content */
@media (max-width: 768px) {
  .seo-content {
    padding: 30px 15px;
  }

  .seo-content h2 {
    font-size: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

/* Legal Content Styles (Privacy Policy, Terms of Service, etc.) */
.legal-content {
  max-width: 900px;
  text-align: left;
}

.legal-content h1 {
  color: #4a54c4;
  text-align: center;
  margin-bottom: 10px;
  font-size: 32px;
}

.legal-content h2 {
  color: #4a54c4;
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.legal-content h3 {
  color: #333;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.legal-content h4 {
  color: #333;
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-content p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: left;
}

.legal-content ul {
  margin: 15px 0 20px 25px;
  line-height: 1.8;
  color: #333;
}

.legal-content li {
  margin-bottom: 8px;
  color: #333;
}

.legal-content section {
  margin-bottom: 35px;
}

.legal-content a {
  color: #4a54c4;
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: #5568d3;
}

.legal-content a:focus {
  outline: 2px solid #4a54c4;
  outline-offset: 2px;
}

.last-updated {
  text-align: center;
  color: #666;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  color: #4a54c4;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.back-link:hover {
  color: #5568d3;
  transform: translateX(-4px);
}

.back-link:focus {
  outline: 2px solid #4a54c4;
  outline-offset: 2px;
}

.policy-summary {
  background: #f0f4ff;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #4a54c4;
  margin-top: 40px;
}

.policy-summary h2 {
  margin-top: 0;
  color: #4a54c4;
  border-bottom: none;
}

.policy-summary ul {
  margin-left: 20px;
}

.inline-cookie-btn {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.inline-cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.inline-cookie-btn:focus {
  outline: 3px solid #5a2d7a;
  outline-offset: 2px;
}

/* Responsive Design for Legal Content */
@media (max-width: 768px) {
  .legal-content {
    padding: 30px 20px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content h3 {
    font-size: 18px;
  }

  .legal-content ul {
    margin-left: 20px;
  }
}

/* Quick Start Guide */
.quick-start {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 25px;
  border: 2px solid #e0e0e0;
}

.quick-start h2 {
  color: #4a54c4;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: left;
}

.quick-start-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-start-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  color: #333;
  font-size: 15px;
}

.step-content p {
  color: #666;
  font-size: 14px;
  margin: 4px 0 0 0;
  text-align: left;
}

/* Example Section */
.example-section {
  text-align: center;
  margin-bottom: 20px;
}

.example-intro {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.example-btn {
  background: #f0f4ff;
  color: #4a54c4;
  border: 2px solid #4a54c4;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.example-btn:hover {
  background: #4a54c4;
  color: white;
}

.example-btn:focus {
  outline: 3px solid #5a2d7a;
  outline-offset: 2px;
}

/* Split Placeholder */
.split-placeholder {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}

.split-placeholder p {
  text-align: left;
  margin-bottom: 10px;
  color: #333;
}

.split-placeholder ul {
  margin: 10px 0 10px 20px;
  color: #666;
}

.split-placeholder li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Popup Method Options */
.popup-method-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.method-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.method-description {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quick-start {
    padding: 15px;
  }

  .quick-start-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-content p {
    text-align: center;
  }
}

/* ================================================
   NAVIGATION HEADER
   ================================================ */
.site-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.nav-logo img {
  background: white;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-links li a.active {
  background: white;
  color: #4a54c4;
}

.nav-links li a:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .main-nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links li a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ================================================
   GUIDE PAGES LAYOUT
   ================================================ */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1160px;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    order: -1;
  }
}

/* Guide Content */
.guide-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 0;
  overflow-x: hidden;
}

.guide-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.guide-header h1 {
  color: #4a54c4;
  font-size: 32px;
  line-height: 1.3;
  text-align: left;
  margin-bottom: 10px;
}

.guide-meta {
  color: #666;
  font-size: 14px;
  margin: 0;
  text-align: left;
}

.author-byline {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem 0;
  text-align: left;
}

.author-byline a {
  color: #4a54c4;
  text-decoration: none;
}

.author-byline a:hover {
  text-decoration: underline;
}

.guide-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
}

.guide-intro p {
  text-align: left;
  margin-bottom: 15px;
}

/* Table of Contents */
.toc {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 30px;
  border-left: 4px solid #4a54c4;
}

.toc h2 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #4a54c4;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

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

/* Guide Sections */
.guide-content section {
  margin-bottom: 40px;
}

.guide-content section h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 15px;
  padding-top: 10px;
}

.guide-content section h3 {
  color: #4a54c4;
  font-size: 18px;
  margin: 25px 0 12px 0;
}

.guide-content section p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: left;
}

.guide-content section ul,
.guide-content section ol {
  margin: 15px 0 20px 25px;
  line-height: 1.8;
  color: #444;
}

.guide-content section li {
  margin-bottom: 8px;
}

.guide-content a {
  color: #4a54c4;
  text-decoration: underline;
}

.guide-content a:hover {
  color: #5568d3;
}

/* Code Blocks */
.guide-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 15px 0 20px 0;
  font-family: "Courier New", Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  white-space: pre;
  word-wrap: normal;
}

.guide-content code {
  font-family: "Courier New", Consolas, monospace;
  font-size: 14px;
}

.guide-content p code,
.guide-content li code {
  background: #f0f4ff;
  color: #4a54c4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Guide CTA */
.guide-cta {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

.guide-cta h2 {
  color: white;
  font-size: 22px;
  margin-bottom: 10px;
}

.guide-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #4a54c4;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Guide Sidebar */
.guide-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.related-guides {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-guides li {
  margin-bottom: 10px;
}

.related-guides a {
  color: #4a54c4;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

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

@media (max-width: 900px) {
  .guide-content {
    padding: 25px;
  }

  .guide-header h1 {
    font-size: 26px;
  }

  .guide-sidebar {
    position: static;
  }
}

/* ================================================
   GUIDES INDEX PAGE
   ================================================ */
.guides-index {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

.guides-index .container {
  margin-top: 0;
}

.guides-header {
  text-align: center;
  margin-bottom: 40px;
}

.guides-header h1 {
  color: #4a54c4;
  font-size: 36px;
  margin-bottom: 15px;
}

.guides-intro {
  color: #444;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Guide Categories */
.guide-category {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.guide-category h2 {
  color: #4a54c4;
  font-size: 24px;
  margin-bottom: 5px;
  text-align: left;
}

.category-desc {
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

/* Guide Cards Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  position: relative;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.2s;
}

.guide-card:hover {
  background: #f0f4ff;
  border-color: #4a54c4;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.guide-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-card h3 a {
  color: #333;
  text-decoration: none;
}

.guide-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.guide-card h3 a:hover {
  color: #4a54c4;
}

.guide-card:hover h3 a {
  color: #4a54c4;
}

.guide-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: left;
}

.guide-card .guide-meta {
  color: #666;
  font-size: 13px;
}

/* Guides CTA */
.guides-cta {
  background: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.guides-cta h2 {
  color: #4a54c4;
  margin-bottom: 10px;
}

.guides-cta p {
  color: #666;
  margin-bottom: 20px;
}

.guides-cta .cta-button {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  color: white;
}

.guides-cta .cta-button:hover {
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-page {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.about-page .container {
  margin-top: 0;
}

.about-page .about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-page .about-header h1 {
  color: #4a54c4;
  font-size: 36px;
}

.about-page .about-intro {
  color: #444;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.about-page h1 {
  text-align: center;
  color: #4a54c4;
  font-size: 36px;
}

.about-intro .lead {
  font-size: 20px;
  line-height: 1.6;
  color: #444;
  text-align: center;
  margin-bottom: 40px;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  color: #4a54c4;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: left;
}

.about-section p {
  color: #444;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 15px;
}

.about-section ul {
  margin: 15px 0 20px 25px;
  line-height: 1.8;
  color: #444;
}

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

.about-section a {
  color: #4a54c4;
}

.about-section a:hover {
  color: #5568d3;
}

/* About Feature List */
.about-page .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.about-page .feature-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.about-page .feature-item h3 {
  color: #4a54c4;
  font-size: 18px;
  margin-bottom: 10px;
}

.about-page .feature-item p {
  margin: 0;
  font-size: 14px;
}

/* About CTA */
.about-cta {
  background: linear-gradient(135deg, #4a54c4 0%, #5a2d7a 100%);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.about-cta h2 {
  color: white;
  margin-bottom: 10px;
}

.about-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.about-cta .cta-button {
  background: white;
  color: #4a54c4;
}

@media (max-width: 768px) {
  .guides-header h1,
  .about-page h1 {
    font-size: 28px;
  }

  .guide-category,
  .about-section {
    padding: 20px;
  }
}
