/* ===========================
   Global Styles
=========================== */

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

/* ===========================
   Body
=========================== */

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f9fc;
  color: #1f2937;
}

/* ===========================
   Header
=========================== */

header {
  text-align: center;
  padding: 80px 20px;
}

.nexora-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

/* ===========================
   Main Heading
=========================== */

h1 {
  font-size: 3rem;
  color: #2563eb;
  margin-bottom: 15px;
}

/* ===========================
   Tagline
=========================== */

p {
  font-size: 1.2rem;
  color: #4b5563;
}

/* ===============================
   Navigation
=============================== */

nav {
  background-color: #2866eb;
  padding: 15px;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 35px;
}
nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}
nav a:hover {
  color: #d9e7ff;
}

/* ===============================
   Hero Section
=============================== */
.hero {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}
.hero-content {
  max-width: 800px;
}
.hero h2 {
  font-size: 3.5rem;

  color: #1f2937;

  line-height: 1.2;

  margin-bottom: 25px;

  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===============================
   Buttons
=============================== */

.btn {
  display: block;

  padding: 15px 30px;

  border-radius: 10px;

  text-decoration: none;

  font-weight: bold;

  font-size: 1rem;

  transition: all 0.3s ease;
}

/* Primary Button */

.btn-primary {
  background-color: #2563eb;

  color: white;
}

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

/* Secondary Button */

.btn-secondary {
  border: 2px solid #2563eb;

  color: #2563eb;
}

.btn-secondary:hover {
  background-color: #2563eb;

  color: white;
}

/* =====================================
   Services Section
===================================== */

.services {
  padding: 100px 8%;
  background: #ffffff;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 15px;
}

.section-title p {
  color: #6b7280;
  line-height: 1.8;
}

/* =====================================
   Services Grid
===================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* =====================================
   Service Card
===================================== */

.service-card {
  background: #ffffff;

  padding: 35px;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  font-size: 1.5rem;

  color: #1f2937;

  margin-bottom: 15px;
}

.service-card p {
  color: #6b7280;

  line-height: 1.8;

  margin-bottom: 25px;
}

/* =====================================
   Responsive Design
===================================== */

@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 12px 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  nav a {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 70px 20px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .hero-buttons {
    gap: 12px;
  }

  /* Section headings */
  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* Services */
  .services {
    padding: 70px 20px;
  }

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

  .service-card {
    padding: 25px;
  }

  /* Featured AI Tools */
  .featured-tools {
    padding: 70px 20px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .tool-card {
    padding: 25px;
  }

  /* Latest Articles */
  .latest-articles {
    padding: 70px 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .article-card {
    padding: 25px;
  }

  /* Why Nexora */
  .why-nexora {
    padding: 70px 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .why-card {
    padding: 25px;
  }

  /* Homepage Contact */
  .contact {
    padding: 70px 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 40px;
  }

  .contact button {
    width: 100%;
  }

  /* Footer */
  footer {
    padding: 60px 20px 70px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    margin-top: 35px;
  }
}

/* =====================================
   Featured AI Tools
===================================== */

.featured-tools {
  padding: 100px 8%;

  background: #f8fafc;
}

.tools-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 60px;
}

.tool-card {
  background: white;

  padding: 30px;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.tool-card h3 {
  font-size: 1.5rem;

  color: #1f2937;

  margin-bottom: 15px;
}

.tool-card p {
  color: #6b7280;

  line-height: 1.8;

  margin-bottom: 25px;
}

/* =====================================
   Latest AI Articles
===================================== */

.latest-articles {
  padding: 100px 8%;

  background: white;
}

.articles-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 60px;
}

.article-card {
  background: #f8fafc;

  padding: 30px;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition: 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.article-card h3 {
  font-size: 1.4rem;

  color: #1f2937;

  margin-bottom: 15px;
}

.reading-time {
  color: #6b7280;

  margin-bottom: 25px;

  font-size: 0.95rem;
}

/* =====================================
   Why Choose Nexora AI
===================================== */

.why-nexora {
  padding: 80px 10%;
  background-color: #ffffff;
}

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

.why-card {
  background-color: #ffffff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.why-card:hover {
  transform: translateY(-8px);
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1f2937;
}

.why-card p {
  color: #555;
  line-height: 1.8;
}

/* =====================================
   CONTACT SECTION
===================================== */

.contact {
  padding: 100px 10%;
  background: #ffffff;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}

.contact input,
.contact textarea {
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.contact textarea {
  resize: vertical;
}

.contact-info h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #2563eb;
}

.contact-info p {
  color: #4b5563;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
}

.info-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact button {
  width: fit-content;
  padding: 15px 35px;
}

/* =====================================
   Footer
===================================== */

footer {
  background: #111827;
  color: white;
  padding: 70px 10% 90px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-brand h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.footer-brand p {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-links h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 50px;
  padding-top: 25px;
  text-align: center;
  color: #94a3b8;
}

/* =====================================
   ARTICLE PAGE STYLES
===================================== */

.article-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 30px 45px;
  text-align: center;
}

.article-category {
  margin-bottom: 15px;
  color: #2563eb;
  font-size: 1rem;
  font-weight: 700;
}

.article-header h1 {
  max-width: 1000px;
  margin: 0 auto 25px;
  color: #111827;
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
}

.article-intro {
  max-width: 850px;
  margin: 0 auto 15px;
  color: #4b5563;
  font-size: 1.2rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 0.95rem;
}

/* =====================================
   ARTICLE CONTENT
===================================== */

.article-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 30px 70px;
}

.article-section {
  margin-bottom: 55px;
}

.article-section h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 750;
}

.article-section h3 {
  margin: 35px 0 15px;
  color: #172033;
  font-size: 1.35rem;
  line-height: 1.4;
}

.article-section p {
  margin: 0 0 20px;
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.85;
}

/* =====================================
   ARTICLE TABLE WRAPPER
===================================== */

.table-wrapper {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
}
/* =====================================
   ARTICLE SECTION DIVIDERS
===================================== */

.article-section hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* =====================================
   HIGHLIGHTED CONTENT
===================================== */

.article-highlight {
  margin: 30px 0;
  padding: 25px 30px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f3f6fb;
}

.article-highlight p {
  margin: 0;
  font-weight: 600;
}

/* =====================================
   LISTS
===================================== */

.article-section ul,
.article-section ol {
  margin: 20px 0 25px;
  padding-left: 28px;
}

.article-section li {
  margin-bottom: 10px;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =====================================
   TABLES
===================================== */

.article-section table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.98rem;
}

.article-section th,
.article-section td {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.article-section th {
  background: #f3f6fb;
  color: #111827;
  font-weight: 700;
}

.article-section td {
  color: #374151;
}

/* =====================================
   BLOCKQUOTES
===================================== */

.article-section blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =====================================
   CODE / WORKFLOW BLOCKS
===================================== */

.article-section pre {
  margin: 30px 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 10px;
  background: #111827;
  color: #f9fafb;
  line-height: 1.7;
}

.article-section code {
  font-family: Consolas, Monaco, monospace;
}

/* =====================================
   RELATED ARTICLES
===================================== */

.related-articles {
  margin-top: 20px;
  padding: 35px;
  border-radius: 12px;
  background: #f3f6fb;
}

.related-articles h2 {
  margin: 0 0 15px;
  color: #111827;
  font-size: 1.8rem;
}

.related-articles p {
  margin: 0;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.related-article-card {
  display: block;
  padding: 22px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.related-article-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.1rem;
  line-height: 1.4;
}

.related-article-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   ARTICLE FOOTER
===================================== */

body > footer {
  margin-top: 0;
}

/* =====================================
   MOBILE RESPONSIVENESS
===================================== */

@media (max-width: 768px) {
  .article-header {
    padding: 45px 20px 35px;
  }

  .article-header h1 {
    font-size: 2.2rem;
  }

  .article-intro {
    font-size: 1.05rem;
  }

  .article-container {
    padding: 15px 20px 50px;
  }

  .article-section {
    margin-bottom: 42px;
  }

  .article-section h2 {
    font-size: 1.65rem;
  }

  .article-section h3 {
    font-size: 1.2rem;
  }

  .article-section p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-highlight {
    padding: 20px;
  }

  .article-section table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .related-articles {
    padding: 25px;
  }
}

/* =====================================
   UNIVERSAL ARTICLE IMAGES
===================================== */

.article-content-image {
  width: 100%;
  max-width: 850px;
  margin: 40px auto;
  text-align: center;
}

.article-content-image img {
  display: block;
  width: 100%;
  max-width: 850px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* =====================================
   Article Category Filters
===================================== */

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}

.filter-button {
  border: 1px solid #d9e2f0;
  background: #ffffff;
  color: #14213d;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* No search results message */

#no-results-message {
  display: none;
}

/* =========================================
   Table of Contents
   ========================================= */

.article-toc {
  margin: 40px 0;
  padding: 28px 32px;
  background: #f5f8ff;
  border: 1px solid #dbe5ff;
  border-radius: 12px;
}

.article-toc h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 24px;
}

.article-toc li {
  margin: 8px 0;
  padding-left: 4px;
}

.article-toc a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
}

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

/* =========================================
   Back to Top Button
   ========================================= */

#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#back-to-top:hover {
  background: #1d4ed8;
}

/* =========================================
   Article Share
   ========================================= */

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  padding: 20px 24px;
  border: 1px solid #dbe5ff;
  border-radius: 12px;
  background: #f5f8ff;
}

.article-share-label {
  margin-right: auto;
  font-weight: 600;
}

.article-share button {
  padding: 9px 16px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.article-share button:hover {
  background: #1d4ed8;
}

/* =========================================
   Article Breadcrumbs
   ========================================= */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  background: transparent;
}

.breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
}

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

.breadcrumbs span[aria-hidden="true"] {
  color: #94a3b8;
}

.breadcrumbs span[aria-current="page"] {
  color: #64748b;
}

/* =========================================
   Article Navigation CTA
   ========================================= */

.article-navigation-cta {
  margin: 48px 0 32px;
  padding: 32px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.article-navigation-cta h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #0f172a;
}

.article-navigation-cta p {
  margin: 0 auto 20px;
  max-width: 650px;
  color: #475569;
  line-height: 1.7;
}

.article-navigation-cta a {
  display: inline-block;
  padding: 10px 18px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.article-navigation-cta a:hover {
  background: #1d4ed8;
}
