/*
 Theme Name:   Divi Child - Max Invest Dark
 Theme URI:    https://privatemeet.me/
 Description:  Divi Child Theme with Dark Mode
 Author:       Max
 Author URI:   https://privatemeet.me/
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  divi-child
*/

/* ========================================
   MAX INVEST - Dark Theme CSS v7
   Warmer dark background + warm gold
   ======================================== */

/* ========================================
   COLOR REFERENCE:
   Background: #2a2827 (warm charcoal)
   Secondary:  #322f2d (warm dark)
   Tertiary:   #3a3735 (warm gray)
   Gold:       #d4a84b (warm gold)
   Text:       #e8e4df (warm white)
   Links:      #7db8da (soft blue)
   ======================================== */

/* ========================================
   1. HIDE TOP RED BAR
   ======================================== */

#top-header,
.et-fixed-header #top-header {
    display: none !important;
}

/* ========================================
   2. THEME BUILDER SECTIONS
   ======================================== */

.et_pb_section_0_tb_body,
.et_pb_section_1_tb_body,
.et_pb_section_2_tb_body,
.et_pb_section_3_tb_body,
.et_pb_section_4_tb_body,
.et_pb_section_5_tb_body,
div.et_pb_section_0_tb_body,
div.et_pb_section_1_tb_body,
div[class*="_tb_body"],
.et_pb_with_background,
.et_pb_section.et_pb_with_background,
.et_pb_section_0.et_pb_with_background,
.et_section_regular,
.et_pb_section.et_section_regular {
    background-color: #2a2827 !important;
    background-image: none !important;
}

.et_pb_post_content .et_pb_section,
.et_pb_post_content .et_pb_section_0,
.et_pb_post_content .et_pb_with_background,
.et_pb_post_content_0_tb_body .et_pb_section,
.et_pb_post_content_0_tb_body .et_pb_with_background,
.et-l--post .et_pb_section,
.et-l--post .et_pb_with_background {
    background-color: #2a2827 !important;
    background-image: none !important;
}

/* ========================================
   3. ALL SECTIONS/ROWS OVERRIDE
   ======================================== */

div[class*="et_pb_section"],
div[class*="et_pb_row"],
div[class*="et_pb_column"],
.et_pb_section,
.et_pb_row,
.et_pb_column {
    background-color: #2a2827 !important;
    background-image: none !important;
}

.et_pb_row,
.et_pb_column,
div.et_pb_row,
div.et_pb_column {
    background-color: transparent !important;
}

/* ========================================
   4. GLOBAL DARK BACKGROUND
   ======================================== */

html,
html body,
body,
body.et-db #page-container,
#page-container,
.et-db #et-boc,
#et-main-area,
#main-content,
.container,
.et_builder_inner_content,
#content-area,
.clearfix,
.et-l,
.et-l--post {
    background-color: #2a2827 !important;
    color: #e8e4df !important;
}

/* ========================================
   5. SINGLE POST - FORCE DARK
   ======================================== */

.single-post #main-content,
.single-post .container,
.single-post .et_pb_section,
.single-post .et_pb_row,
.single-post article,
.single-post article.post,
.single-post .entry-content,
.single-post .post-content,
.single #main-content,
.single .container,
.single article,
.single article.post,
body.single-post,
body.single,
.single-post div[class*="et_pb_section"],
.single-post div[class*="et_pb_row"],
.single-post div[class*="_tb_body"] {
    background-color: #2a2827 !important;
    background-image: none !important;
}

.et_pb_post_content,
.et_pb_post_content_wrapper,
.et_pb_post_content_0_tb_body,
article .entry-content,
article.post .entry-content,
.single-post article .entry-content,
.single-post .et_post_meta_wrapper,
.et_post_meta_wrapper {
    background-color: #2a2827 !important;
    background-image: none !important;
}

.single-post .et_pb_module,
.single .et_pb_module {
    background-color: transparent !important;
}

/* ========================================
   6. POST TITLE & META
   ======================================== */

.single-post h1.entry-title,
.single-post .entry-title,
.single-post h2.entry-title,
.single h1.entry-title,
article h1.entry-title,
article h2.entry-title,
.et_pb_post_title h1,
.et_pb_post_title h2,
.et_pb_post_title_0_tb_body h2,
.et_pb_title_container h2,
h1.entry-title,
h2.entry-title {
    color: #d4a84b !important;
}

.single-post .post-meta,
.single-post .post-meta a,
.single-post .post-meta span,
.single .post-meta,
.single .post-meta a,
article .post-meta,
article .post-meta a,
.et_post_meta_wrapper .post-meta,
.et_post_meta_wrapper .post-meta a,
.et_pb_title_meta_container,
.et_pb_title_meta_container a,
.et_pb_title_meta_container span,
p.et_pb_title_meta_container,
p.et_pb_title_meta_container a {
    color: #9db4c9 !important;
}

.single-post .post-meta a:hover,
.single .post-meta a:hover,
.et_pb_title_meta_container a:hover {
    color: #d4a84b !important;
}

/* ========================================
   7. POST CONTENT TEXT
   ======================================== */

.single-post .entry-content p,
.single-post .entry-content,
.single-post article p,
.single .entry-content p,
.single .entry-content,
.single article p,
article.post .entry-content p,
.et_pb_post_content p,
.et_pb_post_content,
.et_pb_text_inner p,
.et_pb_text_inner {
    color: #e8e4df !important;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
article .entry-content h2,
article .entry-content h3,
article .entry-content h4,
.et_pb_post_content h1,
.et_pb_post_content h2,
.et_pb_post_content h3,
.et_pb_post_content h4,
.et_pb_text_inner h1,
.et_pb_text_inner h2,
.et_pb_text_inner h3,
.et_pb_text_inner h4 {
    color: #d4a84b !important;
}

.single-post .entry-content li,
.single-post .entry-content ul,
.single-post .entry-content ol,
.single .entry-content li,
article .entry-content li,
.et_pb_post_content li,
.et_pb_text_inner li {
    color: #e8e4df !important;
}

.single-post .entry-content a,
.single .entry-content a,
article .entry-content a,
.et_pb_post_content a,
.et_pb_text_inner a {
    color: #7db8da !important;
}

.single-post .entry-content a:hover,
.single .entry-content a:hover,
.et_pb_text_inner a:hover {
    color: #a8d4f0 !important;
}

.single-post .entry-content strong,
.single-post .entry-content b,
.single .entry-content strong,
article .entry-content strong,
.et_pb_post_content strong,
.et_pb_text_inner strong {
    color: #f0ece7 !important;
}

.single-post .entry-content em,
.single-post .entry-content i,
.single .entry-content em,
article .entry-content em,
.et_pb_post_content em,
.et_pb_text_inner em {
    color: #d8d4cf !important;
}

/* ========================================
   8. GLOBAL TEXT COLORS
   ======================================== */

body h1, body h2, body h3, body h4, body h5, body h6,
#page-container h1, #page-container h2, #page-container h3, #page-container h4,
.et_pb_module_header,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4 {
    color: #d4a84b !important;
}

body p, body span, body li, body td, body th, body label,
#page-container p,
#page-container span,
.et_pb_text,
.et_pb_text p,
.et_pb_text span {
    color: #e8e4df !important;
}

body a,
#page-container a {
    color: #7db8da !important;
}

body a:hover,
#page-container a:hover {
    color: #a8d4f0 !important;
}

/* ========================================
   9. HEADER & NAVIGATION
   ======================================== */

#main-header,
.et-fixed-header,
#main-header .container,
.et_header_style_split .centered-inline-logo-wrap {
    background-color: #2a2827 !important;
}

#et-top-navigation nav > ul > li > a,
#top-menu li a,
#top-menu > li > a,
#et-secondary-nav li a,
.et_mobile_menu li a,
nav#top-menu-nav > ul > li > a,
.menu-item a,
.menu-item-type-custom a {
    color: #e8e4df !important;
}

#top-menu li a:hover,
#top-menu > li > a:hover,
#top-menu > li.current-menu-item > a,
#top-menu > li.current_page_item > a,
.menu-item a:hover {
    color: #d4a84b !important;
}

#top-menu li ul,
.et_mobile_menu,
#top-menu li li {
    background-color: #322f2d !important;
    border-color: #4a4643 !important;
}

#top-menu li ul li a {
    color: #e8e4df !important;
}

#top-menu li ul li a:hover {
    background-color: #3a3735 !important;
    color: #d4a84b !important;
}

.mobile_menu_bar:before,
.mobile_menu_bar_toggle:before {
    color: #e8e4df !important;
}

.et_mobile_menu {
    background-color: #322f2d !important;
}

#et_search_icon:before,
.et_search_form_container input {
    color: #e8e4df !important;
}

.et_search_form_container {
    background-color: #322f2d !important;
}

/* ========================================
   10. BLOG LISTING POSTS
   ======================================== */

.et_pb_post,
.et_pb_blog_grid .et_pb_post,
article.post,
.et_pb_ajax_pagination_container .et_pb_post {
    background-color: rgba(50, 47, 45, 0.95) !important;
    border-color: #4a4643 !important;
}

.et_pb_post h2,
.et_pb_post h2 a,
.et_pb_post .entry-title,
.et_pb_post .entry-title a,
.et_pb_blog_grid .et_pb_post h2,
.et_pb_blog_grid .et_pb_post h2 a,
article h1.entry-title,
article h2.entry-title,
article .entry-title a,
.entry-title,
.entry-title a,
h2.entry-title a,
.et_pb_post h2.entry-title a {
    color: #d4a84b !important;
}

.et_pb_post h2 a:hover,
.et_pb_post .entry-title a:hover,
.entry-title a:hover {
    color: #e8c070 !important;
}

.et_pb_post .post-meta,
.et_pb_post .post-meta a,
.et_pb_post .post-meta span,
.et_pb_blog_grid .post-meta,
.et_pb_blog_grid .post-meta a,
.post-meta,
.post-meta a,
.post-meta span,
.published,
span.published,
.author,
.et_pb_member_position {
    color: #b5b0a8 !important;
}

.et_pb_post .post-meta a:hover,
.post-meta a:hover {
    color: #d4a84b !important;
}

.et_pb_post .post-content,
.et_pb_post .post-content p,
.et_pb_post .post-content-inner,
.et_pb_post p,
.et_pb_blog_grid .et_pb_post p,
.et_pb_blog_grid .post-content,
.et_pb_blog_grid .post-content p,
.excerpt-content,
.et_pb_post .excerpt-content {
    color: #e8e4df !important;
}

.et_pb_post a.more-link,
.et_pb_post .more-link,
.et_pb_blog_grid a.more-link,
a.more-link,
.more-link {
    color: #d4a84b !important;
}

.et_pb_post a.more-link:hover,
a.more-link:hover,
.more-link:hover {
    color: #e8c070 !important;
}

/* ========================================
   11. BLOCKQUOTES & CODE
   ======================================== */

blockquote,
.single-post blockquote,
article blockquote {
    background-color: #322f2d !important;
    border-left-color: #d4a84b !important;
    color: #e8e4df !important;
}

blockquote p {
    color: #d8d4cf !important;
}

code, pre,
.single-post code,
.single-post pre,
article code,
article pre {
    background-color: #322f2d !important;
    color: #d8d4cf !important;
    border-color: #4a4643 !important;
}

/* ========================================
   12. SIDEBAR & WIDGETS
   ======================================== */

#sidebar,
.et_pb_widget,
.widget {
    background-color: transparent !important;
}

.et_pb_widget h4,
.widget h4,
.widget-title {
    color: #d4a84b !important;
    border-color: #4a4643 !important;
}

.et_pb_widget li,
.et_pb_widget li a,
.widget li a {
    color: #e8e4df !important;
}

.et_pb_widget li a:hover,
.widget li a:hover {
    color: #d4a84b !important;
}

/* ========================================
   13. FORMS & INPUTS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.et_pb_contact_field input,
.et_pb_contact_field textarea,
.input,
.et_pb_newsletter_field input {
    background-color: #322f2d !important;
    color: #e8e4df !important;
    border-color: #4a4643 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #d4a84b !important;
}

/* ========================================
   14. BUTTONS
   ======================================== */

.et_pb_button,
.et_pb_more_button,
.et_pb_newsletter_button,
.et_pb_contact_submit,
button,
input[type="submit"],
input[type="button"] {
    background-color: #d4a84b !important;
    color: #1a1918 !important;
    border-color: #d4a84b !important;
}

.et_pb_button:hover,
.et_pb_more_button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #e8c070 !important;
    color: #1a1918 !important;
}

/* ========================================
   15. FOOTER
   ======================================== */

#main-footer,
#footer-info,
#footer-widgets,
.footer-widget,
#footer-bottom {
    background-color: #232120 !important;
}

#main-footer .footer-widget h4,
#footer-widgets h4.title {
    color: #d4a84b !important;
}

#main-footer .footer-widget li,
#main-footer .footer-widget li a,
#footer-info,
#footer-bottom a,
.footer-widget p {
    color: #e8e4df !important;
}

#main-footer .footer-widget li a:hover {
    color: #d4a84b !important;
}

/* ========================================
   16. TABLES
   ======================================== */

table,
table th,
table td,
.single-post table,
.single-post table th,
.single-post table td,
article table,
article table th,
article table td {
    background-color: #322f2d !important;
    color: #e8e4df !important;
    border-color: #4a4643 !important;
}

table th,
.single-post table th,
article table th {
    background-color: #3a3735 !important;
}

table tr:nth-child(even) td {
    background-color: #3a3735 !important;
}

/* ========================================
   17. MISCELLANEOUS
   ======================================== */

hr,
.single-post hr,
article hr,
.et_pb_text_inner hr {
    border-color: #4a4643 !important;
}

.et_pb_divider:before,
.et_pb_divider_internal {
    border-color: #4a4643 !important;
}

.et_pb_scroll_top {
    background-color: #d4a84b !important;
}

/* ========================================
   18. DIVI MODULES
   ======================================== */

.et_pb_blurb h4,
.et_pb_blurb_content h4 a {
    color: #d4a84b !important;
}

.et_pb_blurb_description {
    color: #e8e4df !important;
}

.et_pb_testimonial,
.et_pb_testimonial_portrait {
    background-color: #322f2d !important;
    border-color: #4a4643 !important;
}

.et_pb_testimonial_description,
.et_pb_testimonial_author {
    color: #e8e4df !important;
}

.et_pb_toggle,
.et_pb_toggle_title,
.et_pb_toggle_content {
    background-color: #322f2d !important;
    border-color: #4a4643 !important;
    color: #e8e4df !important;
}

/* Toggle title - high specificity override */
.et_pb_toggle_title,
h5.et_pb_toggle_title,
.et_pb_toggle h5.et_pb_toggle_title,
.et_pb_toggle_0 .et_pb_toggle_title,
.et_pb_toggle_1 .et_pb_toggle_title,
.et_pb_toggle_2 .et_pb_toggle_title,
.et_pb_module.et_pb_toggle .et_pb_toggle_title,
div.et_pb_toggle h5.et_pb_toggle_title,
.et_pb_toggle_close .et_pb_toggle_title,
.et_pb_toggle_open .et_pb_toggle_title {
    color: #e8e4df !important;
    background-color: #322f2d !important;
}

.et_pb_toggle_title:before {
    color: #d4a84b !important;
}

.et_pb_tabs,
.et_pb_tabs_controls,
.et_pb_all_tabs {
    background-color: #322f2d !important;
    border-color: #4a4643 !important;
}

.et_pb_tabs_controls li {
    background-color: #3a3735 !important;
}

.et_pb_tabs_controls li.et_pb_tab_active {
    background-color: #322f2d !important;
}

.et_pb_tabs_controls li a {
    color: #e8e4df !important;
}

.et_pb_fullwidth_header {
    background-color: #2a2827 !important;
}

.et_pb_fullwidth_header .header-content h1,
.et_pb_fullwidth_header .header-content-container h1 {
    color: #d4a84b !important;
}

.et_pb_fullwidth_header .header-content p {
    color: #e8e4df !important;
}

.et_pb_slide,
.et_pb_slides {
    background-color: #322f2d !important;
}

.et_pb_slide_description h2 {
    color: #d4a84b !important;
}

.et_pb_slide_description p {
    color: #e8e4df !important;
}

.et_pb_promo,
.et_pb_cta {
    background-color: #322f2d !important;
}

.et_pb_promo_description h2,
.et_pb_cta h2 {
    color: #d4a84b !important;
}

/* ========================================
   19. PAGINATION
   ======================================== */

.wp-pagenavi a,
.wp-pagenavi span,
.pagination a,
.page-links a {
    background-color: #322f2d !important;
    color: #e8e4df !important;
    border-color: #4a4643 !important;
}

.wp-pagenavi span.current,
.page-links > span {
    background-color: #d4a84b !important;
    color: #1a1918 !important;
}

/* ========================================
   20. COMMENTS
   ======================================== */

#commentform,
.comment-body,
#comments,
.single-post #comments,
.single-post .comment-body {
    background-color: transparent !important;
}

.comment-author,
.comment-metadata a,
.reply a {
    color: #b5b0a8 !important;
}

.comment-content,
.comment-content p {
    color: #e8e4df !important;
}

/* ========================================
   21. POST NAVIGATION
   ======================================== */

.nav-links,
.nav-previous a,
.nav-next a,
.post-navigation a,
.single-post .nav-links a {
    color: #7db8da !important;
}

.nav-previous a:hover,
.nav-next a:hover,
.post-navigation a:hover {
    color: #d4a84b !important;
}

/* ========================================
   22. RELATED POSTS
   ======================================== */

.et_pb_related_posts,
.related-posts {
    background-color: #2a2827 !important;
}

.et_pb_related_posts h2,
.related-posts h3 {
    color: #d4a84b !important;
}

/* ========================================
   23. TEXT MODULES
   ======================================== */

.et_pb_text,
.et_pb_text_inner,
div.et_pb_text,
div.et_pb_text_inner,
.et_pb_text_0,
.et_pb_text_1,
.et_pb_text_2,
.et_pb_text_3,
.et_pb_bg_layout_light {
    background-color: transparent !important;
}

/* ========================================
   24. TOGGLE MODULE - FINAL OVERRIDES
   ======================================== */

/* Force toggle title color - maximum specificity */
body .et_pb_toggle_title,
body h5.et_pb_toggle_title,
#main-content .et_pb_toggle_title,
#page-container .et_pb_toggle_title,
.et_pb_section .et_pb_toggle_title,
.et_pb_row .et_pb_toggle_title,
.et_pb_column .et_pb_toggle_title,
.et_pb_module .et_pb_toggle_title,
.et_pb_toggle .et_pb_toggle_title,
.et_pb_toggle_close .et_pb_toggle_title,
.et_pb_toggle_open .et_pb_toggle_title,
.et_pb_toggle_0 h5.et_pb_toggle_title,
.et_pb_accordion .et_pb_toggle_title,
.et_pb_accordion_item .et_pb_toggle_title {
    color: #e8e4df !important;
}

/* Toggle content text */
body .et_pb_toggle_content,
body .et_pb_toggle_content p,
#main-content .et_pb_toggle_content,
.et_pb_toggle_content p,
.et_pb_toggle_content li,
.et_pb_toggle_content span {
    color: #e8e4df !important;
}