/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*  */

/* Container */
.newsletter-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 20px;
  width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Content */
.main-content {
  /* background-color: #1f2937; */
  min-height: 100vh;
  max-width: 1300px;
  overflow-x: hidden;
  margin: 70px auto;
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #374151;
}

.article-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  word-wrap: break-word;
}

.date {
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Article Body */
.article-body {
  font-size: clamp(1rem, 2vw, 1.05rem);
  color: #d1d5db;
}

.intro-text {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  line-height: 1.8;
  color: #e5e7eb;
  margin-bottom: 35px;
}

/* Content Sections */
.content-section {
  margin-bottom: 35px;
}

.content-section h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 20px;
  margin-top: 10px;
  word-wrap: break-word;
}

.content-section p {
  margin-bottom: 20px;
  line-height: 1.8;
  word-wrap: break-word;
}

.content-section strong {
  color: #f9fafb;
  font-weight: 600;
}

/* Blockquote */
.quote-block {
  background-color: #111827;
  border-left: 4px solid #6366f1;
  padding: 25px 30px;
  margin: 35px 0;
  font-style: italic;
  width: 100%;
}

.quote-block p {
  font-size: clamp(1rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 15px;
  word-wrap: break-word;
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: #f9fafb;
  margin-top: 10px;
}

/* Inline Link */
.inline-link {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
  word-break: break-word;
}

.inline-link:hover {
  color: #a5b4fc;
  border-bottom: 1px solid #818cf8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #6f63f2 0%, #8b5cf6 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  margin: 50px 0 40px 0;
  text-align: center;
  width: 100%;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 15px;
  color: #fff;
}

.cta-section p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 25px;
  opacity: 0.95;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 2px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: 2px solid #374151;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  outline: none;
  background-color: #111827;
  color: white;
  transition: border-color 0.3s ease;
  width: 100%;
}

.newsletter-form input[type="email"]:focus {
  border-color: #6366f1;
}

.newsletter-form input[type="email"]::placeholder {
  color: #d5dbe7;
}

.cta-button {
  padding: 14px 35px;
  background-color: #f9fafb;
  color: #111827;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #dcedff;
  transform: translateY(0px);
}

.cta-button:active {
  transform: translateY(0);
}

/* Article Footer */
.article-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #374151;
}

.last-updated {
  font-size: 0.9rem;
  color: #9ca3af;
  font-style: italic;
}

/* Article Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #374151;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  text-decoration: none;
  color: #d1d5db;
  transition: background-color 0.3s ease, transform 0.2s ease,
    border-color 0.3s ease;
  flex: 1;
  max-width: 48%;
  min-width: 200px;
}

.nav-link:hover {
  background-color: #374151;
  border-color: #6366f1;
  transform: translateY(-2px);
}

.prev-link {
  justify-content: flex-start;
}

.next-link {
  justify-content: flex-end;
  text-align: right;
}

.arrow {
  font-size: 1.2rem;
  color: #6366f1;
  font-weight: 600;
}

.nav-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tablet Responsive (1024px and below) */
@media (max-width: 1024px) {
  .main-content {
    min-width: 100%;
  }

  .newsletter-container {
    margin: 60px auto;
    padding: 30px 20px;
  }
}

/* Small Tablets and Large Phones (768px and below) */
@media (max-width: 768px) {
  .newsletter-container {
    margin: 40px auto;
    padding: 25px 15px;
  }

  .article-header {
    margin-bottom: 30px;
  }

  .article-header h1 {
    margin-bottom: 12px;
  }

  .content-section {
    margin-bottom: 30px;
  }

  .content-section h2 {
    margin-bottom: 15px;
  }

  .article-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .nav-link {
    max-width: 100%;
    width: 100%;
  }

  .next-link {
    text-align: left;
    justify-content: flex-start;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    min-width: 100%;
  }

  .cta-button {
    width: 100%;
    padding: 14px 20px;
  }

  .cta-section {
    padding: 30px 20px;
    margin: 40px 0 30px 0;
  }

  .quote-block {
    padding: 20px;
    margin: 30px 0;
  }

  .article-footer {
    margin-top: 40px;
  }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .newsletter-container {
    margin: 30px auto;
    padding: 20px 15px;
  }

  .article-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
  }

  .intro-text {
    margin-bottom: 25px;
  }

  .content-section {
    margin-bottom: 25px;
  }

  .content-section h2 {
    margin-top: 5px;
    margin-bottom: 12px;
  }

  .content-section p {
    margin-bottom: 15px;
  }

  .quote-block {
    padding: 15px;
    margin: 25px 0;
  }

  .cta-section {
    padding: 25px 15px;
    margin: 30px 0 25px 0;
    border-radius: 8px;
  }

  .cta-section h2 {
    margin-bottom: 12px;
  }

  .cta-section p {
    margin-bottom: 20px;
  }

  .newsletter-form {
    gap: 10px;
  }

  .newsletter-form input[type="email"],
  .cta-button {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .article-navigation {
    margin-top: 30px;
    padding-top: 25px;
    gap: 12px;
  }

  .nav-link {
    padding: 12px 15px;
  }

  .nav-text {
    font-size: 0.9rem;
  }

  .arrow {
    font-size: 1rem;
  }

  .article-footer {
    margin-top: 30px;
    padding-top: 15px;
  }

  .last-updated {
    font-size: 0.85rem;
  }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
  .newsletter-container {
    padding: 15px 12px;
    margin: 20px auto;
  }

  .article-header h1 {
    line-height: 1.2;
  }

  .cta-section {
    padding: 20px 12px;
  }

  .quote-block {
    padding: 12px;
  }

  .nav-link {
    padding: 10px 12px;
    gap: 8px;
  }

  .newsletter-form input[type="email"],
  .cta-button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .newsletter-container {
    margin: 20px auto;
  }

  .article-header {
    margin-bottom: 20px;
  }

  .content-section {
    margin-bottom: 20px;
  }

  .cta-section {
    padding: 20px;
    margin: 25px 0;
  }
}
