/*
Theme Name: Oranova Consulting
Theme URI: https://oranovasolutions.com
Author: Oranova
Author URI: https://oranovasolutions.com
Description: Modern, animated theme for Oranova Consulting featuring space background effects and Microsoft Power Platform focus
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oranova
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    padding-left:20px; padding-right:20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background: #000f1e;
    overflow-x: hidden;
}

#canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
canvas { width: 100%; height: 100%; }
#content { background: transparent !important; }

nav {
    background: rgba(10, 15, 25, 0.3);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: padding 0.3s;
}
nav.scrolled { padding: 15px 40px; }
nav .nav-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}

/* ← Main Site hard-left */
nav .back-to-main {
    order: -1;
    margin-right: auto;
}

/* rest of your nav styles unchanged */
nav .logo-small { height: 40px; opacity: 0; transition: opacity 0.3s; }
nav.scrolled .logo-small { opacity: 1; }
nav ul { list-style: none; display: flex; gap: 35px; align-items: center; flex-wrap: wrap; }
nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aaff, #0066ff);
    transition: width 0.3s;
    transform: translateX(-50%);
}
nav a:hover::after { width: 80%; }
nav a:hover { color: #00aaff; }

/* all your header.site-header styles unchanged... (keeping the file shorter, they are the same as you sent) */

/* Blog-specific – now fully opaque */
.blog-header {
    background: rgba(42, 64, 96, 1);
    padding: 60px 40px;
    border-radius: 15px;
    margin: 40px auto 0;
    max-width: 1400px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: rgba(42, 64, 96, 1); /* solid */
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s;
    border: 2px solid rgba(0, 170, 255, 0.2);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 170, 255, 0.2);
    background: rgba(62, 84, 116, 1); /* slightly lighter on hover */
}

.blog-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.blog-card-content {
    padding: 30px 35px !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-date { color: #00aaff; font-size: 0.9em; margin-bottom: 10px; }

.blog-card h3,
.blog-card h3 a { color: #ffffff; }
.blog-card h3 a:hover { color: #00aaff; }

/* if no posts */
.no-posts {
    background: rgba(42, 64, 96, 1);
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

/* your other blog rules unchanged */

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 40px;
}

/* your other custom rules at bottom unchanged */

.blog-card-content h3,
.blog-card-content h3 a,
.blog-card-content .excerpt {
    padding: 0 !important;
    margin: 0 !important;
}

.blog-card-content .read-more {
    margin-top: 10px !important;
}

/* everything else in your original file stays exactly the same */

/* =========================================================
   Single post layout and WordPress/Gutenberg content styling
   ========================================================= */

.single-post-section {
    width: min(96vw, 1700px);
    margin: 0 auto;
    padding: 18px 0 80px;
}

.single-post-section .back-button {
    display: inline-block;
    margin: 0 0 18px;
    color: #00aaff;
    font-weight: 700;
    text-decoration: none;
}

.single-post-section .back-button:hover {
    color: #66d0ff;
}

article.blog-post {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: rgba(42, 64, 96, 1);
    padding: clamp(30px, 4vw, 68px);
    border-radius: 18px;
    border: 2px solid rgba(0, 170, 255, 0.2);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

article.blog-post > h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.5vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #ffffff;
}

article.blog-post .meta {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
}

.featured-image {
    margin: 0 0 38px;
}

.featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Restore the spacing removed by the global CSS reset. */
.post-content {
    max-width: none;
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.94);
    overflow-wrap: anywhere;
}

.post-content p {
    margin: 0 0 1.3em;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.post-content h2 {
    margin: 2.1em 0 0.65em;
    font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

.post-content h3 {
    margin: 1.65em 0 0.55em;
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

.post-content h4 {
    margin: 1.4em 0 0.45em;
    font-size: 1.18rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.65em;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin: 0.35em 0;
    padding-left: 0.2em;
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.post-content strong,
.post-content b {
    color: #ffffff;
    font-weight: 700;
}

.post-content a {
    color: #55c8ff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.post-content a:hover {
    color: #9be3ff;
}

.post-content blockquote,
.post-content .wp-block-quote {
    margin: 1.8em 0;
    padding: 1.15em 1.4em;
    border-left: 5px solid #00aaff;
    background: rgba(0, 170, 255, 0.10);
    border-radius: 0 12px 12px 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content figure,
.post-content .wp-block-image,
.post-content .wp-block-gallery,
.post-content .wp-block-video,
.post-content .wp-block-embed {
    margin: 1.8em 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content figcaption {
    margin-top: 0.65em;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    text-align: center;
}

.post-content hr,
.post-content .wp-block-separator {
    margin: 2.2em 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.post-content table,
.post-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
}

.post-content th,
.post-content td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    text-align: left;
    vertical-align: top;
}

.post-content th {
    background: rgba(0, 170, 255, 0.14);
    color: #ffffff;
}

.post-content pre,
.post-content .wp-block-code {
    margin: 1.8em 0;
    padding: 20px;
    overflow-x: auto;
    border-radius: 12px;
    background: #071525;
    border: 1px solid rgba(0, 170, 255, 0.25);
}

.post-content code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.post-content :first-child {
    margin-top: 0;
}

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

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 55px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.post-navigation a {
    color: #55c8ff;
    font-weight: 700;
    text-decoration: none;
}

.post-navigation .next {
    text-align: right;
}

/* Let standard wide/full Gutenberg blocks use the available article space. */
.post-content .alignwide,
.post-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 900px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    nav {
        padding-left: 14px;
        padding-right: 14px;
    }

    .single-post-section {
        width: 100%;
        padding-top: 12px;
    }

    article.blog-post {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.72;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-navigation .next {
        text-align: left;
    }
}

/* =========================================================
   Light single-post reading mode
   White article surface with dark text
   ========================================================= */

article.blog-post {
    background: #ffffff;
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

article.blog-post > h1 {
    color: #0f172a;
}

article.blog-post .meta {
    color: #64748b;
}

.post-content {
    color: #1f2937;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #0f172a;
}

.post-content strong,
.post-content b {
    color: #0f172a;
}

.post-content a {
    color: #0066cc;
}

.post-content a:hover {
    color: #004c99;
}

.post-content blockquote,
.post-content .wp-block-quote {
    background: #eef7ff;
    border-left-color: #0077cc;
    color: #1e293b;
}

.post-content figcaption {
    color: #64748b;
}

.post-content hr,
.post-content .wp-block-separator {
    border-top-color: #d7dee8;
}

.post-content th,
.post-content td {
    border-color: #d7dee8;
}

.post-content th {
    background: #eaf5ff;
    color: #0f172a;
}

.post-content pre,
.post-content .wp-block-code {
    background: #071525;
    color: #f8fafc;
    border-color: rgba(0, 102, 204, 0.35);
}

.post-navigation {
    border-top-color: #d7dee8;
}

.post-navigation a {
    color: #0066cc;
}

.post-navigation a:hover {
    color: #004c99;
}
