/* --- START OF FILE styles.css --- */

/* Root variables for theme (from index - Copy.html) */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --light: #f8fafc;         /* Light Background */
    --dark: #0f172a;          /* Dark Background / Dark Text Color */
    --dark-accent: #1e293b;   /* Dark Accent Color */
    --text-light: #f1f5f9;     /* Light Text Color */
    --text-dark: #1e293b;      /* Dark Text Color (Matches dark-accent) */
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Dark mode variables (Refined) */
[data-bs-theme="dark"] {
    --primary: #3b82f6;        /* Brighter Blue */
    --primary-dark: #2563eb;   /* Original Primary Blue */
    --secondary: #10b981;      /* Same Green */
    --light: #0f172a;         /* Dark Background */
    --dark: #f8fafc;          /* Light Text / Light Elements */
    --dark-accent: #1e293b;    /* Darker Accent (e.g., cards, light bg sections) */
    --text-light: #f1f5f9;      /* Light Text Color */
    --text-dark: #0f172a;      /* Dark Text Color (rarely needed in dark mode) */
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */

    /* Override Bootstrap defaults */
    --bs-body-color: var(--text-light);
    --bs-body-bg: var(--light);
    --bs-border-color: #334155; /* Darker border color */
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
    --bs-emphasis-color: var(--dark); /* Use the light variable for emphasis text */
    --bs-secondary-color: rgba(241, 245, 249, 0.75); /* Lighter secondary text */
    --bs-secondary-bg: var(--dark-accent);
    --bs-tertiary-color: rgba(241, 245, 249, 0.5);
    --bs-tertiary-bg: #334155;
    --bs-heading-color: var(--dark); /* Headings should be light */
}

/* Body styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light);
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1.6;
}

[data-bs-theme="dark"] body {
    background-color: var(--light); /* Uses dark mode --light variable */
    color: var(--text-light);  /* Uses dark mode --text-light variable */
}

/* Navbar styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.95); /* Dark blueish bg */
    box-shadow: var(--box-shadow);
    --bs-navbar-color: rgba(241, 245, 249, 0.8); /* Light text */
    --bs-navbar-hover-color: var(--primary);
    --bs-navbar-brand-color: #f1f5f9; /* Brighter white for brand */
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241, 245, 249, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-family: 'Poppins', sans-serif; /* Apply Poppins font */
    font-size: 1.5rem;                 /* Keep existing size */
    /* font-weight: 700; <-- REMOVE this line or ensure it's not overriding spans */
    /* Color is handled by Bootstrap variables and the .text-primary class */
}

.navbar-brand .logo-auto {
    font-weight: 300; /* Poppins Light */
    /* Color will be inherited from .navbar-brand (Bootstrap's --bs-navbar-brand-color) */
}

.navbar-brand .logo-sentia {
    font-weight: 700; /* Poppins Bold */
    /* The .text-primary class in the HTML will handle its color (var(--primary)) */
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
     /* Color handled by Bootstrap vars */
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: var(--transition);
    color: white; /* Ensure text is white */
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: var(--text-light); /* Ensure light text */
}
[data-bs-theme="dark"] .hero h1,
[data-bs-theme="dark"] .hero p {
     color: var(--text-light);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233b82f6' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-dark); /* Explicit dark text in light mode */
}

.hero p {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    color: #334155; /* Slightly softer dark text */
}
[data-bs-theme="dark"] .hero p {
    color: #cbd5e1; /* Slightly softer light text */
}


/* Sector Card */
.sector-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--bs-border-color, #dee2e6); /* Use BS border color */
}

[data-bs-theme="dark"] .sector-card {
    background-color: var(--dark-accent); /* Darker card bg */
    color: var(--text-light); /* Light text */
    border-color: var(--bs-border-color); /* Darker border */
}
[data-bs-theme="dark"] .sector-card h3,
[data-bs-theme="dark"] .sector-card p {
    color: var(--text-light); /* Ensure text color */
}


.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
[data-bs-theme="dark"] .sector-card:hover {
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.sector-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Feature Card */
.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--bs-border-color, #dee2e6);
}

[data-bs-theme="dark"] .feature-card {
    background-color: var(--dark-accent);
    color: var(--text-light);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .feature-card h3,
[data-bs-theme="dark"] .feature-card p,
[data-bs-theme="dark"] .feature-card ul,
[data-bs-theme="dark"] .feature-card li,
[data-bs-theme="dark"] .feature-card strong {
    color: var(--text-light); /* Ensure all text is light */
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .feature-icon {
    background-color: rgba(59, 130, 246, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* General Card */
.card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

[data-bs-theme="dark"] .card {
    background-color: var(--dark-accent);
    color: var(--text-light);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .card h1,
[data-bs-theme="dark"] .card h2,
[data-bs-theme="dark"] .card h3,
[data-bs-theme="dark"] .card h4,
[data-bs-theme="dark"] .card h5,
[data-bs-theme="dark"] .card p,
[data-bs-theme="dark"] .card i { /* Ensure icons inherit color */
    color: var(--text-light);
}

.card:hover {
    transform: translateY(-5px);
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    /* Color inherited */
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 1rem;
    /* Center only if parent has text-center */
}
.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Background Light Section */
.bg-light {
    background-color: #f8fafc !important; /* Use !important if needed to override Bootstrap */
}
[data-bs-theme="dark"] .bg-light {
    background-color: var(--dark-accent) !important; /* Use dark accent for bg-light */
    color: var(--text-light);
}

/* Ensure text color contrasts with bg-light */
[data-bs-theme="dark"] .bg-light h1,
[data-bs-theme="dark"] .bg-light h2,
[data-bs-theme="dark"] .bg-light h3,
[data-bs-theme="dark"] .bg-light h4,
[data-bs-theme="dark"] .bg-light h5,
[data-bs-theme="dark"] .bg-light p,
[data-bs-theme="dark"] .bg-light li,
[data-bs-theme="dark"] .bg-light i,
[data-bs-theme="dark"] .bg-light strong {
   color: var(--text-light); /* Light text on dark bg */
}

/* Badge Primary */
.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

[data-bs-theme="dark"] .badge-primary {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--primary); /* Primary is light blue, good contrast */
}

/* Footer */
.footer {
    background-color: var(--dark); /* Dark Blueish */
    color: #cbd5e1; /* Muted light text */
    padding: 4rem 0;
}

[data-bs-theme="dark"] .footer {
    background-color: #020617; /* Even darker */
    color: #94a3b8; /* Muted light text */
}

.footer h4, .footer h5 {
     color: white; /* Brighter white for headings */
}
[data-bs-theme="dark"] .footer h4,
[data-bs-theme="dark"] .footer h5 {
     color: var(--dark); /* Use the light variable */
}

.footer a {
    color: #cbd5e1; /* Match p color */
    transition: var(--transition);
    text-decoration: none;
}
[data-bs-theme="dark"] .footer a {
     color: #94a3b8;
}

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer address p {
    margin-bottom: 0.5rem;
}

/* Dark mode toggle */
.dark-mode-toggle {
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    background-color: var(--bs-secondary-bg, var(--light)); /* Use BS var or fallback */
    color: var(--bs-emphasis-color, var(--dark));
    border: 1px solid var(--bs-border-color, #dee2e6);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dark-mode-toggle i {
    transition: var(--transition);
}
[data-bs-theme="dark"] .dark-mode-toggle {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
    border-color: var(--bs-border-color);
}


/* Process Steps */
.process-step {
    position: relative;
    padding-bottom: 3rem;
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.5rem;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background-color: var(--bs-border-color-translucent, #e2e8f0);
}

[data-bs-theme="dark"] .process-step:not(:last-child)::after {
    background-color: var(--bs-border-color); /* Use dark border color */
}

.process-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .process-step h3,
[data-bs-theme="dark"] .process-step p {
    color: var(--text-light); /* Ensure text is light */
}

.process-step > div {
    flex-grow: 1;
}


/* Testimonial */
.testimonial {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
    position: relative;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

[data-bs-theme="dark"] .testimonial {
    background-color: var(--dark-accent);
    color: var(--text-light);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .testimonial .lead,
[data-bs-theme="dark"] .testimonial h4,
[data-bs-theme="dark"] .testimonial p {
    color: var(--text-light); /* Ensure light text */
}
[data-bs-theme="dark"] .testimonial p.text-muted { /* Adjust muted text */
     color: #94a3b8 !important;
}


.testimonial::before {
    content: "“"; /* Corrected quote character */
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    z-index: 0;
}

.testimonial .lead {
    position: relative;
    z-index: 1;
}


/* Accessibility enhancements */
.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;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .process-step:not(:last-child)::after {
        left: 1.5rem;
    }
     .process-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .footer .col-6 {
        margin-bottom: 1.5rem;
    }
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus states */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25); /* Add BS focus shadow */
}
/* More specific focus for nav links */
.navbar .nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: var(--border-radius);
}


/* Styles for generic content page elements (for template.html) */
.page-header {
    background-color: var(--bs-tertiary-bg); /* Use BS var */
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.content-section {
    padding: 3rem 0;
}
[data-bs-theme="dark"] .content-section h2,
[data-bs-theme="dark"] .content-section h3,
[data-bs-theme="dark"] .content-section p,
[data-bs-theme="dark"] .content-section li {
     color: var(--text-light);
}


/* Style for generic content blocks */
.content-block {
    background-color: var(--bs-secondary-bg); /* Use BS var */
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--bs-border-color);
    margin-bottom: 2rem;
    transition: var(--transition);
}

[data-bs-theme="dark"] .content-block {
    color: var(--text-light); /* Light text */
}
[data-bs-theme="dark"] .content-block h4,
[data-bs-theme="dark"] .content-block p {
     color: var(--text-light);
}


/* Style for lists within content */
.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.5rem;
}

/* Style for figure captions */
.figure-caption {
    font-size: 0.9rem;
    color: var(--bs-secondary-color); /* Use BS var */
    text-align: center;
    margin-top: 0.5rem;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--bs-tertiary-bg); /* Use BS var */
    padding: 4rem 0;
    text-align: center;
}
[data-bs-theme="dark"] .cta-section h2,
[data-bs-theme="dark"] .cta-section p {
    color: var(--text-light); /* Ensure light text */
}


/* Social links in footer */
.social-links a {
    color: inherit; /* Inherit footer text color */
    font-size: 1.5rem;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Ensure hr in footer looks good */
.footer hr {
    border-top: 1px solid var(--bs-border-color-translucent);
}
[data-bs-theme="dark"] .footer hr {
     border-top-color: var(--bs-border-color);
}

/* Placeholder Image */
img[src^="/api/placeholder"] {
    background-color: #e2e8f0;
    display: block;
}
[data-bs-theme="dark"] img[src^="/api/placeholder"] {
    background-color: #475569; /* Darker placeholder bg */
}

/* --- START OF ADDITIONAL CSS --- */

/* Blockquote Styling */
.blockquote {
    background-color: var(--bs-tertiary-bg); /* Subtle background */
    border-left: 5px solid var(--primary); /* Highlight border */
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--bs-emphasis-color); /* Adapts to light/dark */
}

[data-bs-theme="dark"] .blockquote {
    background-color: rgba(var(--bs-primary-rgb), 0.1); /* Slight primary tint */
    border-left-color: var(--primary); /* Keep primary color */
    color: var(--bs-body-color); /* Ensure text contrast */
}

/* Prompt Examples Styling */
.prompt-examples-section {
    margin: 2.5rem 0;
}

.prompt-box {
    background-color: var(--bs-secondary-bg); /* Slightly different background */
    border: 1px solid var(--bs-border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem; /* Space between boxes */
}

.prompt-box p:first-of-type { /* Style the description */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prompt-label {
    font-weight: 500;
    color: var(--bs-secondary-color);
    font-size: 0.9em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.prompt-code {
    display: block; /* Make it block level */
    white-space: pre-wrap; /* Wrap long lines */
    word-break: break-word; /* Break long words if necessary */
    background-color: var(--bs-tertiary-bg); /* Match blockquote bg */
    padding: 1rem;
    border-radius: calc(var(--border-radius) * 0.5);
    font-family: monospace;
    font-size: 0.95em;
    color: var(--bs-emphasis-color); /* Ensure text visibility */
    border: 1px dashed var(--bs-border-color); /* Dashed border to indicate code */
}

[data-bs-theme="dark"] .prompt-code {
    background-color: #020617; /* Darker background for code in dark mode */
    color: #e2e8f0; /* Lighter text for code in dark mode */
    border-color: var(--bs-border-color);
}

.how-to-use {
    font-size: 0.9em;
    font-style: italic;
    color: var(--bs-secondary-color);
    margin-top: 0.75rem;
    margin-bottom: 0; /* Remove bottom margin */
}


/* --- START OF BLOG LIST STYLES --- */

/* Style for individual blog post previews in the list */
.blog-post-preview {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem; /* Add some space below before border */
    border-bottom: 1px solid var(--bs-border-color); /* Use BS border color for responsiveness */
}

/* Remove bottom padding/border for the last item in the list */
.latest-articles .blog-post-preview:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-post-preview h4 {
    font-size: 1.5rem; /* Adjust font size for the title */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-post-preview h4 a {
    color: var(--text-dark); /* Default link color for titles */
    text-decoration: none;
    transition: var(--transition);
}

.blog-post-preview h4 a:hover {
    color: var(--primary); /* Primary color on hover */
    text-decoration: underline;
}

/* Dark mode adjustments for blog post titles */
[data-bs-theme="dark"] .blog-post-preview h4 a {
    color: var(--text-light); /* Light text in dark mode */
}

/* Styling for the date */
.blog-post-preview .text-muted {
     /* Bootstrap's text-muted handles color based on theme */
    font-size: 0.9em; /* Slightly smaller font */
}

/* Ensure body text within the preview is light in dark mode */
[data-bs-theme="dark"] .blog-post-preview p {
    color: var(--text-light);
}

/* --- END OF BLOG LIST STYLES --- */

/* --- END OF FILE styles.css --- */