/* ========================================================================
   SINGLE BLOG POST STYLING - MATCH BLOG PAGE DARK THEME
   ======================================================================== */

/* Force dark gradient background on body - HIGHEST PRIORITY */
body.single-post,
body.single,
body.postid-1 {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%) !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 140px !important;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh !important;
}

/* Add animated background orbs - SAME AS BLOG PAGE */
body.single-post::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    background: radial-gradient(circle, rgba(91, 141, 239, 0.6) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    pointer-events: none;
    z-index: 0;
}

body.single-post::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    background: radial-gradient(circle, rgba(155, 89, 208, 0.6) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

/* ========================================================================
   OVERRIDE ELEMENTOR TEMPLATE BACKGROUNDS
   ======================================================================== */

/* Force transparent/dark backgrounds on all Elementor containers */
body.single-post .elementor-29 .elementor-element-26ef5a3d,
body.single-post .elementor-location-single,
body.single-post .elementor-location-single .elementor-element,
body.single-post .elementor-location-single .e-con,
body.single-post .elementor-location-single .e-con-inner,
body.single-post .elementor-29 .e-con {
    background-color: transparent !important;
    background-image: none !important;
}

/* Remove Elementor template's gradient background overlay */
body.single-post .elementor-29 .elementor-element-26ef5a3d::before,
body.single-post .elementor-29 .elementor-element-26ef5a3d > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.single-post .elementor-location-single::before,
body.single-post .elementor-location-single .e-con::before,
body.single-post .elementor-location-single .elementor-background-overlay {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

/* Hide Elementor shape dividers that interfere with dark theme */
body.single-post .elementor-shape,
body.single-post .elementor-shape-bottom,
body.single-post .elementor-shape-top {
    display: none !important;
}

/* ========================================================================
   CONTENT CONTAINER STYLING
   ======================================================================== */

/* Ensure content is above the background overlay */
body.single-post #content,
body.single-post .site-main,
body.single-post main,
body.single-post article,
body.single-post .elementor-location-single {
    position: relative;
    z-index: 1;
}

/* Container for single post content */
body.single-post .site-content,
body.single-post .elementor-location-single {
    padding: 40px 20px !important;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================================================
   POST HEADER STYLING
   ======================================================================== */

/* Style the Elementor header container to match dark theme */
body.single-post .elementor-element-26ef5a3d {
    min-height: 300px !important;
    padding: 60px 20px !important;
}

/* Post title - Force white color */
body.single-post .entry-title,
body.single-post h1.entry-title,
body.single-post .elementor-widget-theme-post-title .elementor-heading-title,
body.single-post .elementor-element-64b153a1 .elementor-heading-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 25px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Post meta (date, author, category) - Force light color */
body.single-post .entry-meta,
body.single-post .post-meta,
body.single-post .entry-date,
body.single-post .elementor-post-info,
body.single-post .elementor-icon-list-text,
body.single-post .elementor-element-3e94019b .elementor-icon-list-text,
body.single-post .elementor-element-3e94019b .elementor-icon-list-text a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
    margin-bottom: 30px !important;
}

/* Post meta separators */
body.single-post .elementor-element-3e94019b .elementor-icon-list-item:not(:last-child):after {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ========================================================================
   FEATURED IMAGE STYLING
   ======================================================================== */

/* Featured image container */
body.single-post .post-thumbnail,
body.single-post .entry-thumbnail,
body.single-post .elementor-widget-theme-post-featured-image {
    margin-bottom: 30px;
    margin-top: 0 !important;
}

body.single-post .post-thumbnail img,
body.single-post .entry-thumbnail img,
body.single-post .elementor-widget-theme-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================================================
   POST CONTENT STYLING - FORCE WHITE TEXT
   ======================================================================== */

/* Post content container */
body.single-post .entry-content,
body.single-post .page-content,
body.single-post .elementor-widget-theme-post-content,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container,
body.single-post article .entry-content,
body.single-post article .page-content {
    color: rgba(255, 255, 255, 0.95) !important;
    background: transparent !important;
}

/* Force ALL text elements to be white */
body.single-post .entry-content *,
body.single-post .page-content *,
body.single-post .elementor-widget-theme-post-content *,
body.single-post article *:not(a):not(code) {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Paragraphs - Force bright white text */
body.single-post .entry-content p,
body.single-post .page-content p,
body.single-post p,
body.single-post .elementor p,
body.single-post article p,
body.single-post .elementor-widget-theme-post-content p {
    color: #ffffff !important;
    margin-bottom: 20px !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

/* Headings in content - Force white */
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6,
body.single-post .page-content h1,
body.single-post .page-content h2,
body.single-post .page-content h3,
body.single-post .page-content h4,
body.single-post .page-content h5,
body.single-post .page-content h6,
body.single-post .elementor-widget-heading .elementor-heading-title {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

body.single-post .entry-content h2,
body.single-post .page-content h2 {
    font-size: 2rem !important;
    border-bottom: 2px solid rgba(91, 141, 239, 0.3);
    padding-bottom: 10px;
}

body.single-post .entry-content h3,
body.single-post .page-content h3 {
    font-size: 1.6rem !important;
}

/* Links in content - Blue color for visibility */
body.single-post .entry-content a,
body.single-post .page-content a,
body.single-post .elementor-widget-theme-post-content a {
    color: rgba(91, 141, 239, 0.9) !important;
    text-decoration: underline;
    transition: all 0.3s ease;
}

body.single-post .entry-content a:hover,
body.single-post .page-content a:hover {
    color: rgba(155, 89, 208, 0.9) !important;
    text-shadow: 0 0 10px rgba(91, 141, 239, 0.5);
}

/* Lists - Force white text */
body.single-post .entry-content ul,
body.single-post .entry-content ol,
body.single-post .page-content ul,
body.single-post .page-content ol {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 20px !important;
    padding-left: 30px !important;
}

body.single-post .entry-content li,
body.single-post .page-content li {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 10px !important;
}

/* Blockquotes */
body.single-post .entry-content blockquote,
body.single-post .page-content blockquote {
    background: rgba(91, 141, 239, 0.1);
    border-left: 4px solid rgba(91, 141, 239, 0.8);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: italic;
}

/* Code blocks */
body.single-post .entry-content code,
body.single-post .page-content code {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(91, 141, 239, 0.9) !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

body.single-post .entry-content pre,
body.single-post .page-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

body.single-post .entry-content pre code,
body.single-post .page-content pre code {
    background: transparent;
    padding: 0;
}

/* Tables */
body.single-post .entry-content table,
body.single-post .page-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

body.single-post .entry-content th,
body.single-post .page-content th {
    background: rgba(91, 141, 239, 0.2);
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

body.single-post .entry-content td,
body.single-post .page-content td {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Images in content */
body.single-post .entry-content img,
body.single-post .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   POST FOOTER / SHARE SECTION
   ======================================================================== */

/* Share buttons container */
body.single-post .elementor-element-4f7c58fe,
body.single-post .elementor-share-buttons {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Share heading */
body.single-post .elementor-element-521d7cbb .elementor-heading-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ========================================================================
   NEWSLETTER / SUBSCRIPTION SECTION
   ======================================================================== */

/* Newsletter section - Dark theme without borders */
body.single-post .elementor-element-5a220d80,
body.single-post .newsletter-section,
body.single-post .elementor-widget-form {
    background: rgba(20, 20, 35, 0.6) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 50px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Remove any unwanted overlays or pseudo-elements */
body.single-post .elementor-element-5a220d80::before,
body.single-post .elementor-element-5a220d80::after {
    display: none !important;
    background-image: none !important;
    border: none !important;
}

/* Newsletter text - Light colors for dark background */
body.single-post .elementor-element-5a220d80 *,
body.single-post .newsletter-section *,
body.single-post .elementor-widget-form *,
body.single-post .elementor-element-2e66fb7d .elementor-heading-title,
body.single-post .elementor-element-29685d1f .elementor-heading-title,
body.single-post .elementor-element-2c23bd10 * {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Newsletter heading - Bright white */
body.single-post .elementor-element-2e66fb7d .elementor-heading-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700 !important;
}

/* Newsletter subheading - Lighter */
body.single-post .elementor-element-29685d1f .elementor-heading-title {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Newsletter form inputs */
body.single-post .elementor-element-2c23bd10 .elementor-field-group .elementor-field {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.single-post .elementor-element-2c23bd10 .elementor-field-group .elementor-field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.single-post .elementor-element-2c23bd10 .elementor-field-group .elementor-field:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(91, 141, 239, 0.5) !important;
}

/* Newsletter button - Keep accent color */
body.single-post .elementor-element-2c23bd10 .elementor-button {
    background-color: rgba(91, 141, 239, 0.9) !important;
    color: #ffffff !important;
    border: none !important;
}

body.single-post .elementor-element-2c23bd10 .elementor-button:hover {
    background-color: rgba(91, 141, 239, 1) !important;
    box-shadow: 0 5px 20px rgba(91, 141, 239, 0.4) !important;
}

/* ========================================================================
   RELATED POSTS / MORE TO EXPLORE SECTION
   ======================================================================== */

/* Related posts heading */
body.single-post .elementor-element-1195dec5 .elementor-heading-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Related post cards - Keep white background */
body.single-post .elementor-post__card,
body.single-post .elementor-element-3e7f81e .elementor-post__card {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Related post text - Make BLACK */
body.single-post .elementor-post__card *,
body.single-post .elementor-post__title,
body.single-post .elementor-post__title a,
body.single-post .elementor-post__excerpt p,
body.single-post .elementor-post__meta-data,
body.single-post .elementor-element-3e7f81e .elementor-post__card * {
    color: #000000 !important;
}

/* ========================================================================
   POST NAVIGATION (PREV/NEXT)
   ======================================================================== */

body.single-post .elementor-post-navigation,
body.single-post .elementor-element-4e61a22e .elementor-post-navigation {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.single-post .post-navigation__prev--label,
body.single-post .post-navigation__next--label,
body.single-post .post-navigation__prev--title,
body.single-post .post-navigation__next--title {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ========================================================================
   CTA SECTION AT BOTTOM - HIDE IT
   ======================================================================== */

/* Hide the entire CTA section */
body.single-post .elementor-element-2e70d9a8,
body.single-post .elementor-element-45002eb0,
body.single-post .elementor-element-3e612515 {
    display: none !important;
}

/* Hide the old theme footer branding (immiPlus logo + All rights reserved) */
body.single-post .site-branding.show-logo,
body.single-post .copyright.show,
body.single-post footer .footer-inner {
    display: none !important;
}

/* ========================================================================
   COMMENTS SECTION
   ======================================================================== */

body.single-post #comments,
body.single-post .comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

body.single-post .comments-title,
body.single-post .comment-reply-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
}

body.single-post .comment-body {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

body.single-post .comment-author,
body.single-post .comment-meta {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.single-post .comment-content {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================================================
   TAGS
   ======================================================================== */

body.single-post .post-tags,
body.single-post .tag-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.single-post .post-tags a,
body.single-post .tag-links a {
    display: inline-block;
    background: rgba(91, 141, 239, 0.2);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(91, 141, 239, 0.3);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

body.single-post .post-tags a:hover,
body.single-post .tag-links a:hover {
    background: rgba(91, 141, 239, 0.3);
    border-color: rgba(91, 141, 239, 0.5);
    transform: translateY(-2px);
}

/* ========================================================================
   FOOTER - Keep the footer visible
   ======================================================================== */

body.single-post footer.elementor-location-footer,
body.single-post .elementor-location-footer {
    display: block !important;
}

/* ========================================================================
   RESPONSIVE STYLES
   ======================================================================== */

@media (max-width: 768px) {
    body.single-post {
        padding-top: 100px !important;
    }

    body.single-post .site-content,
    body.single-post .elementor-location-single {
        padding: 20px 15px !important;
    }

    body.single-post .elementor-element-26ef5a3d {
        padding: 40px 20px !important;
        min-height: 250px !important;
    }

    body.single-post .entry-title,
    body.single-post h1.entry-title,
    body.single-post .elementor-widget-theme-post-title .elementor-heading-title {
        font-size: 1.8rem !important;
    }

    body.single-post .entry-content,
    body.single-post .page-content {
        font-size: 1rem !important;
    }

    body.single-post .elementor-element-5a220d80 {
        padding: 30px 20px !important;
    }
}
