/* --- General Setup & NEW Purple Dark Theme Color Palette --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --background-main: #2C323E;
  --background-header: #1F242C;
  --text-primary: #F8F9FA;
  --text-secondary: #ADB5BD;
  --accent-primary: #0ABAB5;
  --accent-text: #FFFFFF;
  --border-color: #495057;
  
  /* NEW: Colors for light background content */
  --background-light: #FFFFFF;
  --text-dark-primary: #212529;   /* For headings on light background */
  --text-dark-secondary: #495057; /* For paragraphs on light background */
}

body {
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--background-main);
  min-height: 100vh;
}

/* --- Header --- */
.header {
  background: var(--background-header);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  margin-top: 35px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.social-links a:hover {
  color: var(--accent-text);
  background: var(--accent-primary); /* Changed to new accent color */
  border-color: var(--accent-primary); /* Changed to new accent color */
  transform: translateY(-2px);
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Work Sans", sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* --- Hero Section --- */
.hero {
  background: var(--background-main);
  padding: 2rem 0 4rem 0;
  text-align: left; /* KEY CHANGE: Re-aligned to the left */
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23343A46' fill-opacity='1' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,80C1120,85,1280,75,1360,69.3L1440,64L1440,121L1360,121C1280,121,1120,121,960,121C800,121,640,121,480,121C320,121,160,121,80,121L0,121Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-container {
  max-width: 1200px; /* Changed from 800px to 1200px to match other containers */
  margin: 0 auto;
  padding: 0 2rem;
}

.category-tag {
  background: var(--accent-primary); /* Changed to new accent color */
  color: var(--accent-text);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: none;
  color: var(--text-primary);
  max-width: 900px; /* Added max-width for better readability on large screens */
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 0 2.5rem 0; /* KEY CHANGE: Removed auto horizontal margins */
  line-height: 1.6;
  color: var(--text-secondary);
}

.meta-info {
  display: flex;
  justify-content: flex-start; /* KEY CHANGE: Aligned items to the start (left) */
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-info i {
  margin-right: 0.5rem;
}

.main-content {
            background: var(--background-light);
            margin: -4rem auto 0;
            max-width: 1000px;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            position: relative;
            z-index: 5;
        }

        .tags-section {
            background: var(--background-header);
            padding: 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            justify-content: center;
        }

        .tag {
            background: transparent;
            color: var(--accent-primary);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid var(--accent-primary);
            transition: all 0.3s ease;
        }

        .tag:hover {
            background: var(--accent-primary);
            color: var(--accent-text);
            transform: translateY(-2px);
        }
/* --- Article Content --- */
.article-content {
    padding: 3rem;
    max-width: none;
}

.article-content h2 {
    color: var(--text-dark-primary); /* Changed */
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary); /* Changed */
    border-radius: 2px;
}

.article-content h3 {
    color: var(--text-dark-primary); /* Changed */
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-dark-secondary); /* Explicitly set for clarity */
}

.article-content strong {
    color: var(--background-header); /* Changed */
    font-weight: 800;
    /*font-style: italic;*/
}

.article-image-showcase {
    margin: 3rem 0; /* Adds vertical spacing around the image */
    border-radius: 15px; /* Matches the rounding of other elements */
    overflow: hidden; /* Ensures the image corners are rounded */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image-showcase img {
    width: 100%; /* Makes the image fully responsive */
    height: auto;
    display: block; /* Removes any extra space below the image */
}
/* --- Box Modules --- */

.highlight-box {
    background: var(--background-header); /* Changed */
    color: var(--text-secondary); /* Changed */
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: none; /* Changed */
    border: 1px solid var(--border-color); /* Added */
}

.highlight-box h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-primary); /* Changed */
}

.info-box {
    background: var(--background-header); /* Changed */
    border-left: 4px solid var(--accent-primary); /* Changed */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px; /* Changed */
}

.info-box p, .use-case-card p ,.roi-section p
,.highlight-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary); /* Changed */
}
.info-box h4 {
    color: var(--text-primary); /* Changed */
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bottom-bar .staunch-info{margin-top:20px;}
/* ---  Use Cases --- */

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.use-case-card {
    background: var(--background-header); /* Changed */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: none; /* Changed */
    border: 1px solid var(--border-color); /* Added */
    border-top: 4px solid var(--accent-primary); /* Changed */
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Changed */
}

.use-case-icon {
    font-size: 2.5rem;
    color: var(--accent-primary); /* Changed */
    margin-bottom: 1rem;
}

.use-case-card .use-case-title {
    color: var(--text-primary); /* This is the FIX. It sets the color to be bright white. */
    font-size: rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- Final Sections --- */

.roi-section {
    background: var(--background-header); /* Changed */
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.roi-section h3 {
    color: var(--text-primary);
}
.cta-section {
    background: var(--accent-primary); /* Changed */
    color: var(--background-main); /* Changed */
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 3rem 0;
}

.cta-button {
    background: var(--accent-text); /* Changed */
    color: var(--background-dark); /* Changed */
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta-button:hover {
    background: var(--text-primary); /* Changed */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-section h2,
.cta-section p {
    color: var(--accent-text); /* Changed */
}

.contact-info {
    margin-top: 2rem; 
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--accent-text); /* Changed */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-style: normal;
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 1rem;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.share-text {
    font-family: Arial, sans-serif;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.share-button:hover::before {
    left: 100%;
}

.share-button.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.share-button.facebook {
    background: linear-gradient(135deg, #1877f2, #0866d3);
    color: white;
}

.share-button.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.share-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
        /* Responsive Design */
    @media (max-width: 768px) {
        .header-container {
            padding: 0 1rem;
        }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .meta-info {
            flex-direction: column;
            gap: 1rem;
        }

        .article-content {
            padding: 2rem 1.5rem;
        }

        .tags {
            justify-content: flex-start;
        }

        .toc-list {
            grid-template-columns: 1fr;
        }

        .use-case-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .hero h1 {
            font-size: 1.5rem;
        }

        .article-content {
            padding: 1.5rem 1rem;
        }

        .article-content h2 {
            font-size: 1.5rem;
        }
    }